|
Posted by Sjoerd on 02/06/06 21:09
> I've got a voting script that's a little too simple. I can vote as as
> many times as I can click on the link in my browser.
Store a cookie at the client side (use setcookie()) and check that to
see if the user has
already voted. Of course, this is fairly easy to bypass: just disable
cookies. You can store an IP on the server, but multiple people can
come from one IP address. If your site is not very busy, you can store
one IP: a user can vote multiple times, but has to wait till any other
user has voted.
Navigation:
[Reply to this message]
|