Poll based on IP address
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=13037
Printed Date: 11 April 2026 at 10:39pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Poll based on IP address
Posted By: Sweetjockey
Subject: Poll based on IP address
Date Posted: 18 December 2004 at 3:20pm
|
I was wondering if there's a way to set the poll to allow 1 vote based on a person's IP address. As with the current way if you wanted to cheat even though the poll is set to only allow 1 vote. All you have to do is delete the cookies and bam! you can vote again. If the All powerful programmers would reply that'd be great :) I love all your scripts.
|
Replies:
Posted By: dj air
Date Posted: 18 December 2004 at 3:35pm
you would need to create a new table that stores the IP addresses.
everytime a vote is done you check for the IP, if it doesn't
exist add the vote and update the new table with the IP Address.
if it does you alert the user. or you can check before voting to see if the IP is there but that will use up more proccessing .
|
Posted By: Gullanian
Date Posted: 18 December 2004 at 4:41pm
Bruce did consider this method I believe but rejected the idea because
it would need to potentially store a lot more data in a datbase which
would slow down the smaller forums a lot.
The new table would have two columns, poll ID and IP.
|
Posted By: dj air
Date Posted: 18 December 2004 at 5:52pm
if you where going to use this method its better to store the Author_ID, so it doesn't mess with dynamic IPs ...
i wouldn't because of the table size as gullanian said.
|
|