Welcome to AspAdvice Sign in | Join | Help

Spam Countermeasures

Spam is an increasingly annoying and expensive part of our lives as computer users.  In the last week, I’ve been forced to take measures to deal with spam on several of my web properties.  On RegExLib.com, an online library of regular expressions, it was brought to my attention that a large amount of comment spam was being added to expressions.  After some analysis, I ended up cleaning out over 35,000 spam comments spanning the last 18 months or so.  Among these were also a few cross-site scripting attack attempts made possible by a lack of HTML encoding in the comments.  I corrected these issues and emplaced a CAPTCHA, as well as changing the IDs of the textboxes and buttons involved in the comments form.  These changes have eliminated 100% of the spam on that site.  However, the image-based CAPTCHA is annoying and difficult for humans to figure out the first time.

 

ASPAlliance was suffering from similar abuses, though our moderation of all comments was keeping the spam comments from persisting on the site for more than a few hours.  Since I didn’t want anything as intrusive as the image CAPTCHA I used for RegExLib, I decided to experiment with an Invisible Captcha from Phil Haack.  It was simple to implement and seems to be effective, though it has only been in place for a short time.  If it proves effective long-term, I’ll likely use it in place of the image-based CAPTCHA for RegExLib as well.

 

One annoying issue with the ASPAlliance spammers is that we already were requiring user registration for some of our submission forms, such as our submit a proposal page, so one enterprising spammer was registering many junk user accounts as part of the attack.  I added the CAPTCHA to the register page in addition to the comments form to prevent this attack as well.

 

All told, I’ve spent close to 30 hours in the last week combating spam.  That’s time I’d much rather have spent writing articles or adding useful features to my sites.  That’s a big waste, and it’s being felt by others like me all over the world, including every one of you who had to spend any time in the last week deleting spam messages from your inbox or junk email box.  The solution, I believe, is to have better communication and, specifically, authentication techniques for the Internet.  If and when digital signatures become accepted, and all emails’ sources can be verified reliably, email spam will drop significantly.  Once reliable and ubiquitous single sign on technologies like Cardspace allow many web sites to authenticate users via a trusted authority, comment spam can be eliminated or greatly reduced.  We’re not there yet, but hopefully in the next five years we’ll make some progress.

Tags: ,
Published Tuesday, February 27, 2007 10:52 AM by ssmith

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Spam Countermeasures

I'm caught in an endless loop with spam-checking.

I am involved in a basic html/web graphics site that provides free instruction for beginners, and one of my students cannot send email to me at either of my domains, both of which are hosted by DiscountASP.NET

The reason cited, and 'verified' to her by her ISP (Comcast) is that there is no ReverseDNS on my domain, and they sent a link to prove their case.

I turned in a trouble ticket, and DiscountASP.NET (who I believe, btw) sent me the very same link to prove there IS ReverseDNS on my mail, and now I'm stuck in "loop comma endless" between the two.

I welcome anything that will halt all the crap I receive, much less the web attacks...

Tuesday, February 27, 2007 12:43 PM by Dave Campbell

# re: Spam Countermeasures

Dave, I use Comcast and my sites are hosted with DASP, to combat spam I've used ASP.NET 2.0 functions with some added help from the Ajax ControlToolkit.

With ASP.NET 2.0 and Ajax we can eliminate bots altogether and while trapping IPs is possible it's still not a viable option until we are no longer stateless and we can adopt standards worldwide.

Tuesday, February 27, 2007 1:00 PM by Mark Wisecarver

Leave a Comment

(required) 
required 
(required) 
Enter the code you see below