Thursday 27 December 2012

How to reduce spam comments on WordPress blog

For beginners like me, it is often difficult to differentiate between genuine blog comment and spam comment. I  receive 15 to 25 new comments each day most of which are spams and it is already difficult for me to manage them. So I googled over this issue and found some very useful solutions which i am going to share with you.

Akismet (Automatic Kismet) plugin : This plugin comes with every WordPress installation and is a trusted plugin for filtering spams from genuine comments. It checks each and every comments,  pingbacks and trackbacks submitted in your blog. In order to activate it, you need an API key, which you can get for free  by simply signing in Akismet.

Re-CAPTCHAplugin: This is another effective method to reduce spam but it might reduce the number of your regular comments because most people find it annoying to enter CAPTCHA for posting comments in a blog. The idea behind Re-CAPTCHAis to display an image with distorted words and ask users to type the word before submitting the comment. This way, spam bots will be prevented to post their comments in your blog.

Mollom: This is one of the largest website spam filtering system which drastically reduces the burden of blog moderation. You can install the Mollom WordPress plugin for free and need to create an account and activate the plugin. Molllom uses Akismet-type spam filtering technique combined with CAPTCHA to check spam comments.

Close comments on older posts: Older posts that receive a good traffic are often the best targets for spammers, so closing comments on older posts  is a good strategy to fight spam comments . Just go to Settings -> Discussions. Click on the Automatically close comments on article older than” check-box and enter the number of days. The disadvantage of this method is that your post might miss some useful comments over long time.

Editing .htaccess file: If you find some IP addresses are constantly sending spam comments in your blog posts, you can block those IPs by editing the .htaccess file. First of all, download the .htaccess file from the root directory of your web server, edit the file by adding the list of black-listed IPs as deny from xx.xxx.xxx.xxx and upload it. <Limit GET POST>
order allow,deny
deny from xx.xxx.xxx.xxx
allow from all
</Limit>
 
It is highly recommended to backup your .htaccess file before editing. Thanks shoutmeloud for this tip.

Have a spam free blog :)

2 comments:

  1. This is a very useful post. I have never heard of the method to block peoples IP addresses so I will be trying that one out! I am glad you mentioned how ReCAPTCHA can stom you receiving comments. I really hate CAPTCHA and find them insanely hard to read. So much so that I have started using a program called RUMOLA to read and fill them in for me. Works a treat but not everyone has such good software and I think Akismet works well enough for you to not need CAPTCHA.

    ReplyDelete
  2. Thanks for the info


    mlevi2538@gmail.com

    ReplyDelete