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   

Add To Your Reader

My Links

Archives

Post Categories

 

I am a Microsoft MVP for ASP.NET.
I am an ASPInsider.
<May 2008>
SMTWTFS
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

Comment Stats

DayTotal% of Total
Sunday 1866.8%
Monday 37913.9%
Tuesday 45316.7%
Wednesday 50418.5%
Thursday 53519.7%
Friday 49418.2%
Saturday 1666.1%
Total 2717100.0%

Hour1Total% of Total
12:00 AM 652.4%
1:00 AM 682.5%
2:00 AM 622.3%
3:00 AM 742.7%
4:00 AM 572.1%
5:00 AM 1033.8%
6:00 AM 1084.0%
7:00 AM 1585.8%
8:00 AM 1716.3%
9:00 AM 1475.4%
10:00 AM 1716.3%
11:00 AM 1816.7%
12:00 PM 1886.9%
1:00 PM 1696.2%
2:00 PM 1605.9%
3:00 PM 1324.9%
4:00 PM 1073.9%
5:00 PM 923.4%
6:00 PM 913.3%
7:00 PM 963.5%
8:00 PM 833.1%
9:00 PM 782.9%
10:00 PM 792.9%
11:00 PM 772.8%
Total 2717100.0%

Comments by Blog Entry Date/Time

Day Entry MadeAvg.Total
Sunday 5.54144
Monday 5.22339
Tuesday 4.28419
Wednesday 7.67637
Thursday 6.90607
Friday 5.48411
Saturday 5.33160
Total 5.842717

Hour1 Entry MadeAvg.Total
12:00 AM 5.0035
1:00 AM 1.002
5:00 AM 0.000
7:00 AM 7.0035
8:00 AM 5.35107
9:00 AM 6.32278
10:00 AM 6.47246
11:00 AM 4.41181
12:00 PM 6.88330
1:00 PM 3.00111
2:00 PM 5.41222
3:00 PM 8.64285
4:00 PM 4.0589
5:00 PM 5.92154
6:00 PM 4.52113
7:00 PM 9.67174
8:00 PM 9.80147
9:00 PM 5.05111
10:00 PM 5.4265
11:00 PM 4.5732
Total 5.842717

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


Blog Stats

Favorite Web Sites

My Books

My MSDN Articles