Aug
31
2006
WordPress Comment Spam
Author: PeteAnyone who runs a wordpress blog (and I suspect a number of other blogging tools) would be aware that as soon as your get any sort of notoriety on the web, you start to get hit by comment spammers.
These are automated scripts that seek out blogs or forums, and place messages that almost always contain one or more links to sites advertising drugs, gambling or the labour party.
I can’t speak for other tools, but wordpress handles this pretty well. I’m still on 1.5, so can’t speak for how it works in 2.0 (that’s a discussion for another day) but the fix is pretty simple.
Go to ‘Options > Discussion’
In the ‘Comment Blacklist’ section at the bottom of the base you can chuck phrases that will permanently block any comment with that phrase. I went through a process of putting the drug names in, until I realised that the best solution was to put ‘[/url]‘ in. This piece of code is almost always put into the spam so that the link appears in phpBB forums that use this format.
However, in wordpress it doesn’t do anything, so no real comment would ever put this in.
It’s working quite well for me. We had 18 spam comments overnight, that otherwise would have had to be manually removed (from moderation). Happy spam killing.
