John Chow dot Com Online Investment Review - Make Money Online Investing in Businesses
 

Ban Those Blog Comment Spammers!

written by John Chow on December 23, 2008

Make Money!

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.

{ 118 comments }

Tom - StandOutBlogger.com December 23, 2008 at 7:10 pm

That is really handy! Im definately gonna be using this one!

Taris Janitens December 23, 2008 at 8:48 pm

Yea I think I’m definitely gonna check this out – it sounds quite functional and effective from what John is saying anyways!!

Money Money Money December 24, 2008 at 8:40 am

I agree with you. Spam is way to much nowadays. My God spammers waste so much of their time as well as ours as*****

Tushar December 24, 2008 at 11:24 am

And apparently it’s profitable enough for the because a lot of blogger’s don’t know how to moderate comments.

ATLANTA WEDDING PHOTOGRAPHER December 24, 2008 at 11:47 am

it must be worth something to them to keep doing it. only an insane person would keep spanning and get nothing in return. Well, that’s not true an insane person would get something insane out of it.

Taris Janitens December 24, 2008 at 3:45 pm

Totall – like who actually clicks on spam anyways?!

The Poker Jerk December 23, 2008 at 11:13 pm

I’m commenting to “participate in the community” but really I just want some exposure for my blog.

I guess I should say… thanks for sharing this wonderful information! I’ll be using this one! ;)

Blog Expert December 24, 2008 at 8:02 am

I definitely agree with you. I also participate in the community by commenting. I cannot stand people that do this kind of crap. It is just kind of ridiculous.

The Poker Jerk December 24, 2008 at 9:10 am

Actually I was being serious. Take a look at the poll on the right.. There is no community! Just market wannabes who are trying to get exposure for their crappy blogs! I’m happy to be one of them :)

Tushar December 24, 2008 at 11:24 am

Hey, you got to use the opportunities you get, right?

Taris Janitens December 24, 2008 at 3:47 pm

Hey poker jerk! Any relation to the rich jerk??

The Poker Jerk December 24, 2008 at 10:37 pm

HELL NO don’t even suggest such a thing. I’ve seen his book, what a load of shit!

stan December 25, 2008 at 9:26 am

Looks like somebody are afraid of being treated as a spammer.

Ben Pei December 24, 2008 at 10:41 pm

Yeah lotsa new spams coming up again.. Irritating stuff

Colin Klinkert December 24, 2008 at 10:56 pm

Agreed! :P Kill it, Kill it all. Starting a new network and training mods to deal with that crap

ZK@WebTrafficROI.com December 25, 2008 at 5:42 pm

This is amazing, i ve downloaded it…thanks

Laksh - Making money with Social Networks December 26, 2008 at 6:11 am

Yeah Tom,
Me too. Askimet seems to be really working as told by John (who is god in this profession of blogging) and when John has told to try it, there is no question about it. I am getting it now.

Regards
Laksh
http://tinyurl.com/5n9eby

Alex | Kolakube.com December 23, 2008 at 7:26 pm

My blog isn’t quite at that point, but down the line this will surely help.

Actually, I think I might install it now. Hopefully I can get rid of some of the people who spam my contact form. Those always get spammed to hell.

jtGraphic December 23, 2008 at 7:29 pm

I use a great plugin I learned about from ProBlogger called Robots Meta, which is great for controlling bots/spiders, but also works for editing .htaccess. That’s what I would have recommended – totally overlooking the specific IP issue.

Ben Pei December 24, 2008 at 10:42 pm

OH cool dude, gonna read up on that too..

TYCP Entertainment Magazine December 24, 2008 at 11:27 pm

Interesting. I’m going to check that plugin out.

Theresa111 December 23, 2008 at 7:30 pm

When I began writing my web log, I had no idea what spam was. To my chagrin, it only took them three weeks to find me and make my writing life so unhappy. I moved my blog to wordpress, where I am protected by Askemit.

Merry Christmas to you and your family.

Taris Janitens December 24, 2008 at 3:49 pm

Yea – spam is like the annoying drunk person at the party – they just ruin all the fun!!

Ben Pei December 24, 2008 at 10:44 pm

