Simple protection of published game

  • 75 favourites


Attached Files

The following files have been attached to this tutorial:



Download now 194.04 KB


8,993 visits, 22,463 views



This tutorial hasn't been translated.


This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Thou shalt not steal

Test it yourself

Before we begin you can download simple example project, extract it to your server/dropbox and try to run index.html.

You should see something like this:

If you click on bottom text player will be redirected to the original game url address and will see this

and now they can play it from your server.

How does it work?

Security in this example is based on simple comparison of two values

First we check where we are using Browser.URL expression.

If result is true we can start playing. If it's false, we'll be redirected to proper url address. It's simple as that.


  • Order by
Want to leave a comment? Login or Register an account!