Author Topic: IP Tracking  (Read 4836 times)

0 Members and 1 Guest are viewing this topic.

Offline Zedd

  • Pre-Newbie
  • Posts: 2
    • View Profile
IP Tracking
« on: November 25, 2002, 06:18:37 PM »
First off I'd like to thank the authors for a fantastic script! I've modified the templates and 2 of the php scripts to create a simple image rating system without any of the other functionality of 4Images and it works GREAT! I have only one question that I'm hoping someone can answer for me.......
When a visitor rates an image their IP is stored to prevent further votes on the same image from the same IP. This works quite well but for one thing... if I come back 2 days later I can vote again. How would I go about preventing the same IP from EVER voting on the same image twice?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
IP Tracking
« Reply #1 on: November 26, 2002, 09:16:33 AM »
This will not work. If the visitor comes back 2 days later he will have another IP in 99%. The only chance to prevent user from voting twice is to allow the voring only for registered user and store the image id and the user id.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
And
« Reply #2 on: November 26, 2002, 02:21:19 PM »
Cookies might be another alternative but still wouldn't completely solve the issue.  Phew!  And the overhead of reading/writing all those cookies...

Offline Zedd

  • Pre-Newbie
  • Posts: 2
    • View Profile
Broadband iNet IP's
« Reply #3 on: November 28, 2002, 04:20:56 AM »
Thank you for a speedy reply!  I was more interested in setting up the IP log to hold IP's indefinitely because most of the visitors to my wifes site are on broadband and here in Canada at least, we hold our IP's for months on end. So if there isn't a way to prevent the IP log from flushing that's Ok ........... the script rocks and I'm not going to start over because of a small problem like tihs. Once again a big THANKS!

ps... I'll post a link in about a week. I think there are alot of people looking for a great image rating system without too many bells and whistles which is exactly what I've done with 4images.