Helping ordinary people create extraordinary websites!

Build a Perl/CGI Voting System

By Allan Peda
2005-07-05

Details: E-mail gotchas
Allowing users to send e-mail from your Web server is a risky move since spammers could potentially exploit your host to send unsolicited e-mail. In order to minimize the possibility of such an exploit, the script always checks to determine if the e-mail is being sent to an acceptable address. You could further tighten the system by modifying the validation method voter_is_okay() within the DraftBallot class to consult a list of acceptable e-mail addresses. Effectively, this would require users to register in advance to vote.

Other methods of preventing duplicate votes could involve collecting IP addresses or setting cookies on the client, but I rejected these approaches as it is likely that many students would use shared public terminals on campus.





Tutorial pages:

First published by IBM DeveloperWorks


 2 Votes

You might also want to check these out:


Leave a Comment on "Build a Perl/CGI Voting System"
You must be logged in to post a comment.

Link to This Tutorial Page!


GET OUR NEWSLETTERS