LOL Taris, what a description but you’re right dude..

Hussein December 23, 2008 at 7:30 pm

Yeah. I’m already using it and I really love it. Though everyday new spammer is born.

Ben Pei December 24, 2008 at 10:46 pm

There are like roaches.. Never dies!

ZK@WebTrafficROI.com December 25, 2008 at 6:20 pm

Just like there is a scukker born every day , there is a spammer born every day

John Simpson December 23, 2008 at 7:32 pm

Thanks for the mention in your post. I love your message, also. Keep up the good work.

trisha December 23, 2008 at 7:36 pm

ahh, great plugin, thankyou!!

trisha
momdot.com

Ben Pei December 24, 2008 at 10:49 pm

Hey trisha, you have a nice blog there.. I like it!

Takumi86 December 23, 2008 at 7:57 pm

Wow this tools really comes in handy, i’d like to give it qa try but right now i just need to convert my blog into Wordpress first

Taris Janitens December 23, 2008 at 8:49 pm

Word press is definitely the way to go!!! PS I love Initial D!!! I have all the seasons on DVD – hachi roku what what!!!

TYCP Entertainment Magazine December 24, 2008 at 12:05 am

You really should switch to Wordpress. They even have a feature that can help you with this.

Ben Pei December 24, 2008 at 11:26 am

Yeah blogspot is so limited. You can have better control over at wordpress.

ATLANTA WEDDING PHOTOGRAPHER December 24, 2008 at 11:49 am

sounds like you have blogspot

Wes Wyatt December 23, 2008 at 8:00 pm

I saw that post you put on Twitter! It’s amazing you not only got an answer – but to get a solution like this is incredible!

This is a must have WordPress Plug-In!

My Blogs don’t have near the traffic you have – but I still get hammered by these idiots (Or USE to thanks to this plug-in)!

You’ve come through again!

Now if you can figure out a way to get some snow down here to Ohio for Christmas you’d be my hero!

Ben Pei December 24, 2008 at 10:48 pm

Lol even Santa can’t do that..

Wahyudi December 23, 2008 at 8:10 pm

Yeah! That’s great plugin. I will try it because there are much spam comments in my blog. Thanks for sharing!

dgibson December 23, 2008 at 8:11 pm

While a ban function is a big help, the spammers seem to go away if you detect the spam and serve them an error message or 403 response. I have a custom written site that uses a moderation queue and was getting the same sort of issue. I was having to moderate a never ending stream of spam with maybe one legit comment a week. So I lowered the spam threshold and served up 403s for obvious spam (calculated based on a number of factors that is not likely to be a legit comment).

TYCP Entertainment Magazine December 23, 2008 at 8:16 pm

Yep, I’ve had WP-Ban for a while now. A little surprised that you didn’t know about it because it’s by the same guy that created the poll plugin on your blog!]

It is a great plugin though. Saves me so much time.

Tushar December 24, 2008 at 11:22 am

Lester Chan makes a lot of good plugins.

TYCP Entertainment Magazine December 24, 2008 at 11:35 pm

Yeah, I’m using at least three of them.

ZK@WebTrafficROI.com December 25, 2008 at 6:24 pm

never heard of him..must check his plugins

Wahyudi December 23, 2008 at 8:20 pm

That’s bad news for spammers. So! Don’t be spammers

Cupid Blogger December 23, 2008 at 8:25 pm

John, thanks for sharing this wonderful WP plugin. This is the tool i am looking for sometime. When i recently launched my love blog – Cupid Blogger Dot Com since 1 December, i have been consistently hit by all these spammers till today. And i have to clear and delete them manually. I got about average 10 spams per day. That is bad rite?

Well i have a question, it seems that this tool. We have to key in manually to the console. Just like what i did which i add all the IP into IP deny manager in my Cpanel server. I think it would be great when the comment is classified as spam and the plugin able to auto-capture the IP address and put into the ban list. What do you think John?

Monty's Mega Marketing December 23, 2008 at 8:42 pm

Wow, this is awesome. I’m getting about 1,000 spam comments a day…most from the same 4 or 5 IP’s. This will make like a LOT easier.

