Jump to content

Track a person


The Little Guy

Recommended Posts

There's no good way to do this, really. You could set a cookie that doesn't expire for a very long time using setcookie(), then check for it in the $_COOKIE array. However, if someone clears their cookies, they can vote again. The only half decent way of locking people out is by IP address, but obviously that is a problem if people are sharing an external IP (which they often are)

Link to comment
https://forums.phpfreaks.com/topic/220517-track-a-person/#findComment-1142419
Share on other sites

This very much depends on how badly you want to suppress cheaters.  You can set the cookie expiration to be whatever you want it to be, so there's no issue setting a 24 hour cookie.  If suppression of cheating is important, then I would make sure to store the IP address in the vote row, and you can then do some queries that group by IP, and use that to remove blocks of multi-votes based on whatever threshold you decide to be gaming the vote system. 

Link to comment
https://forums.phpfreaks.com/topic/220517-track-a-person/#findComment-1142432
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.