Jump to content


IP ban after voting in a Poll.


6 replies to this topic

#1 Vandalised

    Jedi In Training

  • Members
  • PipPip
  • 307 posts
  • Gender:Male
  • Location:UK
  • Interests:Most sports, football, cricket, hockey, tennis, golf. Web design, graphic design (photoshop) Socialising with friends, going to clubs, bars, concerts.

Posted 15 November 2006 - 09:42 AM

Hey all, I haven't been that active on these forums for a while I'm sad to say :( But I'll be trying to get back to using it more, just alot of A level work.

Anyway, I was wondering is there a way I can have it when someone votes on a poll I will have, they get 'IP banned' from the poll if you like. To stop them from voting more than once. I have an intresting project coming up so it'd be nice if I could get this. ;) Thanks in advance guys & girls.

Regards.

R

#2 Mr. Matt

    Moderator

  • P2L Staff
  • PipPipPipPip
  • 1,945 posts
  • Gender:Not Telling

Posted 15 November 2006 - 11:07 AM

Well there are a number of ways to do this. Firstly if you have a user system in place and they can only vote if they are registered and logged in you can store the user id and check to see if they have voted already in this poll.

Other options for a system with no member part is storing a cookie which says you have voted already in this poll so you can't vote again. Or you can store the user's IP like you were saying and check to see if the user with that IP has already voted or not.

I have to warn you the 2 I just gave you are not fool proof, someone can easily delete the cookie so they can vote again or change their IP / use a proxy, so it is always best to put intergrate both of those systems.

A member system is a bit more fool proof but its down to what you decide and how this project you are going to be doing will work.

Matt

#3 Vandalised

    Jedi In Training

  • Members
  • PipPip
  • 307 posts
  • Gender:Male
  • Location:UK
  • Interests:Most sports, football, cricket, hockey, tennis, golf. Web design, graphic design (photoshop) Socialising with friends, going to clubs, bars, concerts.

Posted 15 November 2006 - 11:13 AM

Cheers Matt, theres 2 good ways for me to look into. I'm sure I'll come up with something. By the way great site, love the photographs keep it up ;)

Regards

R

#4 Mr. Matt

    Moderator

  • P2L Staff
  • PipPipPipPip
  • 1,945 posts
  • Gender:Not Telling

Posted 15 November 2006 - 11:49 AM

yep that could work, but I don't know how proxies fully work, so would need to look into a bit more.

Matt

#5 pirateXcore

    Young Padawan

  • Members
  • Pip
  • 281 posts
  • Gender:Male

Posted 15 November 2006 - 01:39 PM

Users who are using Dial Up internet will have their IP change every time. Also, a lot of people don't like to store cookies, or they delete them after the browser closes.
This might be tedious, and turn people off to it - but I think storing cookies for it would do the same.
Try having people put in their email to vote, have a message sent to the email with a validation link, add that link to a list of valid codes. Have it update the poll after the page has been visited and add it to a new list of valid codes that are used or delete it from the valid codes.

#6 Vandalised

    Jedi In Training

  • Members
  • PipPip
  • 307 posts
  • Gender:Male
  • Location:UK
  • Interests:Most sports, football, cricket, hockey, tennis, golf. Web design, graphic design (photoshop) Socialising with friends, going to clubs, bars, concerts.

Posted 16 November 2006 - 02:09 PM

The email idea is pretty simple and not a bad one, just you get people who are willing to enter different email address's LOL!

#7 Nerve

    Young Padawan

  • Publishing Betazoids
  • Pip
  • 83 posts

Posted 19 November 2006 - 12:05 PM

Some Proxies use cookies.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users