IT_Architect
Verified User
- Joined
- Feb 27, 2006
- Messages
- 1,088
I have looked for a listing of maintained IP, but I have found none. It would be nice if something like this would work.
but it doesn't.
Code:
################################################################################
# Block Bad Bots
################################################################################
<Directory /var/www/>
#
SetEnvIfNoCase User-Agent "^BaiDuSpider" bad_bots
SetEnvIfNoCase User-Agent "^bot*" bad_bots
SetEnvIfNoCase User-Agent "^Cityreview" bad_bots
SetEnvIfNoCase User-Agent "^crawl" bad_bots
SetEnvIfNoCase User-Agent "^Dotbot" bad_bots
SetEnvIfNoCase User-Agent "^Exabot" bad_bots
SetEnvIfNoCase User-Agent "^Java" bad_bots
SetEnvIfNoCase User-Agent "^MJ12bot" bad_bots
SetEnvIfNoCase User-Agent "^NG\ 1.x (Exalead)" bad_bots
SetEnvIfNoCase User-Agent "^Sogou" bad_bots
SetEnvIfNoCase User-Agent "^Sosospider" bad_bots
SetEnvIfNoCase User-Agent "^spider" bad_bots
SetEnvIfNoCase User-Agent "^Twiceler" bad_bots
SetEnvIfNoCase User-Agent "^Yandex" bad_bots
SetEnvIfNoCase User-Agent "^YandexBot" bad_bots
SetEnvIfNoCase User-Agent "^\s+$" bad_bots
SetEnvIfNoCase User-Agent "^$" bad_bots
SetEnvIf Remote_Addr "212\.100\.254\.105" bad_bots
#
<Files *>
Order allow,deny
Allow from all
Deny from env=bad_bots
</Files>
</Directory>
### End Block Bad Bots