monkey junkie
07-09-2007, 06:56 PM
Hello
I am writing a script where the public (i.e. web surfers) can vote products up or down.
I want to stop people voting the same product up or down multiple times.
The simple (but slightly restrictive) solution I am considering is as follows -
Every time a product gets voted up or down, the IP of the person who did the voting gets added to that products database entry.
Kind of simple. The problems with this are as follows -
In a dynamic IP environment, the user can go offline and back online, and maybe he'll have a new IP, so maybe he can make the same vote again...
In a dynamic IP environment, it's possible "innocent" people will be blocked from voting.I could use a cookie combination to solve 1, but for 2 I don't know...
Can any of you think of a better way to deal with this?
I know no solution is probably fool proof, but I'd like to make it as fair and anti-cheat as possible.
Thanks in advance for any help.
I am writing a script where the public (i.e. web surfers) can vote products up or down.
I want to stop people voting the same product up or down multiple times.
The simple (but slightly restrictive) solution I am considering is as follows -
Every time a product gets voted up or down, the IP of the person who did the voting gets added to that products database entry.
Kind of simple. The problems with this are as follows -
In a dynamic IP environment, the user can go offline and back online, and maybe he'll have a new IP, so maybe he can make the same vote again...
In a dynamic IP environment, it's possible "innocent" people will be blocked from voting.I could use a cookie combination to solve 1, but for 2 I don't know...
Can any of you think of a better way to deal with this?
I know no solution is probably fool proof, but I'd like to make it as fair and anti-cheat as possible.
Thanks in advance for any help.
