Preventing voters from voting more than once based on IP
Moderator: General Moderators
Preventing voters from voting more than once based on IP
I found a good tutorial here: http://css-tricks.com/how-to-design-and ... ered-poll/ that shows a basic voting and results page made with PHP and MYSQL. The only problem is that it doesn't restrict voters from voting more than once. I was wondering if anyone could show me the PHP code for how to do this? 
- The_Anomaly
- Forum Contributor
- Posts: 196
- Joined: Fri Aug 08, 2008 4:56 pm
- Location: Tirana, Albania
Re: Preventing voters from voting more than once based on IP
I have basically this exact topic here.
If you're looking for actual code, don't expect to find anyone to write your code here. We will point you in the right direction, but from there, you have to do the work yourself.
If you're looking for actual code, don't expect to find anyone to write your code here. We will point you in the right direction, but from there, you have to do the work yourself.
Re: Preventing voters from voting more than once based on IP
I did a simple poll based on IP address a few years back. That is what I would recommend and then it's pretty easy to add more features.
- The_Anomaly
- Forum Contributor
- Posts: 196
- Joined: Fri Aug 08, 2008 4:56 pm
- Location: Tirana, Albania
Re: Preventing voters from voting more than once based on IP
As onion2k posted in the thread I linked to above, basing on IP is a somewhat viable option. It is anything but foolproof though.papa wrote:I did a simple poll based on IP address a few years back. That is what I would recommend and then it's pretty easy to add more features.
However, that would probably be best only if you temporarily "ban" that IP from voting again. As in, if you permanently ban a certain IP, it may be resigned to someone else, or someone sharing the IP may try. Basically, because IPs move around so much, you don't want to permaban them.
Re: Preventing voters from voting more than once based on IP
I totally agree. I just think it's a good way of starting a poll. After you get the initial script up and running you can add temp. ban etc for the ips.The_Anomaly wrote:As onion2k posted in the thread I linked to above, basing on IP is a somewhat viable option. It is anything but foolproof though.papa wrote:I did a simple poll based on IP address a few years back. That is what I would recommend and then it's pretty easy to add more features.
However, that would probably be best only if you temporarily "ban" that IP from voting again. As in, if you permanently ban a certain IP, it may be resigned to someone else, or someone sharing the IP may try. Basically, because IPs move around so much, you don't want to permaban them.
Re: Preventing voters from voting more than once based on IP
What about unis/networks/schools that share an IP?