<p><strong>What mechanisms do you know that prevent your site from being abused by anonymous spammers.</strong></p>

<p>For example, let's say that I have a site where people can vote something. But I <em>don't</em> want someone to spam something all the way to the top. So I found (a) creating an account and only allowed to vote once and (b) CAPTCHA to decrease spam. What other methods do you know and how good do they work?</p>

[{'answer_id': 42079, 'author': 'Chris Upchurch', 'author_id': 2600, 'author_profile': 'https://Stackoverflow.com/users/2600', 'pm_score': 4, 'selected': False, 'text': '<p><img src="https://i.stack.imgur.com/X11ol.png" alt="alt text"></p>\n\n<p>From <a href="http://xkcd.com/233/" rel="nofollow noreferrer">xkcd</a></p>\n'}, {'answer_id': 42085, 'author': 'OwenP', 'author_id': 2547, 'author_profile': 'https://Stackoverflow.com/users/2547', 'pm_score': 0, 'selected': False, 'text': "<p>stackoverflow has a few features that help with this; I think the single most useful step you can take is disabling the ability of anonymous users and new accounts to vote.  This way, no one can sign up for hundreds of accounts and use their one vote to overpower other users.  I'd say requiring a few posts or membership for a certain period of time are both decent options.</p>\n\n<p>Some would say you could allow one vote per IP address to help address this, but I've played plenty of games where malicious users with a nigh-infinite number of proxies defied IP address-based security.  It's a deterrent, but a savvy user will get around it easily.</p>\n"}, {'answer_id': 42094, 'author': 'Joel Coehoorn', 'author_id': 3043, 'author_profile': 'https://Stackoverflow.com/users/3043', 'pm_score': 5, 'selected': True, 'text': '<p>The big thing I\'ve noticed is that whatever you do, you want your system to be unique.  You want an attacker to have to tailor their automation program for your specific site, rather than just throw a pre-existing script at it that will work almost anywhere.  It doesn\'t even have to be cryptographically secure; it just has to make your site a little different from the norm.</p>\n\n<p>This doesn\'t mean you can\'t or shouldn\'t use something like a pre-built captcha widget.  Absolutely do use one of those as a staring point!  It just means you have to customize it somewhere so that something extra happens that is outside the norm and will break any pre-existing script that could normally defeat it.</p>\n\n<p>If your site gets big enough that you have attackers targeting it specifically, then your simple little customization probably won\'t hold up anymore and you might have do something a little more special and think about real cryptography and all that.  But that\'s one of those things that\'s a "good" problem to have.</p>\n'}, {'answer_id': 42095, 'author': 'Martin Salias', 'author_id': 4020, 'author_profile': 'https://Stackoverflow.com/users/4020', 'pm_score': 0, 'selected': False, 'text': '<p>This is the study area of <a href="http://en.wikipedia.org/wiki/Human_computation" rel="nofollow noreferrer">Human Computation</a>.</p>\n\n<p>there is an excellent video from Luis von Ahn here:\n<a href="http://video.google.com/videoplay?docid=-8246463980976635143" rel="nofollow noreferrer">http://video.google.com/videoplay?docid=-8246463980976635143</a></p>\n'}, {'answer_id': 42096, 'author': 'Sam Hasler', 'author_id': 2541, 'author_profile': 'https://Stackoverflow.com/users/2541', 'pm_score': 0, 'selected': False, 'text': '<p>There\'s a few ideas in the answers to the <a href="https://stackoverflow.com/questions/8472/best-non-image-based-captcha">Best non-image based CAPTCHA?</a> question if you haven\'t seen it already.</p>\n'}, {'answer_id': 42099, 'author': 'erickson', 'author_id': 3474, 'author_profile': 'https://Stackoverflow.com/users/3474', 'pm_score': 2, 'selected': False, 'text': '<p>Charge for votes, like they do on some television "talent" shows, and get spammed all the way to the bank!</p>\n\n<p>Seriously, this is a really tough problem, and someday (maybe soon, if you listen to Ray Kurzweil), computers will do testing to screen out humans. The answers I\'m adding to the list have obvious drawbacks, but just for the sake of enumeration: moderation (have humans do the testing), and IP-based tracking (limit the number of votes from a host).</p>\n'}, {'answer_id': 42100, 'author': 'BlaM', 'author_id': 999, 'author_profile': 'https://Stackoverflow.com/users/999', 'pm_score': 2, 'selected': False, 'text': '<ul>\n<li>Limit the number of votes per IP address per time</li>\n<li>Block anonymizing proxies.</li>\n<li>For voting: How about shuffling the value that has to be returned by the form on a "per session basis". Once "1" means the first item, "2" means the second. Then "77" means the first item, "812" means the second, ... could be some simple maths behind the scene, but it prevents users from just sending the same HTTP query over and over again.</li>\n<li>What\'s worked for me very well: Use AJAX forms, not simple HTTP forms. Technically it\'s not much more complicated to fake votes, but I have written a simple blog software and it\'s only SPAM protection mechanism is to submit the comments via AJAX - no SPAM so far.</li>\n</ul>\n'}, {'answer_id': 42101, 'author': 'ila', 'author_id': 1178, 'author_profile': 'https://Stackoverflow.com/users/1178', 'pm_score': 0, 'selected': False, 'text': "<p>I normally use a combination of the two: anonmous user is free to browse everything, but if he wants to vote, then he has to register.</p>\n\n<p>In the registration process, depending on the situation, I use an optin thru mail (to complete registration and confirm that at least the mailbox exists) and/or a CAPTCHA.</p>\n\n<p>From that point on you can decide if the user can vonte more than once, or any other rule.</p>\n\n<p>Btw I'm not a fan of the IP-based constraints: there are a lot of situation in which big organization's network use few IP for all their users, so the risk to block users that could vote is high. </p>\n"}, {'answer_id': 42325, 'author': 'ConroyP', 'author_id': 2287, 'author_profile': 'https://Stackoverflow.com/users/2287', 'pm_score': 3, 'selected': False, 'text': '<p><img src="https://i.stack.imgur.com/zyh7b.png" alt="Captcha"></p>\n\n<p>From <a href="http://random.irb.hr/signup.php" rel="nofollow noreferrer">Quantum Random Bit Generator Service</a>, via <a href="http://www.mneylon.com/blog/archives/2008/09/02/captcha-sorts-out-the-nerds-from-the-boys/" rel="nofollow noreferrer">MNeylon</a></p>\n'}, {'answer_id': 42425, 'author': 'Antti Kissaniemi', 'author_id': 2948, 'author_profile': 'https://Stackoverflow.com/users/2948', 'pm_score': 3, 'selected': False, 'text': '<p>For a CAPTCHA system, I heartily recommend <a href="http://recaptcha.net/learnmore.html" rel="nofollow noreferrer">reCAPTCHA</a>.</p>\n\n<p>Traditional computer-generated CAPTCHAs will <a href="http://www.codinghorror.com/blog/archives/001001.html" rel="nofollow noreferrer">eventually be broken</a> by developing a sufficiently intelligent system. For instance, <a href="http://www.lafdc.com/captcha/" rel="nofollow noreferrer">here\'s someone</a> who claims to break the Google CAPTCHA, formerly considered unbreakable, with a 30% hit rate. reCAPTCHA, by definition, shows you only images that cannot be recognized by optical character recognition.</p>\n\n<p>And at the same time, your users\' effort will be directed towards the common good - they help digitize books by recognizing words that cannot be recognized automatically.</p>\n\n<p>See <a href="http://recaptcha.net/learnmore.html" rel="nofollow noreferrer">here</a> for further explanation and to try it out.</p>\n'}, {'answer_id': 895737, 'author': 'DisgruntledGoat', 'author_id': 37947, 'author_profile': 'https://Stackoverflow.com/users/37947', 'pm_score': 2, 'selected': False, 'text': '<p>I\'m a fan of the "hidden field" CAPTCHA. I don\'t remember where I read about it, but the idea is this:</p>\n\n<ul>\n<li>create your form as normal</li>\n<li>add an extra field but hide it (i.e. <code>style="display:none"</code> on the surrounding div or table row)</li>\n<li>after submission, if the field is blank, do the appropriate action (eg send an email); if the field has been filled in, then it\'s a robot submitter</li>\n</ul>\n\n<p>The only case where this falls down is if the user\'s browser doesn\'t handle CSS (or they have it switched off), which is very rare.</p>\n'}]
['https://Stackoverflow.com/questions/42076', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2644/']