Rigging PollDaddy

One of my best friends siblings was in a poll competition on a popular blog. He was doing okay, but he wasn't close to the lead. I thought I'd see if it was possible to boost his numbers a bit.

The poll in question was administered by PollDaddy. I blurred out the data, but this is what the embedded poll form looks like:

Form Image

The first step was to find the URL that it was embedding from. That way it removes all of the other loading factors of the blog page. Luckily, in the HTML right after the div containing the form was a <noscript> element.

    <a href="http://polldaddy.com/poll/(poll_#)/">Poll question?</a> 

I noted down the poll #, and went to that URL. The next step was to submit the form, and look at the data in Fiddler (a great tool for viewing web interactions). I noticed that it was requesting a URL, of this form:

/vote.php?va=30&pt=0&r=0&p=(poll #)&a=(answer #)%2C&o=&t=(random)&token=(random token)&pz=(random code)

The "answer #" was easily extracted by looking at the value for that checkbox. The rest of the information I noticed was stored in the "Vote" button under the "data-vote" information...except for "pz", which was weirdly in a hidden input field. The next step was to start up a Python script to spam the hell out of it. I set up a Python script to use requests to request the original page, scrape the "data-vote" information into an array, scrape the "pz" value from the hidden input, and construct the URL. Then, I had it request that URL. It immediately ran into a problem.

When you submit the form normally, you're redirected to /poll/(poll #)/?view=results&msg=voted. With the script, however, it was redirecting to /poll/(poll #)/?view=results&msg=revoted&stokenFound. So something was wrong. I extracted all of the headers from the valid request, and forced Python to use that header. Now it went through! I was getting somewhere.

Unfortunately, after ~20 requests, it would stop working again. The 'revoted' message would show up, and no further votes would be made. I figured that it was probably stopping my IP because of the speed of requests, and looked into getting Python's 'requests' module to fake its IP address. After ~30 mins of no success, on a whim I tried running the script again, and it was working! So that meant that the server was just blocking for a while before allowing more votes. After some trial and error, I found that making it sleep for 3 seconds after every request, and then sleeping for 60 seconds once it was blocked was a good point. I didn't want to harass their servers, and 60 seconds seemed like the time to allow it back in. That averages out to 1 vote every 5.4 seconds.

If you want to look at the script, or use it yourself, it is up here on my GitHub.

Over 4.5 hours, he rose 3000 votes, and went on to win. PollDaddy's a great solution for casual polls, but don't use it if you don't want scripts to vote easily and quickly.


  • Anonymous

    I'm confused as to what exactly I should be replacing in the script

  • Alex

    In the vote.py script, set the poll_id, answer_id, and number_of_votes variables, and then run it. The poll_id is the number in the URL (in your case, 9146634), the answer_id can be found by inspecting element on the checkbox for the person you want to vote for, and looking at the value.

  • Anon

    Hi. How many votes did you put on number_of_votes variable?

  • Amara

    Is this working? Please someone answer me.

  • Shannah

    wow. cool, wanna give it a try. thanks!

  • Shannah

    Hi there. I tried you're code but seems not working on mine, or I'm just really not familiar on how to use python. Would you mind helping me please?

  • Marcos

    Do you have a tutorial to see the variables with fiddler ?

  • Tes

    I am always getting the response Locked. Sleeping for 60 seconds., any way to solve this problem

  • Maria

    Same as Tes, it always says it's locked..

  • Ey

    Traceback (most recent call last): File "C:\Python27\vote.py", line 1, in <module> import requests, re, json, time ImportError: No module named requests ....i dont get this. please help..

  • Alex

    @Marcos: You shouldn't need Fiddler. You should be able to get the information from the site by just inspecting the HTML. TruthSeeker's comment should be sufficient to find it if my article was not. @Ey, you need to add the requests module. Run 'pip install requests', or look up online how to add the 'requests' module.

  • Mark

    It always says "Locked"

  • Mark

    Any solution for "Locked" message?? It don't vote

  • Tim doerr

    anyone interested in assisting me on poly vote. worth 50.00 via PayPal

  • Marcos

    The code works but does not increase the votes in the poll.

  • shibabz

    thank you.. its working...

  • S.

    awesome ! Thank you !!! Anyway we could set this to remove a vote for a specified entry ? lol

  • B

    I'm getting this error... I'm a complete noob ... trying to learn... hope someone can help. I followed truthseeker & kaliboy instructions. I'm not positive I installed PIP & requests package correctly. I just copied pasted it in the spot they said to? any help would be greatly appreciated. Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> ================================ RESTART ================================ >>> Traceback (most recent call last): File "C:\Users\msusprtn\Desktop\vote1.py", line 100, in <module> get_all_proxies() File "C:\Users\msusprtn\Desktop\vote1.py", line 31, in get_all_proxies f = open("proxy.txt", "r") IOError: [Errno 2] No such file or directory: 'proxy.txt' >>>

  • dude

    I think people are getting the locked message because their ip address has already been used once and PollDaddy is blocking it on the second usage of that IP. Try using a VPN to get a new IP and try running the code again. It will vote once and lock thereafter. I thought the the proxy.txt file would get around this blockage but it looks like PollDaddy is ignoring the proxy ip's in the text file.

  • A friend

    hello, i'm getting this error message: "Locked. Sleeping for 60 seconds." after 60 seconds, the same thing happens. i'm not too sure why it's doing this... any ideas? I wondered if it was to do with cookies, so i deleted all of those, but the problem persists. i appreciate all the work you've done already, but if you had the time to help an idiot that would be very much appreciated.

  • A friend

    hello again. i spent some more time looking at this today. i noticed that the proxy.txt and useragent.txt files on my computer didn't match the ones on github (in fact, they were the same). i had right-clicked and saved-as, but this wasn't a good idea. i went into the 'raw' tab for each txt file on github and copy and pasted those values into the txt files on my computer, expecting to be triumphant. i still get the same problem.

  • shibabz

    im getting locked for 60 seconds after successfully voted (time 1).. is there a way to make this work?

  • The Doctor

    Syntax error invalid syntax line 5 <!DOCTYPE html>

  • Destiny

    Thanks a lot for the script. To make it work in python3, we need to change xrange to range. We also need to modify the lines involving print. e.g. print"ABCDEFG" need to be changed to print("ABCDEFG")


    how to bypass the timing if poll daddy has lapse time before you can revote?

  • Jimmy Jack

    Thanks! Works well using your instructions combined with TruthSeeker's post. Does the script by default cycle through the proxies and useragents? Can I add proxies to the TXT file? Also noticed I can only vote 25 times and then it locks it out for about 180 seconds.

  • pootttt

    i cant get the poll url because the web use pluggins what should i do?

  • Rayhug

    At the beginning, trying to understand your HVAC may appear difficult. Ignorance could be scary. There may be many details available that will help turn this topic much easier to understand, however. Before calling for repair, get all the details regarding a broken system. If they're available, maintenance records, make a note of what brand your pc is in addition to the model number and. This will aid make sure that the contractor you hire has all the necessary information. Before you hire an HVAC contractor, have some form of idea of the work which needs to be done. In the event you understand what has happened with all the unit, discussing the thing is simplified. If you don't know what's wrong, it might be harder. This really is information that you ought to have prepared beforehand. Every spring you must clean the fan and coils blades in your condenser fan. First, the ability must be switched off so things don't move as you may work. Then, consider the grill off, pull the blades out, and gently clean them along with the unit itself. Make sure that an outside unit is with the shade. It will be better because it will not have to function as hard to cool off the environment, in the event it draws in air for cooling. Boost energy efficiency by putting your condenser unit from the shade. You reduce costs in this way for the reason that ac has become pulling in cooler air, that is quicker to cool further. Hold the HVAC system checked every six months at the very least. Generally, you would like it carried out the fall along with the spring. A simple check is worth it to protect yourself from problems in the future. During winter weather , be sure you shut off outdoor condenser units. Avoid damaging the system by turning it well once the outdoor temperature drops below 60 degrees. Accomplishing this keeps your body working well for years and helps you save from being forced to spend some money to fix it. Don't ever let your home temperature get dangerously high. Your average AC unit are only able to lessen the temperature in your house by about 20 degrees in the normal duration of time. If the temperature in your home reaches 100 degree Fahrenheit, it is going to only reduce it to 80 or higher. This is not a comfortable and safe temperature for you to sleep in. Before you purchase any HVAC contractor, make sure you spend the best value of time researching their reputations and credentials. The BBB is obviously great when you are searching for references or online reviews. Investing some time to look at potential contractors will save you money and headaches. Are you aware an AC unit can freeze? You will find sometimes also freezes that happen in a drain line, and this can be confused for a plumbing leak. Should this happen, disable the compressor by switching the thermostat to run the fan only. It's a good idea to get in touch with professionals to help with this even though you will get the ice to melt when you switch everything to the fan. An incredible location to seek advice is online in a review website should you need help locating somebody to help take of your HVAC system. There are numerous websites online offering reviews and referrals for HVAC repair as well as other important service. This will help get a first-rate professional. Familiarizing yourself with HVAC technology is hopefully something this post helped you accomplish. It's really challenging started from it unless you get motivated, so make sure that you take these matters into consideration before you get started. This may be sure you positive results.

  • Adbotnal

    Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why waste your intelligence on just posting videos to your blog when you could be giving us something informative to read? Thank you. I enjoy this! adbot

  • Richardpob

    Agen Poker Indonesia

  • MeganTit

    Of course, what a great site and revealing posts, I surely will bookmark your blog.All the Best!

  • Robertjelay

    Hello. And Bye.

  • 3aplus63DadIa


  • Bolek96

    Jestem pod całkiem wielkim wrażeniem. W sumie to nie spodziewałem się takiego forum.

  • Gabrielaexpit

    Hello to all In this baffling span, I proclivity you all Appreciate your relations and friends

  • Concetta

    viagra bez recepta u srbiji viagra online generic comprar sildenafil por internet