Killing the evil bot(s).

I was looking at my statistics this morning and discovered that my “data transfered” yesterday was significantly higher than almost any other day I can remember. I was a little suspicious of this so I looked a little closer. It turns out that the majority of the hits came from 4 IPs. Also, the most used User Agent yesterday was called “Yeti”. I looked Yeti up and find that it is a Korean search bot.

I’m not sure why a bot like this is wasting my bandwidth and I’m pretty sure that I don’t get many readers from Korea so, until further notice, “Yeti” and it’s IPs are being banned. I went looking for the best way to block an evil bot and found my favorite on the Wordpress forums. Here’s my code:

# Deny Evil Bots
SetEnvIf User-Agent "Yeti" bad_bot
SetEnvIf Remote_Addr "222\.231\.2[01]\.[0-9]+" bad_bot

Order Allow,Deny
Allow from all
Deny from env=bad_bot

Technorati Tags: , , , ,

Bookmark and Share

No related posts.

One single comment

  1. Anthony Morgan says:

    You’re 100% right – this spambot hacked into my website, and messed around with pages. Thanks for the advice on how to block it – duly noted.

Post a comment

Copyright © Chris Barna's Weblog
Politics, Culture, Occasional Musings on Life.

Built on Notes Blog Core
Powered by WordPress