Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Include a challenge as a hidden field in your form.
This should level up the security enough.
In your user db, have an uid, or hash field, that you update with a new random generated value on each access.
Put that value in the form as a hidden field.
Now, when a submit is done, compare that the value in the db match the one in the form.
If it does, then the POST is (or at least, should be with a high probability) legitimate.
If not, well, it may be a forged post, or that the user had several windows/tab opened on the same page, and that the challenge is not valid anymore.
With this, you don't limit where the requests are coming, but you validate against forging.
__________________
Only a biker knows why a dog sticks his head out the window.
|