Liranan Posted September 9, 2016 Share Posted September 9, 2016 Hello friends. I've a security question. I've done two mini-games for my company. I really enjoyed the chance of using Phaser in my work and not for fun, as I usally do. My boss liked it too, so good news. But he is concern because everybody are able to see the code with the elements inspector. My question is if there's some easy way to hide or protect the code from visitors, in order to avoid that our competititors steal the code for their own pages. Any advice? Thanks a lot! Link to comment Share on other sites More sharing options...
Milton Posted September 9, 2016 Share Posted September 9, 2016 No. PhasedEvolution and drhayes 2 Link to comment Share on other sites More sharing options...
JakeCake Posted September 9, 2016 Share Posted September 9, 2016 Best you can do is to uglify the code using something like Google Closure Compiler Service. To be fair, if competitors really wants to steal your stuff, it doesn't matter what language you use, they will always be able to get the source-code, even if you obscure variable-names and remove comments etc. Use copyright and go the legal way instead of making the code unavailable. Link to comment Share on other sites More sharing options...
drhayes Posted September 9, 2016 Share Posted September 9, 2016 I can add on to this: No, there's not. There are "code uglifiers" out there that will do more than minify they will actively warp your code to make it harder to reverse engineer... but, like JakeCake said, if someone wants to steal your stuff they're going to steal your stuff. The code, the assets, all of it. Link to comment Share on other sites More sharing options...
Milton Posted September 9, 2016 Share Posted September 9, 2016 I would like to thank DrHayes for liking my most minimal post. PhasedEvolution and samme 2 Link to comment Share on other sites More sharing options...
Liranan Posted September 9, 2016 Author Share Posted September 9, 2016 Ok, I got it, I expected this so... no big problem. Thank you for your answers and your wisdom. Link to comment Share on other sites More sharing options...
mattstyles Posted September 9, 2016 Share Posted September 9, 2016 If you are worried about it one potential solution is to have a requirement on a service under your control, your game could ping that service periodically (and at start up obviously, and it should be transparent from the user) and expect a certain response, given that you control both the legitimate game code that you're serving and the service you could even change that authentication procedure with no hit to the legitimate users. Of course, this solution isn't 100% either but its another step that makes life harder for the less scrupulous among us and it really isn't too difficult to set up. Liranan 1 Link to comment Share on other sites More sharing options...
Recommended Posts