Needs Improvement

Colin Coller's Blog
Posts: 62 | Comments: 156 | TrackBacks: ?

January 26, 2005

Relief from comment spam

I've been getting hammered with comment spam ever since CopySourceAsHtml took off. I have comment moderation enabled, so none of it gets published, but I hate it when I get comment notification emails and they're all for spam.

Yesterday I realized that all of my spam start with HTML tags (usually <H1>) and that I could virtually eliminate them by rejecting comments that start with HTML tags. 3 minutes and a quick Perl refresher later, I'm no longer inconvenienced by comment spam. I should really install the MT-Blacklist and nofollow plugins, but 3 lines of Perl has basically solved the problem for me.

07:39 AM | Colin

TrackBacks

Comments

# RE: Relief from comment spam

That's a nice solution. I've been thinking of doing something similar where I remove any comments with more than 7 or 8 links. I need to do some research on my own comment spam to see what the magic number is.

12:27 PM | Haacked

# RE: Relief from comment spam

I was thinking about implementing a image area and textbox where you'd have to type in what was in the image (random numbers and letters). This way a bot or whatever couldn't spam your blog. I've actually seen this in place in a few people's blogs, so I'm sure it's not too hard to do.

03:37 PM | Willie Tilton

# RE: Relief from comment spam

Willie:

It's called a CAPTCHA. There are CAPTCHA plugins for most blog packages, though they're becoming less and less effective.

Colin

06:38 PM | Colin