John Chow dot Com Free WordPress Installation - Start Your Blog Today!
 

Ban Those Blog Comment Spammers!

written by John Chow on December 23, 2008

Build Your Online Business Now

If your blog achieve even a hint of popularity, you’re going to get hit by comment spammers. These bots go all over the blogsphere to spam blog after blog. Spam filters like Askimet does a great job preventing the comments from showing up.

Akismet has protected your site from 873,646 spam comments already, but there’s nothing in your spam queue at the moment.

The main problem with Askimet is it places all the spam comments in the spam folder for you to check out. Because Askimet is not perfect, you need to check the spam folder to see if any legit comments got caught. This isn’t a problem when you get a few spams per day. However, when you wake up to 200+ comments in the spam folder each day, it can be a real time waster to check through it.

Most of the time, the spams are sent from the same person/site. When I see the same IP show up in Askimet over and over again, I would ban that IP by editing my htaccess file. The main problem with this setup is I need to fire up my FTP program every time I need to ban an IP and I really don’t like editing my htaccess file. There had to be a better way!

Twitter To The Rescue

@JohnChowDotCom (John Chow) says:
Is there a wordpress plugin to ban the IP of spammers from commenting?

Twitter has proven to be an awesome business tool for me. I sent out the above tweet this afternoon and got a bunch of answers. Three Twitter users replied with the exact plugin I was looking for. Shout outs to
@simpso1ja, @askbillmitchell and @krystyl for the heads up on WP-Ban.

WP-Ban WordPress Plugin

WP-Ban

WP-Ban by Lester Chan allows you to ban users by IP, IP Range, host name and referer URL. Banned IPs are prevented from visiting your blog. If they can’t visit, they can’t leave any spam. The plugin will display a custom ban message when the banned IP attempts to visit and leave a comment. My message reads:

Die Spammer! Die!!

You can exclude certain IPs from being banned. There are also statistics to show how many times a banned IP attempts to visit your blog. WP-Ban allows wildcard matching too.

Since activating WP-Ban two hours ago, the above banned IPs have attempted to access my blog 126 times. That would have added another 126 comments to my spam folder if the plugin wasn’t installed. If you’re getting a bunch of spam comments from the same IPs over and over again, WP-Ban is a great way to lock them out!

Download WP-Ban from Lester Chan

Did you enjoy this post? Get John Chow Dot Com updates via email...

Stay up to date with all of John Chow’s tips for making money online and blog posts by subscribing via email. Your email will be kept private and never shared with anyone.

Comments have been disabled for this post.
Sort: Newest | Oldest

Seems to me that my blogs also got some eye and now I am also receiving spam comments. But thanks to my filtration they never come on surface live ...

I don't get this kind of comments each day. But, I have installed it just for future use. Thanks for sharing this plugin details with us.

Thanks for that plugin John. I was looking for something like that. I don't know how these find my email address but I get a load of spam every day so I know how you feel.

I thing the best solution is to ban the IPs. And I know... it's kinda hard to edit your htaccess every time. Anyhow, thanks again for the article and for the plugin.

All the best,

Remi Vladuceanu
http://www.remivladuceanu.com

I've tried to ban IPs in the cpanel before. I had this one spammer that seemed to be toying with me. Maybe I'm just paranoid but he seemed to be 'showing me' it wasn't working. He came back every day with a different IP address. Even a different range sometimes. Very frustrating.

I never even thought of going through my spammed comments to find stuff that was wrongly placed. Good idea!

Jon
http://WoodMarvels.com - Create Unique Memories

That's awesome.I can't stand to browse through spam comments, anymore than I can stand to browse through my junk mail folder. How is the performance? I'd think this method would be slower than .htaccess, but 126 hits isn't that much (in terms of traffic) so probably doesn't matter.

I hate spammers and this plugin is very useful for all. I have used several plugins of Lester Chan but this one is amazing one. Thanks for sharing

WP-Ban is a cool plugin, i just checked it out and thinking of implementing it on my blog.. :)

John would you be so kind as to tell me what plugin your using for that How do I change my avatar and pic posted next to this add a comment section. I have seen this on but a few blogs and would like it on mine. Great post BTW, I just added WP- Ban to my blog after reading this, Thanks for sharing John

Bob

Good plugin for WP, just need one for Blogger. I've just started to see some increasingly volume of spam posts on my site -- getting annoying rejecting all of them!

thanks for the tip. just got my blog started but what the heck, I am going to get ready for volume and the spam boys now anyway!

Rob

Thank you, John! I run a couple of popular blogs and I receive some 100-200 spams per day. Last month I had a single day with 1100+ spam messages only in one of my blogs.

I will definitely try the anti-spam plugin.

