Page 1 of 1

Poll

Posted: Thu Oct 14, 2004 3:11 pm
by Shendemiar
What is the best identifier(s) to deny voting but once.

Posted: Thu Oct 14, 2004 3:29 pm
by potsed
i used an md5 hash of the $_SERVER['HTTP_USER_AGENT'] and the question ..put it into a db that is checked everytime the poll is called.. if the md5 hash is there it shows the results otherwise it shows the poll...


http://www.multebiz.co.za has the poll in the rh column.. it blocks for 24hrs..

Posted: Thu Oct 14, 2004 9:29 pm
by Shendemiar
Thanks, that's just what i needed :D

Posted: Fri Oct 15, 2004 9:33 am
by Shendemiar
potsed wrote:i used an md5 hash of the $_SERVER['HTTP_USER_AGENT'] and the question ..put it into a db that is checked everytime the poll is called.. if the md5 hash is there it shows the results otherwise it shows the poll...


http://www.multebiz.co.za has the poll in the rh column.. it blocks for 24hrs..
Uhmm.. wont that give the browser used, resulting each different browser-type is allowed one vote?

Posted: Fri Oct 15, 2004 9:43 am
by twigletmac
You probably can't do much more than check the IP address and/or set a cookie. If it's very important people vote only once, make them register and then you can easily check whether that user has already voted.

Mac

Posted: Fri Oct 15, 2004 10:22 am
by Shendemiar
twigletmac wrote:You probably can't do much more than check the IP address and/or set a cookie. If it's very important people vote only once, make them register and then you can easily check whether that user has already voted.

Mac
No it's not that essential. I propable try to make a long-lasting cookie or session and store the info there.

Posted: Fri Oct 15, 2004 5:29 pm
by potsed
wont that give the browser used, resulting each different browser-type is allowed one vote?
Yes it does but most users only use one browser ... IE (sic) anyway... if its not critical it works...