Building a better captcha
A simple concept to limit blog comment spam
First off, this is a quick post. I am writing this now because it is something I have recently been practicing with great success and Im afraid if I wait too long to discuss it, someone will beat me to it.
Anyone who has a blog knows that comment spam is a HUGE pain in the ass. There are many MANY solutions out there to deal with the ever increasing volume of blog comment spam. These solutions range from simple captcha, to simple mathmatical questions (ie: what is 4 plus 9?) to some even more esoteric solutions (Sidenote: The Hacker Webzine is a blog I can't recommend enough for people interested in Internet Security). While the solution presented on the Hacker Webzine link just mentioned seems to be very effective, I'd like to propose to you all a much more unorthodox method to go about combating Comment Spam.
A normal captcha presents some data (usually in the form of a rastered image) and asks a user to interpret and enter that data to be validated by the script. This is very effective but recently many systems which employ it (Digg?) have had their captcha's cracked via rather reliable methods. What does this mean? It means its time to start thinking about the next big thing to prevent comment spam! Captcha by themselves range at about 70% efficiency in preventing spam comments, but there are always those that slip through. Especially when we are dealing with others (like myself and probably many of the readers here) who have enough creativity and drive to come up with new techniques and tricks.
I would like to suggest a Reverse Captcha. In addition to the captcha you already use, consider this: Create a blank text field and give it a name that you expect to get recognized by a spam bot...for example, if your comment form does not ask the person to enter their email twice, create a text field that is called email2. Make this field as you normally would, but use CSS rules to make it invisible to the user (dont use display:none;) then write a back-end script that validates the comment form by checking for data in that hidden email2 field.
if (!empty($_POST['email2'])) { die("Sorry sucka.") };
If your script detects that there is a value passed from that field then it can safely assume that the comment was not submitted by a human because any human viewing the screen will not ever see that field. Bam, you've just made yourself a reverse captcha.
Apply this very simple concept to your pre-existing comment form and I guarantee you will see a dramatic decrease in your comment spam.
And for all my Black Hat's out there....one more fucking thing for you to consider. Time to up your game again!
Back
Website:
Comment: Great article, most of my blogs don't have that much of spam problem right now; but I did an asp.net implementation of this for my blog system I am gonna log how many failed attempts I have will keep you posted.
Comment: Cool man, I'll be interested to see what you report back!
Announcements & News 14 Posts
General news relating to this site
Google Hacking 9 Posts
Oh, the treasures that are to be found on Google!
Links & Points of Interest 9 Posts
Links of interest
Technical 14 Posts
Scripts, Programming, Advanced SEO Techniques
Theory 23 Posts
Off the top of the dome...
Tools & Applications 5 Posts
Tools to help you grow your empire
Twitter 6 Posts
Anything and everything having to do with Twitter
Website Development 4 Posts
Principals and Best Practices for general web development
recent comments:
nickycakes on I Could Be Anythingabdul on An open letter to all my Friends across all Social Networks.
Musashi on Fun with String Permutations
Rob on An Introduction to Datapresser's Content Generator
stack paper on An Introduction to Datapresser's Content Generator
stack paper on An Introduction to Datapresser's Content Generator
big man on Dude, where's my proxy?!?!
5ubliminal on Stuffing website inputs: A technique for gaining backlinks.
abdul on Stuffing website inputs: A technique for gaining backlinks.
Paul on An Introduction to Datapresser's Content Generator
Subscribe to Recent Posts
Subscribe to Featured Databases
Subscribe to Free Downloads