it has never occurred to me to check my spam folder -- i just let akismet delete it all. i had no idea that this was a bad move. thank you, john, for the insight (and also for the extra work, lol).

I heard that the new WP 2.7 gives a whole lot more spam comments than the previous versions.

-Mike

Hi John,

There is a WP plugin called Spamfree. It virtually iliminates spam comment without the hassle of the commentor having to fill out a captcha form. I agree that it´s a dammed nuisance and the culprits should be banned for life !

Have a great holiday,

Paull

WP-Ban is a must for popular blogs. Btw, sometime those spammers use a script and randomly pick proxy ip before they act. No protection for that yet.

Thanks so much, I really needed this for my blog I wake up to about 10 or more comments each day of spam. Good job twitter users!

Is there a way that not only the IP address of the spamer is banned by blogger and at the same time a complain is sent to the service provider of the spammer?

agree with you john,
its really hard sometimes i get comments from unwated site as porn which i mostly don't visit but to check the comments i need to visit those sites,
thanks for the plugin will giv it a try soon

I agree with you. Spam is way to much nowadays.

Thanks John! :D

this tool seem good, gonna try on my few blog, thank for share man

Yes, the built in ip filter in wordpress just doesn't work. I enter in an IP to ban, and they still are able to pingback and comment! Great post John. I am glad it wasn't a picture of your lunch.

Would wishing you (John) Merry Christmas make me a spammer? :P
Good post anyway. (Un)fortunately I am yet to become so popular to draw attention of SPAMMERS on my blog!

ATTN john - your spam blocker has blocked my ip address!! I am your top commentator and always post relevant comments!! Why did I get blocked?? Please unblock my ip address as I am posting this from my mobile to let you know there is a problem with your plugin - I hope you didn't block me on purpose as I am a big supporter and send many people your way by word of mouth and thru my blog :(

Hey John!! Whether it was a glitch or what not, I am able to access your blog again!!

Is there some auto-block feature of the new plugin that your users might need to know about?? Or do I simply just have too much time on my hands and I should just comment less lol (didn't think that that commenting TOO much would do me in lol)

anyways whatever it was, I'm glad I'm able to access your blog again - being booted was certainly NOT something I wanted for Christmas :)

Hope that Santa was good to you - I'll be posting my loot on my blog later on if you're curious - I actually got a nintendo WII and WII fit as one of my gifts - and here i thought these things were impossible to find!! :)

Damn I wish i was running wordpress instead of blogengine, im hoping one day blogengine has more plugins and extensions

Useful plugin, worth trying it out. But still wondering about the dynamic ip and static ip, if the spammer use static, then it would be ban for good, but if dynamic, somehow I fear some other user within the spammer area would actually get banned without knowing why... will try this plugin see whether it could help on my blogs.

why do you use the math riddle comment filter plugin?

Because it takes long enough to comment on John's blog as it is.

I use WP-SpamFree along with Akismet. WP-SpamFree allows only human being for commenting. Together they have blocked millions of comments from spam bots on my blog and save a lot of time for me by that way.

i haven't prove it yet, because my blog is new, currently i just have two commenters,

Really useful plugin!

I don't know why anyone else hasn't mentioned it but WordPress already has the ability to ban IPs.

How does this plugin differ from the built-in blacklist that you can add IPs, Words or Phrases too?

WP 2.7 -> Tools -> Discussion -> Comment Blacklist

Can put wildcard emails addresses, IP addresses and words...

Yup, that's all I use... I don't see the point of this plugin... it's already been built into WP for years!

Because the blacklist only marks the comment as spam and place them in the spam folder. The plugin prevents the IP from accessing the site so they can't leave spam in the first place.

Yeah, that's the upside to this plugin. If WP had this feature, then there really would be no need for a plugin.

Yea, that's what I said too.

I see John's point though.

I just don't check my spam folder anymore.

I have not experienced so many spam comments yet but I will be happy as it shows that my blog has achieved a certain level of success.

I learn something new here everyday! I'm going to check right now to see if I have a specific IP address or addresses that I keep showing up in my spam folder If so, I will install this plugin.

Thanks for sharing the info!

Great plugin, going to download now.

Most of the spam I get are not even words just random letters ! wtf ?!

To really breath fire into WP-Ban, someone should write a separate plugin which collects statistics from the Akismet spam queue. As soon as a certain IP or IP block reaches a certain threshold - it is automatically added into WP-Ban.

Can you code? You should do it!

I got paid $1000 for telling a company to install Askimet ... its always about what you know, not how hard it is to do things :p

Thank you for the plug-in. John showing the power of Twitter, I guess I am out of excuses, must start using my Twitter accounts..

Don't cave lol!!! Personally I'm still making excuses - no tweets for me hehehe

There's using Twitter, and then there's addicted to Twitter. As long as it doesn't impact your productivity.