G
Guest User
Guest
I was trying to figure out how to secure items amounts in HTML5, such as "gold" amount, and "money" amount. Since the player can change the codes whether using a cheat engine or directly changing it using the inspect element; assuming we use ini.
So here is what I'd thought, I am gonna make the steps as a list so it'd be easy to follow
In Stackoverflow someone said
What do you think? is it possible to secure HTML5 games?
Thanks in advance!
So here is what I'd thought, I am gonna make the steps as a list so it'd be easy to follow
- Store the players' data in a server
- Retrieve the player's data when he starts
- Everytime he consumes/uses the items I send a request to the server to reduce the amount
- Everytime he gets an item I also send a request to the server to increase the amount
- Sending and receiving requests will definitely slow down the game
- Users can use some client-side tools or debugger to edit AJAX calls and send hacked data to the server
In Stackoverflow someone said
I've played some games online "Farmville" and some others, they really had secured data, for example I never was able to edit the data using "Cheat Engine" or hack it with other softwares, maybe because it was hosted on Facebook? I don't know.Do not worry about it; protecting from all attacks is essentially impossible if you trust the client. If nobody uses Fiddler etc, to modify the AJAX request, they can simply fire up a JS debugger and modify your game data to give themselves 1000 lives, etc, or modify your code, or do 100 other things you haven't thought of.
What do you think? is it possible to secure HTML5 games?
Thanks in advance!
Last edited by a moderator: