Re: voting script
| From: | Jesper Juhl | Date: | Wed, 02 Aug 2000 16:51:41 +0000 |
| Subject: | Re: voting script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9747@lists.php.net to get a copy of this message | ||
Why not use a cookie to track the people who have voted, and also check
the IP.
So if you get more than a certain number (X) of votes from a specific IP,
then don't allow that IP to vote more that day.
This would allow up to X people behind the same firewall to cast a vote
each day, and would limit vote-spammers to voting X times a day. And most
people who (who accept the cookie) will just be able to vote once.
/Jesper Juhl - juhl@eisenstein.dk
>>>>>>>>>>>>>>>>>> Oprindelig meddelelse
>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<
Den 8/2/00, 6:32:00 PM, skrev robert@crazymooseNOSPAM.co.uk ("Apathy")
til emnet [PHP] voting script:
> Hi,
> I'm not sure if this has a PHP solution or not, I thought I'd bounce
it
> off the people of this group though...
> I have a site that gives users the ability to vote on sections of the
site.
> This is done by a php script that adds 1 to the "vote" field on a MySQL
> database.
> What I want to do is have a system that stops people from voting on each
> section more than once (i.e. cheating).
> I was going to do something that logged their ip for each section and
would
> stop multiple votes -- this would cause problems for people behind
company
> firewalls though, and also cause *huge* logs. Then I thought maybe
sending a
> cookie when they voted that would notify the script if they tried to vote
> again -- this seems like the most feasible idea *I* have come up with so
> far, I was wondering whether anyone has had better solutions for a
similar
> situation though?
> Thanks in advance for any help,
> Robert Morrissey
> --
> Crazy Moose
> http://www.crazymoose.co.uk
> Providing Web Design, Hosting and IT Support
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net