Taris Janitens December 23, 2008 at 8:46 pm

Thanks for the good writeup!! Someone told me a clever way to do it is to actually disable akismet, and simply set the Wordpress to ask you to moderate any comments that have links in them

I have switched to this method and so far so good!!!

Bruce > The BIG Desk December 23, 2008 at 8:49 pm

Awesome, I’m going to go download it right now. As a side note – I’ve been on the fence about Twitter, couldn’t seem to get my head around its popularity. I’ve been using for a while but never got into a groove with it. This post points out how it can be very useful, thanks for that.

Bruce

Taris Janitens December 23, 2008 at 8:51 pm

I’m still on the “I dont want twitter” side of the fence hehehe – I dont forsee myself being on the fence for a while – I have too many other things to worry about let alone tweeting everyone hehehe

Tushar December 24, 2008 at 11:20 am

Same problem here. I use it periodically to catch, but 99% of the time I just don’t.

TYCP Entertainment Magazine December 24, 2008 at 12:07 am

Twitter can be used for numerous things.

Chester December 23, 2008 at 9:38 pm

lol… spammers won’t like this plugin. haha

Adam December 23, 2008 at 10:10 pm

John, no shout out for me???

I was the first person to suggest it on your Facebook page… :-(

John Chow December 24, 2008 at 2:23 pm

Sorry, I asked the question on Twitter and didn’t check to see if anyone answered on Facebook. You should follow me on Twitter!

Clement December 23, 2008 at 10:11 pm

But how does this plugin handle situations where IP addresses are assigned dynamically via DHCP? What about situations where people use a single IP address such that all local PCs have private IP addresses?

TYCP Entertainment Magazine December 24, 2008 at 12:08 am

Looks like that’s something you’re going to have to ask the creator.

Clement December 25, 2008 at 8:59 pm

Users of this plugin ought to know this issue as well otherwise using this plugin blindly will end up hurting their blog’s traffic. I am thinking of a situation where only one public address is used and some 1000 people in that network use private addresses and it happens that one of them submits spammy comments to your blog. Banning the IP address in this case will make you lose 999 readers.

Pheak Tol December 23, 2008 at 10:16 pm

My blog is fairly new and I’ve already gotten over 300 or so spammers daily, I will try this plugin and see the results but also have the same questions when it comes to the specific protocals being used as the above mentioned, dhcp and private ip’s

Affiliate Showdown December 23, 2008 at 10:24 pm

My blog got its first spam comment. Its growing up so fast.

J.D. Meier December 23, 2008 at 11:04 pm

I like the idea.

When you block at the IP level, how do you verify it’s not a proxy (in other words, blocking a bunch of legitimate users in addition to the spammer)? … or is it a pretty safe bet?

Kenneth December 23, 2008 at 11:43 pm

Most of those IP addresses are IPs that I know for the same reason: spam. They load tons of comments in my comment queue and then some. Some are really repugnant, too. The only effective way to stop this kind of malignancy is too Ban them with a plugin like Lester’s or use htaccess.

Lester’s plugin makes things easier. Much!

Kenneth

Domain Marvelous December 23, 2008 at 11:15 pm

What about spammers on variable IP’s? And of course, they usually use proxies to spam. This plugin would not fix it, so its useless…

ShoutWhat December 23, 2008 at 11:21 pm

This is cool, twitter rocks lol………how convenient and efficient that is to use twitter

Jacob Share from Group Writing Projects December 24, 2008 at 12:25 am

There are a number of problems with IP banning:

1) If the spammers are using trojans sitting on everyday man’s computers to spam you, your ban will affect those users much more than the spammers you’re trying to defend against

2) Programmatically it’s very easy to detect a if a site is banning my IP and reroute the spam attack through a different one until it gets through.

3) Using a tool like WP-Ban is another regular moderation task (but with no ROI) for your blog. Automating bans with a system of rules might be better, but how would you be able to recognize false positives? So forget that.

Just start using Bad Behaviour- http://www.bad-behavior.ioerror.us/. It will automatically protect your blog from bad bots on the fly, and requires no moderation whatsoever. Best used in tandem with Akismet or my preference – SpamKarma2

