5 Ways To Reduce Comment Spam On WordPress Blogs

If you have a self-hosted WordPress blog which is quite popular, the most annoying thing is fighting WordPress comment spam on a regular basis. Every time you login to WordPress dashboard, you see a whole lot of spam comments waiting to be deleted. Either you have to delete them manually or let them die in the spam queue.

The latter option is not recommended as it will increase database size and the resource loading time. Hence, you have to find and fight your way to prevent spam comments in WordPress. This article describes some of the proven techniques which can be used to reduce WordPress comment spam.

Before we go any further, let’s understand what exactly is a spam comment.

A spam comment is a comment which is posted automatically in blogs, websites, forums etc by automated bots, scripts or software. Some people use scripts and automated bots to target high traffic websites for posting comments. Typically, a spam comment is full of irrelevant keywords and hyperlinks and does not care about the discussion or article where the comment is posted.

In short, a spam comment is an evil form of shameless self-promotion and trying to get quick links for traffic or SEO.

If you are getting lots of spam comments in your WordPress blog, here are some techniques which can help:

1. Install Akismet WordPress Plugin

Akismet is considered as the best WordPress plugin to reduce comment spam. The plugin checks each and every comment, pingbacks and trackbacks submitted in your blog and runs critical checks on the Akismet web service to determine whether the comment is a spam or not.

Akismet WordPress plugin to prevent Comment Spam

In addition to blocking spam comments and bad links, Akismet shows a stats page where you can see more details on the amount of comments blocked, accuracy, dates etc.

2. Close comments on Older Posts

Using Akismet is good but overtime you will find that Akismet is blocking hundreds of spam comments every week. You have to delete those spam comments manually, which is really a boring job. If you want even more control over the spam comments, consider blocking comments on older posts.

Spammers target posts which receive good traffic and you can automatically close comments on posts which are certain days old. Login to your blog’s administration area and go to Settings > Discussion. Next, select the checkbox “Automatically close comments on article older than” and enter the number of days in the text box (for example 90).

Close Comments on Older WordPress posts to reduce Spam

This ensures that the comments are closed on any article which is older than the number of days specified by you.

3. Ban Spam IP Addresses

Wp-Ban is a useful WordPress plugin which can be used to blacklist IP addresses who try to post spam comments in your blog. The plugin checks the IP address of the commentator and if you have already specified the same IP address in plugin settings, the commentator is shown a custom banned message.

Ban Spam IP addresses to prevent comment spam

Once you activate the plugin, keep an eye on the IP addresses of the spam comments. Next, add the IP addresses in the plugin blacklist and bingo! You will find that the number of spam comments are reducing as IP blacklist increases.

This plugin should be used with caution. If you blacklist an IP address, any visitor coming from the same host name would not be able to view your blog. Use this plugin to blacklist certain IP’s if they appear too frequently and post vulgar comments in your blog.

4. Use a Custom WordPress Function to Ban Empty Referrers

On most of the occasions, spam commentators never visit your blog and you can use this principle to drastically reduce comment spam.

Log in to WordPress administration area of your blog and go to “Theme Editor”. Select your blog’s theme and open the functions.php file for editing. Paste the following code:

The above function checks the “referring source” of the page on which the comment in posted. In case of spam comments, if the referring source is found to be empty the comments are never allowed to be posted and thus you do not receive any spam. Thanks to Internet Techies for the tip.

5. Use Recaptcha WordPress Plugin

As mentioned by Google in their Webmaster central blog, the Recaptcha WordPress plugin is one of the best ways to prevent WordPress spam comments in your blog. The concept is really simple – anyone trying to post a comment have to see a graphic and type the words matching the graphic. The spam bots do not have eyes and mind and thus can’t see and read those graphics. Hence they can’t post those intrusive comments.

Use recatcha WordPress plugin for protecting spam comments

The recatcha plugin serves the purpose well, but it has a major disadvantage. The regular commentators of your blog would have to fill up the catcha when they try to post a comment. This may appear discouraging or confusing to the visitor and he may refrain from posting comments altogether. Many popular blogs use Recaptcha, but I am not a fan of this plugin as this may offend the regular commentators.

Switching your comment system to Disqus or IntenseDebate (From the editor)

In MakeTechEasier, we have switched our comment system to Disqus and I guess it is worth a mention here.

Disqus is a third party comment system and moderation tool for your site. There are several benefits in using Disqus. First, they integrate closely with Askimet to reduce spams. Secondly, it help you to reduce your database size as all the comments are stored in their server. Thirdly, it integrates with Facebook, Twitter and OpenID so your readers can easily log in with the minimum hassle. Last but not least, it is free.

