Jump to content

[SOLVED] Prevent url changes to cheat the code?


djfox

Recommended Posts

I`m building a mini-game using php where there is a score involved. It will use forms to send the information along. Thus far, forms I`ve seen (and used) show the url as things like game.php?id=8&s=1000

 

Anything I can do to keep people from being able to just type in things in the url bar to cheat the code?

why don't you use SESSION to store all the information like scores so people cant cheat at all

 

Scott.

 

Because the form url could be changed to cheat the code.

 

One thing that you can do is use the POST method instead of GET. Then the information isn't passed along via the URL.

 

Thanks, I`ll give that a shot.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.