If you have a blog like me, you are already fed up of spam and referral comments on your blog. If you own a wordpress powered blog, thankfully with these tips below you can reduce the spam comments to a great extent.
Primarily use the Akismet plugin that you get with wordpress. You need an API key for this plugin to function. Sign up for a free account at WordPress.org website. You get an API key with your account which you can use on unlimited blog. Akismet filters spam comments very well. There might be some good comments marked as spam as well, happens sometimes but then Akismet plugin learns from mistakes like humans lol. Another alternative would be using the SpamKarma plugin which works the same
But then akismet holding thousands of spam comments doent look good on my blog. I want to avoid spam not just save and mark it. Most of the spam bots hits the wp-comments-post.php file, the file which posts comments. Thus is we disallow all the direct traffic to this file almost 80% of your spam comments are avoided.
Doing this is simple, open up your htaccess file and add this to it.
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post.php*
RewriteCond %{HTTP_REFERER} !.*mygeekpal.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
This will:
- Detect when a POST is being made
- Check to see if the post is on wp-comments-post.php
- Check if the referrer is in your domain or if no referrer
- Send the spam-bot BACK to you domain homepage.
Related posts:
- How to Create a WordPress Plugin – Hello World!
- How to Create Post Accordions in WordPress
- 3 Most Important SEO Plugins for your WordPress Blog
- 301 Redirect: The Search Engine Friendly Way To
- WordPress Plugin – RSS Post Editor

It‘s quite in here! Why not leave a response?