When you have a site with huge traffic counts and spam counts, you will appreciate how easy Disqus makes your life.

Those were some (if not all) of the techniques which you can use to prevent spam comments in your WordPress blog. What techniques do you prefer? Do you use any WordPress plugin which I may have missed out? Please share your ideas in the comments section.

Building Interactive Longform Storytelling Contents on WordPress

Building Interactive Longform Storytelling Contents on WordPress

This ebook is all about interactive longform storytelling: what it is, why you need to embrace it and its benefits, how to create one, and the available tools to help you create your first longform content.

Get it now! More ebooks »

33 comments

  1. Currently i use WP Spam Free and Akismet which does a really great job blocking my spam… But i'll keep this post bookmarked for the future :D

  2. great post dude….most authors make use of the block comments n days old strategy…apart from that you've specified plenty of useful tips to stop spammers…good job

  3. I am a big fan of disqus.

    No problems about spam. It is an easy interface and no false positives like Akismet. I would recommend against using Akismet.

    They have too much power.

  4. We have been using Disqus and I think it is great too.

  5. Happy to share your blog!

    Disqus is popular and useful.Disqus is good for my work and life.I like it very much.but every coin has two back.we should use the disqus to improve our working efficient

  6. Disqus is definitely one of the best plug-ins for WordPress comments and “anti-spam” protection. I tried a “spam tool” on my own blog, but Disqus didn't let it do it… This is truly the only safe solution that works + it's nice to use too!

  7. No one commented on Intensedebate . I w'd like to hear about it.I like Intensedebates look and features.

  8. I have not tried IntenseDebate, but I have previously read that they have some performance issue on the blog. Now that they have been acquired by Automattic, I am keen to know if they have improved too.

  9. Thank you for the well explained tutorial for blocking spam in wordpress blog. I myself have gone through lots of trouble of manually deleting spam comments in my wordpress blog too & they keep coming.

    I will follow your instructions & install Akismet for my blog too.

  10. Not that I get a lot of spam, but with the few comments I'm getting for my new site, almost half of it are spam. So disappointing. This is a good article. Thanks!

  11. i have a wordpress blog but i dont do with the ordinary spam feature. i use the disqus feature is more useful.

  12. Very happy to see this. Been having some problems lately with huge comment posts.

  13. Thank you for the well explained tutorial for blocking spam in wordpress blog.

  14. Thanks your post :)
    Very useful

  15. Fascinating information. There are also more tips in this mycouponbasket.com.
    I personally get my coupons online, it is much more convenient and ever best.
    do try couponsforzipcodes.com
    Thanks.

  16. The best way of on-line purchasing of products with the discount coupons …!!

    best deals can be done with the use of discount coupons available at

    couponsforzipcodes.com

    Thanks,

  17. Thanks for your article! It’s very helpful for me to ban spams!

  18. Thank you so much – so useful – and straightforward, as an non-tech-minded individual.

  19. Thanks 4 sharing
    It’s useful

  20. Thanks for the tips. Great post.
    From Brazil.

  21. Yes you are right…The spam box literally sux and the akismet sometimes seems me failed in its work…There should be another box for the comments like mail boxes for spam and unspammed ones…and there should be some attributes which can judge and diffrentiate the spam and unspam comments….I am tired of moderating a good from huge pile of comments.

  22. there’s a nice article about this on technonsense
    http://www.technonsense.com/2010/12/spamming-links-on-wordpress-platform/
    personally i do not believe askimet is a solution, there is no solution beside monitoring on your own

  23. Great Article – I use WP-Ban, Akismet, and Wassup to view the IP Addresses of incoming spammers.

  24. Nice choise of tips. Will surely try them out.

  25. Hi there. Thanks for yout post. I have a new blog and still get excited when I get a comment. I’m always disappointed because, so far, it’s all been spammy-bot-generated BS! I’ll try some of your strategies. I’ll probably then get no comments at all :-(. Better that though, than an AI discussion that makes no sense to a human reader.

    1. Don’t worry too much. If you keep building good content, the comments will come naturally.

  26. Thank you for your information, I added the Recaptcha key in hopes to reduce spam on my site. Fingers crossed, but great info. I’ll check out your other posts as well.

  27. Thanx for sharing…

  28. great tips, installed akismet and its starting to prove useful to all the spam im getting, thanx for the heads up! :)

  29. It is also very Great http://logitechextreme3dpro.com

  30. Perfectly located condominium rentals in Mammoth Lakes.  Nestled in the forest.  Walk to Mammoth Mountain

Comments are closed.