1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

What is the best way to secure against double rating a post?

Discussion in 'Programming' started by Stefany93, Aug 21, 2012.

  1. #1
    Hello friends,

    I have recently written a rating system, howerver I want to restrict a user to rate a post multiple times.
    I tried storing the their IP in the DB but the problem arose when I found out that they could only vote on one post for the entire blog and that wasn't pretty.

    So could you please tell me a better way to create a state for the user to vote only one time per a post?

    Thank you very much!

    Best Regards
    Stefany93, Aug 21, 2012 IP
  2. deathshadow

    deathshadow Illustrious Member

    Likes Received:
    Best Answers:
    Trophy Points:
    So store their IP and a unique ID for the post they rated, instead of just the IP.
    deathshadow, Aug 21, 2012 IP
  3. Stefany93

    Stefany93 Greenhorn

    Likes Received:
    Best Answers:
    Trophy Points:
    Thank you! Btw, I also hate JQuery! :D
    Stefany93, Aug 22, 2012 IP