Sign in to follow this  
Liranan

Protect your phaser code

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.