How to Stop Spam Comments for GOOD!

SMS Text
How to Stop Spam Comments for GOOD!

I’ve been asked a few times and seen an array of tweets about people having issues with comment spam on their WordPress blogs, even when they’re using tools such as Akismet to try (mostly fruitlessly) to prevent spammers from getting their comment through to the blog or even just the Pending queue.

My blog literally has literally had 0 spam comments, ever. That’s not including manually created comments done by people to try and break past my relentless commentluv barrier but I’m very picky when it comes to allowing comments through onto my blog, I loose a good chunk of around 25% of my comments each day due to me disliking the tone etc… (Apologies in advanced for anybodies who doesn’t get accepted).

The one spam comment that is currently sitting in my qeue though, isn’t even a spam comment:

spam comment aka not spam

The Plugins Setup –

I have a few different plugins I use and I suggest having all 3 enabled and configured correctly for optimal spam stoppage!

Akismet

The standard WordPress comment stop-a-spammer plugin that’s built into every WordPress installation. Just grab an API key, activate Akismet in your WordPress plugins folder, insert the API key and bobs ya uncle!

akismet stop spam

Akismet is just an identifier, it’ll look for specific comments that tick the criteria of a spam comment and push them into the comment box. This is our almost last layer of protection vs spam comments compared to the other plugins we’ll be using.

Growmap Anti Spambot Plugin

Growmap is made by the same guys who make CommentLuv, which surprisingly enough I also have on my blog. It’s the “Confirm you’re not a spammer” box you might say plastered around various blogs. This is meant to stop software like ScrapeBox and No Hands SEO from being able to submit comments to your box and tends to work very effectively, especially vs the likes of timeout scripts.

growmap anti spambot plugin

Growmap offers a ton of options to further protect your blog, here’s my quick Growmap step by step tibbits:

  1. Change the CheckBox Name Weekly (This stops any bots that have picked up on it from being able to access it again)
  2. Disallow All Tracbacks, these are pretty pointless and when you’re trying to optimize a site why you want 2 way links?
  3. Change the CheckBox Label, this is so bots that are “clever” won’t pick up on the plugin’s default nature that spammers have targeted.
  4. Make sure User Refer Check is Ticked
  5. Make sure you have a maximum of 6 allowed comments in the queue.

AVH First Defense Against Spam Plugin

AVH is a plugin that not many know about and hardly any use. It’s created by the guy behind the Stop Forum Spam plugin so is mainly used on Forums and not on blog comment spam blacklists. This pulls in data from all over the place so people who have been spamming from 100s of different proxies won’t be able to even access the comments of your blog and when they try to post will be immediately blocked.

avh spam access denied

If any comments do get through, you always have the option to report for spam and add it to the blacklist on the SFS database, which means you’re helping the rest of the community using this plugin and making the internet less spammy in general.

spam stop

This means you’ll be improving the community behind SFS, banning someone from your website from ever commenting again and saving the net from spam, 1 little IP at a time!

OnPage Tips/Tricks –

These aren’t the quick and easy install a plugin type tricks and some I don’t recommend if you don’t know your way around the technical sides of CMSs, otherwise get a friend who does and get them to do it for you!

Modify your .htaccess

This is super easy and really helps make your site more secure from both spam and hackers crawling bots.

Prevent Comment Spammers with .htaccess

Just add this to your .htaccess file and replace the “youurl” with your blogs URL (e.g. godofseo.co)

# Protect from spam bots
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.yourwebsite.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
</IfModule>

Ban the Spammers IP Address –

This is simple and you can just add new IPs or even IP ranges to the list –

# block ip
order allow,deny
deny from XXX.XXX.XX.XXX
deny from XXX.XX.XXX.XX
deny from XXX.XX.X.XX
allow from all

This’ll disallow any of those IP addresses from visiting your site.

Well it Works –

I use these 3 plugins across all of my blogs and they genuinely work really nicely, along with the extra tricks, your blog will be protected easily.

Try it for yourself and post your results in the comments section below, and if you have any tips or plugins you use, don’t forget to share them below and we can slowly eradicate the annoyance of spam as dedicated blog owners.

Charles Floate

Charles Floate

Internet Marketing Consultant at Charles Floate
I'm Charles Floate, a 19 year old SEO & Internet Marketing specialist from the UK. I've been in SEO for close to 8 years now... Read Full Bio
Charles Floate
Charles Floate

Latest posts by Charles Floate (see all)

Subscribe to SEJ!
Get our weekly newsletter from SEJ's Founder Loren Baker about the latest news in the industry!