Poll
Moderator: General Moderators
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
Poll
What is the best identifier(s) to deny voting but once.
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..
http://www.multebiz.co.za has the poll in the rh column.. it blocks for 24hrs..
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
Uhmm.. wont that give the browser used, resulting each different browser-type is allowed one vote?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..
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
No it's not that essential. I propable try to make a long-lasting cookie or session and store the info there.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