As the title says, I'm wondering how you protect your game assets/files when you deploy your game to a web server?
For example, perhaps you have some strange loading method that is able to hide variables from the global scope. A simple example of this might be hosting your game at mysite.com/realgame, but users have to go to mysite.com/play to play the game, where the /play route uses an iframe to embed the content from the /realgame route.
You could go a step further and then have the embedded /realgame route only accessible from the ip address that your website is located, so that people cant manually load up the /realgame route.
This simple method stops the $gameXXX and $dataXXX variables from being accessible within the global scope, so if someone was playing your game (at the /play route) and opened the console to try 'hack' gold or w.e for their player, the variables just wouldnt be defined in that scope, cause they are in the scope of the iframe element. (of course there are ways to extract such information, but that requires a substantial jump in knowledge compared to typing $gameParty.gainGold() or whatever).
So, what kind of methods do you use? Have you tried the above method? Has it worked well for you? Do you have additional steps to protect files? Tell me your secrets!! <3
For example, perhaps you have some strange loading method that is able to hide variables from the global scope. A simple example of this might be hosting your game at mysite.com/realgame, but users have to go to mysite.com/play to play the game, where the /play route uses an iframe to embed the content from the /realgame route.
You could go a step further and then have the embedded /realgame route only accessible from the ip address that your website is located, so that people cant manually load up the /realgame route.
This simple method stops the $gameXXX and $dataXXX variables from being accessible within the global scope, so if someone was playing your game (at the /play route) and opened the console to try 'hack' gold or w.e for their player, the variables just wouldnt be defined in that scope, cause they are in the scope of the iframe element. (of course there are ways to extract such information, but that requires a substantial jump in knowledge compared to typing $gameParty.gainGold() or whatever).
So, what kind of methods do you use? Have you tried the above method? Has it worked well for you? Do you have additional steps to protect files? Tell me your secrets!! <3