December 24th in WordPress by charlie .

How to Block Comment Spam with IP Addresses – UPDATE

I was getting hundreds of spam comments every night – I’ve gotten only 15 spam comments since I made these updates!

  • Twitter
  • Facebook
  • StumbleUpon
  • Technorati Favorites
  • FriendFeed
  • Delicious
  • LinkedIn
  • Yahoo Buzz
  • Yahoo Bookmarks
  • Google Bookmarks
  • Share/Bookmark

I’ve had, dare I say it, big success blocking comment spam from my blogs by denying specific IP address ranges.

If you’ve read some of my previous posts on comment spam (Using HTCONF to redirect URLs and block comment spam, Using HTACCESS to block comment spammers and Is APNIC.net a comment spammer haven?) you know I’ve been working very hard to reduce or eliminate this garbage from my sites.

Comment spam is BAD for SEO. If you’re not really anal and diligent about it, search engines will index spam keywords in your site and even rank you for it, and you don’t want that. I’m looking at Google Webmaster tools and I see it for one of my sites – it’s a constant battle.

Up until December 17 I was getting anywhere from 30 to 300 spam comments per night. I had 17 spam comments when I initiated the new blocking that I’m doing. Since then I’ve gotten 15, and only ONE of those was for UGG boots. The rest have been air jordan, MBT shoes, jewelry, flirting, some Bulgarian crap and tibia gold.

Take a look at this – I haven’t deleted comment spam for over a week!

Success From Blocking Comment Spam by IP Address

Success From Blocking Comment Spam by IP Address

That’s sweet!

Here’s exactly how I’m blocking IP address ranges using my HTACCESS file.

<Limit GET POST PUT>
order allow,deny
allow from all
deny from 58.22.68.
deny from 59.56.
deny from 59.57.
deny from 59.58.
deny from 59.59.
deny from 59.60.
deny from 59.61.
deny from 61.93.
deny from 110.80.
deny from 110.81.
deny from 110.82.
deny from 110.83.
deny from 110.84.
deny from 110.85.
deny from 110.86.
deny from 110.87.
deny from 115.
deny from 116.71.
deny from 120.32.
deny from 120.33.
deny from 120.34.
deny from 120.35.
deny from 120.36.
deny from 120.37.
deny from 120.38.
deny from 120.39.
deny from 120.40.
deny from 120.43.
deny from 125.60.
deny from 216.246.28.
deny from 216.246.29.
deny from 216.246.30.
deny from 216.246.31.
deny from 218.6.
deny from 218.85.
deny from 218.86.
deny from 221.6.130.
</Limit>

Read more about comment spam

charlie

Hey, thanks for stopping by! Please take a few moments to comment on this topic and let me know how I'm doing.

Leave A Comment.