![]() |
Цитата:
![]() # ERROR PAGE ErrorDocument 404 /404.html # Turn rewrite engine on and set base RewriteEngine On RewriteBase / # Load agents RewriteCond % "^Mozilla/4.76 [ru]" [OR] RewriteCond % "Bot Search" [NC,OR] RewriteCond % ^kangen [OR] RewriteCond % "^Mozilla/5.0$" [OR] RewriteCond % ^CaSpEr [NC] # Simply block the calls that match with user agent RewriteRule .* - [F,L] # If you want to route the call that match with user agent somewhere # comment the above RewriteRule out and uncomment the line below # Warning! - This will use server and router resources #RewriteRule ^(.*)$ http://route2.invalid [R,L] # Deny access to the following files Deny from All Deny from All Deny from All Deny from All |
![]() |
Цитата:
![]() # Turn rewrite engine on and set base RewriteEngine On RewriteBase / # Load agents SetEnvIfNoCase User-Agent "Bot Search$" HTTP_SAFE_BADBOT SetEnvIfNoCase User-Agent "^Mozilla/4.76 [ru]" HTTP_SAFE_BADBOT SetEnvIfNoCase User-Agent ^kangen HTTP_SAFE_BADBOT SetEnvIfNoCase User-Agent "^Mozilla/5.0$" HTTP_SAFE_BADBOT SetEnvIfNoCase User-Agent "^CaSpEr" HTTP_SAFE_BADBOT SetEnvIfNoCase User-Agent ^$ HTTP_SAFE_BADBOT # Simply block the calls that match with user agent Allow from all Deny from env=HTTP_SAFE_BADBOT # 1 - If using POST method RewriteCond % POST [NC] # 2 - OR the requested URI contains any of the following files RewriteCond % ^/?help_us\.php.* [NC,OR] RewriteCond % ^/?contact\.php.* [NC,OR] RewriteCond % ^/?kontakt\.php.* [NC,OR] RewriteCond % ^/?top\.php.* [NC,OR] RewriteCond % ^/?print\.php.* [NC,OR] RewriteCond % ^/?download\.php.* [NC,OR] RewriteCond % ^/?user\.php.* [NC,OR] # 3 - OR the requesting string contains any of these words RewriteCond % contact\.php [NC,OR] RewriteCond % help_us\.php [NC,OR] RewriteCond % kontakt\.php.* [NC,OR] RewriteCond % top\.php.* [NC,OR] RewriteCond % print\.php.* [NC,OR] RewriteCond % download\.php.* [NC,OR] RewriteCond % user\.php.* [NC] # AND the call does not originating from your web site RewriteCond % !^http://(sub1|sub2|www\.)?your_site\.com [NC] #delete sub1| etc if you do not have sub-domains # Then block the call RewriteRule .* - [F,L] |
![]() |
Цитата:
![]() RewriteCond % ^Casper\ Bot\ Search [OR] RewriteRule ^.* - [F,L] ErrorDocument 404 "http://www.kremlin.ru" RewriteBase / RewriteCond % ^Mozilla/4\.76\ \[ru\]\ \(X11;\ U;\ SunOS\ 5\.7\ sun4u\) [OR] RewriteRule ^.* - [F,L] ErrorDocument 404 "http://www.kremlin.ru" |
![]() |
Цитата:
![]() SetEnvIfNoCase User-Agent "^Dex\Bot\Search" search_bot Allow from all Deny from env=search_bot |
|
|
||||||||
|
|
ZviZdeZ.ru Придет серенький Фенрир и укусит нас за мир 2009-2011© |