HatLord December 24, 2008 at 2:04 am

“Die Spammer! Die!!”
hahahahaha that’s so funny and enjoyable when you see them defeated! :D :D :D

Tobias Fransson December 24, 2008 at 2:34 am

I am getting weekly spam’s askismet is doing a great job protecting me from those but I do know the feeling of having to go through 200+ comments. It’s not a nice experience at all!

Make money online December 24, 2008 at 3:49 am

great plugin there.
I was in search of the same to prevent spam.

Thanks for sharing… :D

BusinessX December 24, 2008 at 3:54 am

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..

Taris Janitens December 24, 2008 at 7:02 am

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

Tushar December 24, 2008 at 11:18 am

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

Yak! December 24, 2008 at 5:40 am

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

Al December 24, 2008 at 5:43 am

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.

Tushar December 24, 2008 at 11:17 am

Now THAT would be cool.

TYCP Entertainment Magazine December 24, 2008 at 11:36 pm

Can you code? You should do it!

Flash Games Den December 24, 2008 at 6:08 am

Great plugin, going to download now.

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

Melissa December 24, 2008 at 6:21 am

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!

Associate Money December 24, 2008 at 6:35 am

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.

Tyler Ingram December 24, 2008 at 7:18 am

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…

Tyler Cruz December 24, 2008 at 10:16 am

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

John Chow December 24, 2008 at 10:54 am

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.

TYCP Entertainment Magazine December 24, 2008 at 11:38 pm

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

Tushar December 24, 2008 at 11:15 am

Yea, that’s what I said too.

I see John’s point though.

I just don’t check my spam folder anymore.

Learn English Online December 24, 2008 at 7:32 am

Really useful plugin!

Barock December 24, 2008 at 9:11 am

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

Transcriptionist December 24, 2008 at 9:43 am

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.

Calvin December 24, 2008 at 10:01 am

why do you use the math riddle comment filter plugin?

Tushar December 24, 2008 at 11:16 am

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

David Cheong December 24, 2008 at 10:07 am

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.

jesse grant December 24, 2008 at 1:27 pm

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

Taris j December 24, 2008 at 9:27 pm

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 :(

Taris Janitens December 24, 2008 at 11:08 pm

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!! :)

Ben Pei December 24, 2008 at 10:40 pm

Merry Christmas John!

Debasis December 24, 2008 at 11:07 pm

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!

Shudogg December 24, 2008 at 11:32 pm

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.

devlim.com December 24, 2008 at 11:38 pm

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

Monty - www.sensonize.com December 25, 2008 at 2:03 am

Thanks John! :D

Seo Creations December 25, 2008 at 2:35 am

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

Online Jobs December 25, 2008 at 4:07 am

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

Justin December 25, 2008 at 6:37 am

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?

Tristan Gemus December 25, 2008 at 7:23 am

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!

Roger December 25, 2008 at 9:29 am

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.

Paull Hamilton December 25, 2008 at 9:45 am

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

Play Games Win Prizes December 26, 2008 at 1:09 am

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

-Mike

jackie sheeler December 26, 2008 at 4:54 am

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).

Тодоr Christov December 26, 2008 at 10:28 am

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.

Rob Bish December 26, 2008 at 1:22 pm

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

Ken Hanscom December 26, 2008 at 1:34 pm

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!

Shams December 26, 2008 at 3:36 pm

good info!!

BobM December 28, 2008 at 1:44 pm

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

Timon Weller December 28, 2008 at 8:36 pm

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

Tinh December 29, 2008 at 7:54 pm

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

Ecommerce Blog December 29, 2008 at 8:03 pm

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.

Jon December 31, 2008 at 12:09 am

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

Brian D. Hawkins January 1, 2009 at 6:58 pm

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.

Make Easy Money Online with RemiVladuceanu.com January 2, 2009 at 3:31 am

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

Atniz January 6, 2009 at 5:42 am

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.

ZK@WebTrafficROI.com January 18, 2009 at 10:56 am

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 …

ZK@WebTrafficROI.com December 25, 2008 at 5:50 pm

well said