The Little Guy Posted December 2, 2010 Share Posted December 2, 2010 I have a site where people vote, currently if two computers that are on the same network vote, my site will see them as one computer because I only track people by IP address. What would be a good way to track 2+ computers with the same IP address? Quote Link to comment https://forums.phpfreaks.com/topic/220517-track-a-person/ Share on other sites More sharing options...
jim_keller Posted December 2, 2010 Share Posted December 2, 2010 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) Quote Link to comment https://forums.phpfreaks.com/topic/220517-track-a-person/#findComment-1142419 Share on other sites More sharing options...
The Little Guy Posted December 2, 2010 Author Share Posted December 2, 2010 If I did a cookie, I would just need it to last for 24 hours... Quote Link to comment https://forums.phpfreaks.com/topic/220517-track-a-person/#findComment-1142423 Share on other sites More sharing options...
gizmola Posted December 3, 2010 Share Posted December 3, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/220517-track-a-person/#findComment-1142432 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.