MikeHart Posted September 23, 2013 Share Posted September 23, 2013 I would like to secure, that my game is played only from a location where I want it to be. How can I check this? Quote Link to comment Share on other sites More sharing options...
powerfear Posted September 23, 2013 Share Posted September 23, 2013 Compare your url to window.location.href, thought this is really easy to hack with a simple search for window.location. Quote Link to comment Share on other sites More sharing options...
rich Posted September 23, 2013 Share Posted September 23, 2013 In Phaser you can do:if (Phaser.Net.checkDomainName("google")) { do something } But as powerfear said, it's trivial to circumvent. So don't think it will give you any kind of actual protection. Quote Link to comment Share on other sites More sharing options...
MikeHart Posted September 23, 2013 Author Share Posted September 23, 2013 Thanks, at least it is something. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.