Remix Protection

Hello! My name is suu! I am discussing a topic that has been concerning me a lot for the past 2 years. It’s about remixes. A lot of future (or past) features games keep popping up which they don’t deserve to. I’m thinking about you should add a feature which does not allow remixes on your game. This is a short paragraph, but if anyone knows any code which protects your game (for now) please send me it!

suu#0583

Sincerely,
suu!

For App Lab:

var channel = getAttribute("divApplab", "baseURI");
var originalChannel = "(channel id of the original app)";
channel = channel.replace("https://studio.code.org/projects/applab/", "");
channel = channel.replace("/edit", "");
channel = channel.replace("/view", "");
channel = channel.replace("/embed", "");
if (channel != originalChannel) {
  while (true) {
    prompt("No remixes.");
  }
}

For Game Lab:

var channel = window.getURLPath()[2];
var originalChannel = "(channel id of the original app)";
if (channel != originalChannel) {
  while (true) {
    prompt("No remixes.");
  }
}

Put this in a library or some arbitrary point in the code.

It doesn’t seem to work for the game lab one. May you help me?

You can get the channel ID of a game by taking the url and copying the long gibberish after https://studio.code.org/projects/gamelab/. Make sure you remove /edit or /view as well.

I did that before you replied, but it just won’t work.