Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

What technique does perlmonsk use to prevent double voting?

by BUU (Prior)
on Apr 06, 2003 at 20:25 UTC ( #248472=monkdiscuss: print w/ replies, xml ) Need Help??

As in, how do you prevent one person from voting on a node twice? Do you keep a list of all the nodes a person has voted on and do a simple query for each node your displaying? Does each node have a list?

Comment on What technique does perlmonsk use to prevent double voting?
Re: What technique does perlmonsk use to prevent double voting?
by nothingmuch (Priest) on Apr 06, 2003 at 20:38 UTC
    I was recently pointed to The Everything Bible The Everything Bible. Perhaps it's of use.
    I figure that there's a table of votes, primary key is (node,user). It's simpler than keeping BLOBs that are arrays.

    but i'm probably wrong.

    -nuffin
    zz zZ Z Z #!perl
Re: What technique does perlmonks use to prevent double voting?
by VSarkiss (Monsignor) on Apr 06, 2003 at 23:09 UTC

    nothingmuch is pretty much correct above.

    There's a database table called "vote" which associates user IDs and node IDs, so you can keep track of who voted on what. There are additional safeguards in place to keep the voting system from being spoofed by votebots (one of them is an MD5 sum that is sent out, then checked on its way in).

    The Voting/Experience System is an add-on to the base Everything system. There's a nodeball for it on the Everything developer site, but I wouldn't swear that the version here hasn't been updated and/or modified. Probably best to ask vroom, who authored it.

      There are additional safeguards in place to keep the voting system from being spoofed by votebots

      Why would someone want to do this, and why would Perlmonks care if they did?

        Someone might want to do it as some sort of personal challenge, or to try and "subvert the system", or because they're bored, or because they want to annoy people. It wouldn't necessarily be a huge deal, but it would be quite annoying to have someone running some kind of bot that started making the node reputations outrageously high or low. Although node reputations really aren't any more useful than seeing what nodes people liked or disliked, a bot like this could make the reputation system even less useful because people would just start ignoring it altogether.

        kelan


        Perl6 Grammar Student

        Why would someone want to {keep the voting system from being spoofed by votebots}, and why would Perlmonks care if they did?
        Why do people put graffiti on walls, and why do others restore it to their original color?

        The analogy is similar, I suspect.

        -- Randal L. Schwartz, Perl hacker
        Be sure to read my standard disclaimer if this is a reply.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://248472]
Approved by tye
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2014-07-13 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (249 votes), past polls