Hey guys! Thought I'd share my own ideas <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">
So lets say I am a thief. Rawr. *steals wallet*
I decide to steal your game from the arcade and upload it to my own website. I run it and notice I get redirected to Scirra.com all the time, or the game's objects all destroy, or whatever outcome you picked to happen to your game if run on a different website.
I would instantly think that there is some protection in place. I would think it's something website related and then I'd open the games files up. I would find "Data.JS" and see all this strange obfuscated code because you ticked Minify like a good developer. Now I may give up at this point, but I decide to do a quick CTRL+F search and type "www." just incase I could find a website reference.
Bam. I found the website address it is trying to detect. I then modify this address to my own address. Done. I win. Mwahahhaha
In all seriousness, that is the case. Check out this screenshot of the data.js of a minified HTMl5 export of the event "Browser.URL = http://www.scirra.com":
FEAR NOT! I thought of an idea that I haven't physically tested if it 100% works but here it goes:
Instead of having the event plainly detecting the whole string "http://www.scirra.com", you could split parts of it up using Local Variables so that it's not as obvious! Here's a screenshot of splitting 1 piece of the URL to get an idea of what I mean (Not sure why the action is to vibrate but yeah):
I guess the more effort and time you put into splitting the URL up, the more effective it will be.
Now as a thief, I would need to spend much more time figuring this out.
Hope this was useful!