Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Poll based on IP address
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Poll based on IP address

 Post Reply Post Reply
Author
Sweetjockey View Drop Down
Newbie
Newbie
Avatar

Joined: 27 June 2002
Location: United States
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sweetjockey Quote  Post ReplyReply Direct Link To This Post Topic: Poll based on IP address
    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.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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 .
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.