Soon after I launched this blog, I started to receive heavy amount of spam commENTs, mostly from some Russian sites. It’s not only that I can’t read their commENTs in Russian, but some of their commENTs are extremely long. I think this overloads the database even though its impact may be minor.
Luckily, there are many plug-ins to fight spams for your WordPress blogs. Here are a couple of popular and effective solutions.
1. Akismet is a great anti-spam plug-in that comes installed by default. You just need to turn it on by clicking ‘Activate’.* With Akismet, you can set commENT blacklist.** The beauty of this blacklist is that you don’t have to put the whole word or the whole IP address. It will block any commENTs that contain the partial words and partial IP address.
A lot of spams that I received from the Russian sites had differENT IP addresses almost every time because they hijacked the addresses. But their website domain or email address contains ‘.ru’. I just added ‘.ru’ to the blacklist and most of them were filteRed.
2. Consider adding CAPTCHA if you want spams even not to be submitted. That’s what I did because I got tiRed of deleted the spams. Even if they were nicely filteRed by Akismet, once in a while I needed to delete them otherwise I would have had thousands of spam sitting there, taking my DB space, possibly affecting DB performance.
I installed this plug-in “cformsII” in order to add CAPTCHA. “cformsII” is a powerful plug-in that allows you to create your own forms. You can easily replace the default WordPress commENT form with a fancy and secure one that you can generate using cformsII.
Create a new commENT form using cformsII. You can use the default form that is shown when you access to the setting page first time.* Change the name of form to what you will recognize easily, for example, ‘commENT’ and add / remove fields and change display configurations if you want to.
* It will show the link ‘cformsII’ next to the ‘CommENTs’ of the top menu.
Then, replace the PHP function “commENTs_template()” to “insert_cform(’name_of_form’)” in any PHP scripts that have the commENT form. The files are differENT depending on which theme you use, but the usual scripts are ’single.php’, ‘archive.php’, and ‘page.php’.
By admin, January 17, 2009 @ 11:51 am
After I tried cformsII for a week, I noticed that spam commENTs were submitted significantly less, but unfortunately, I also noticed the commENTs were not saved in database. They were deliveRed via emails only. Even though I found out later there was a configuration that I could change to store submission data in DB, this was not enough for me. I wanted to display the most recENT commENTs on the side menu.
I could have customized the codes to show commENTs from the cformsII tables, but I wasn’t sure if I wanted to go that far. I ended up restoring the default WordPress commENT form. As expected, within 30 minutes, I started to receive Russian spam commENTs again. EvENTually, I found this plug-in, reCAPTCHA that adds CAPTCHA to the default commENT form.
I sometimes find it difficult to read their letter combination from the image that reCAPTCHA generates. The readability of the reCAPTCHA words could prevENT users from leaving commENTs, but I believe it’s worthy because I won’t have to spend much of my time to clean up spam commENTs and to fix possible server performance issues.
Thanks very much for this article. I was having exactly the same problems…so many bloody Russian spam bots out there. Installed recaptcha on my blog. Hopefully it will take a nice load off.
By admin, July 17, 2009 @ 4:35 pm