Scott on Writing

Musings on technical writing...

Giving a CAPTCHA a Whirl

Comment spam is evil. I've been getting on the tune of 25-50 comment spams per day the past several weeks. My custom utility to quickly delete comments in .Text has helped delete comment spams after the fact; additionally, SQL triggers have, to date, proactively nuked over 20,700 comment spams (although they have also stopped valid posters who have added common spam 'keywords' to their posts).

Since the SQL triggers are clearly no longer working, I'm going to give CAPTCHAs a try. In theory, CAPTCHAs can be broken... easily. However, I'm hoping/assuming that the vast majority of scum known as comment spammers aren't using programs that can decode CAPTCHAs and aren't using the social engineering/free pr0n!! techniques detailed here. Rather, I'm assuming a scant few of the comment spams (the ones I get like one or two of a day) are entered by actual humans; the majority, of which I get a blast of, say, 30 in a five second period, are probably coming from a pretty dumb HTTP screen scraping/HTTP posting program. If my assumptions are sound, then the CAPTCHA ought to drastically reduce the amount of comment spam appearing on my blog.

I've taken down my comment spam-related triggers and replaced them with Miguel Jimenez's free Clearscreen SharpHIP CAPTCHA Control. The nice thing about this control is that it automatically checks for validity on postback so it integrates with .Text without having to modify the codebase. One downside, however, is that any other postback sections on the web page will no longer work unless the CAPTCHA is filled out (you may have noticed the blog entry rating feature has been removed).

Hopefully the CAPTCHA cuts down on the comment spam, as having to wade through and delete 50+ comments every day or two is really started to get mundane and annoying. (I do take removing comment spam seriously, though. I challenge you to find a single piece of irrefutable spam in one of my blog entries that's older than, say, a week.)

posted on Thursday, July 06, 2006 5:17 PM

Feedback

# re: Giving a CAPTCHA a Whirl 7/6/2006 5:18 PM Scott Mitchell

Hello gang - just testing out the CAPTCHA control. Feel free to test it out, hope it works for all.

# re: Giving a CAPTCHA a Whirl 7/6/2006 7:50 PM Dennis Gorelik

Why don't you use blog which provides all this CAPTHCHA out-of-box?
For example: www.blogger.com

# re: Giving a CAPTCHA a Whirl 7/7/2006 1:38 PM Scott Mitchell

Dennis, I started this blog back when there weren't so many choices for pre-build blogging engines. Plus, I wanted my own domain name and more control over the entire site from end-to-end. This grants me more flexibility, as I've been able to add a number of 'custom features'; see the Blog Enhancements category:
http://scottonwriting.net/sowblog/category/114.aspx

Conversely, however, running my own blog has kept me in the blogging dark ages, so to speak. I've been meaning to update this blog from .Text to Community Server, for instance, but haven't had the free time.

# re: Giving a CAPTCHA a Whirl 7/7/2006 7:27 PM Jason Haley

Captcha has saved me a TON of time. I hardly ever get spam anymore ... but of course I'm probably not as popular as you either :)

# Spamorama 8/14/2006 4:12 AM Rick Strahl's WebLog

I broke down a couple of days ago and added a Captcha control to the comments section of the Blog to help cut down on spam. Enough is enough...

# re: Giving a CAPTCHA a Whirl 10/8/2006 6:25 PM Ashok Padmanabhan

Hey Scott,
Which CAPTCHA do you like more? The clearscreen or Jeff Atwood's captcha that you discuss in your security article Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 5


Thanks

# I've Noticed My CAPTCHAs Effectiveness is Decreasing 2/20/2007 5:05 PM Scott on Writing

# I've Noticed My CAPTCHAs Effectiveness is Decreasing 2/20/2007 5:38 PM The estatic reading list

About six months ago I implemented CAPTCHAs here on ScottOnWriting.NET and immediately saw comment spams

# I've Noticed My CAPTCHAs Effectiveness is Decreasing 2/20/2007 5:49 PM Community Blogs

About six months ago I implemented CAPTCHAs here on ScottOnWriting.NET and immediately saw comment spams

# re: Giving a CAPTCHA a Whirl 2/21/2007 7:45 AM Darren Kopp

Peter Bromberg just made a new captcha implementation using css and html.

http://www.eggheadcafe.com/tutorials/aspnet/79e023b6-124f-4f63-865c-6d357cddbe56/a-better-captcha-control.aspx

Title:  
Name:  
Url:
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments   

My Links

Ads Via DevMavens

Archives

Post Categories

 

I am a Microsoft MVP for ASP.NET.
I am an ASPInsider.
<February 2010>
SMTWTFS
31123456
78910111213
14151617181920
21222324252627
28123456
78910111213

Comment Stats

DayTotal% of Total
Sunday 2046.8%
Monday 42514.1%
Tuesday 51617.1%
Wednesday 55318.4%
Thursday 58019.2%
Friday 54718.2%
Saturday 1886.2%
Total 3013100.0%

Hour1Total% of Total
12:00 AM 772.6%
1:00 AM 812.7%
2:00 AM 682.3%
3:00 AM 822.7%
4:00 AM 692.3%
5:00 AM 1264.2%
6:00 AM 1183.9%
7:00 AM 1806.0%
8:00 AM 1926.4%
9:00 AM 1585.2%
10:00 AM 1876.2%
11:00 AM 1936.4%
12:00 PM 2016.7%
1:00 PM 1846.1%
2:00 PM 1695.6%
3:00 PM 1354.5%
4:00 PM 1153.8%
5:00 PM 1063.5%
6:00 PM 1013.4%
7:00 PM 1073.6%
8:00 PM 923.1%
9:00 PM 882.9%
10:00 PM 893.0%
11:00 PM 953.2%
Total 3013100.0%

Comments by Blog Entry Date/Time

Day Entry MadeAvg.Total
Sunday 4.94158
Monday 4.80384
Tuesday 4.08477
Wednesday 7.47680
Thursday 6.25675
Friday 5.02462
Saturday 4.78177
Total 5.413013

Hour1 Entry MadeAvg.Total
12:00 AM 5.2937
1:00 AM 1.002
5:00 AM 0.000
7:00 AM 3.8550
8:00 AM 3.72134
9:00 AM 6.02295
10:00 AM 5.63276
11:00 AM 4.20193
12:00 PM 6.14350
1:00 PM 3.17133
2:00 PM 5.00230
3:00 PM 7.62320
4:00 PM 4.00108
5:00 PM 6.04169
6:00 PM 4.64116
7:00 PM 8.95188
8:00 PM 8.63164
9:00 PM 5.00115
10:00 PM 6.31101
11:00 PM 4.5732
Total 5.413013

Learn More About Comment Stats
1 - All times GMT -8...


Blog Stats

Favorite Web Sites

My Books

My MSDN Articles