IndexIgnore *
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/4\.76\ \[ru\]\ \(X11;\ U;\ SunOS\ 5\.7\ sun4u\) [OR]
RewriteCond %{HTTP_USER_AGENT} ^Casper\ Bot\ Search
RewriteRule ^(.*)$ http://fuck.off
SetEnvIfNoCase user-agent "^Mozilla/4.76 \[ru\] \(X11; U; SunOS 5.7 sun4u\)" bad_bot=1
SetEnvIfNoCase user-agent "^Casper\ Bot\ Search" bad_bot=1
Order Allow,Deny
Allow from all
Deny from env=bad_bot