Reputation: 53
I have a dynamic php page which update user's chosen pol option to DB. Sometimes my Apache Server gets overloaded by call to this page only ( means some one is using script to call this in loop) Can you please help me prevent this?
I have planned to do this:
But Keeping Ip as keys is not working because many organization use single internet ip for all their employee system.
Upvotes: 3
Views: 111
Reputation: 14173
As with most polls you need a way to make sure a user can only vote once. There are a few ways to make sure only a single vote is cast.
It all depends what you want to prevent. If its just overloading, but people can vote more then once, then you have a lot more options. If you only want to allow a single vote per user, only a register system is secure. Although ofcourse somebody could create more then one account.
Upvotes: 0
Reputation: 4315
While I usually hate Captcha's...you could try to implement one on your site. You could even make the Captcha only show up after X number of votes from the same IP so that the general public won't even see it.
Upvotes: 0