How to get rid of bad bots crawling my site

Web hosting, SEO, etc... related
Post Reply
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

How to get rid of bad bots crawling my site

Post by Neo » Sat Apr 03, 2010 8:07 pm

There are some bots that crawl the sites for useless purposes for us. The biggest problem is they eat bandwidth.
To get rid of them, you can simply configure your .htaccess file as follows.

Code: Select all

SetEnvIfNoCase User-Agent ^Java/1. javabot=yes
SetEnvIfNoCase User-Agent ^Java1. javabot=yes
Deny from env=javabot
Those will get a 403 error and that's the end of it.
Post Reply

Return to “Web Related”