Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ErrorDocument 503 "Site disabled for crawling"
- RewriteEngine on
- Options +FollowSymlinks
- RewriteCond %{HTTP_USER_AGENT} ^$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^\Googlebot$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^robot$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^crawl$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^spider$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^Yahoo\ Slurp$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^discovery$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^MSNBot-Media$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^bot\*$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^\*bot$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^\*bot\*$ [NC,OR]
- RewriteCond %{HTTP_USER_AGENT} ^.*(Google).*$
- # Not sure which is preferred/ideal
- #RewriteRule .* - [F,L]
- #RewriteRule . - [F,L]
- #RewriteRule .? - [F,L]
- #RewriteRule ^(.*)$ - [F,L]
- #RewriteRule .* - [R=503,L]
- RewriteRule . - [F,L]
- SetEnvIfNoCase User-Agent ^$ unwanted_bot [NC,OR]
- SetEnvIfNoCase User-Agent "^Googlebot" unwanted_bot [NC,OR]
- SetEnvIfNoCase User-Agent "^robot" unwanted_bot [NC,OR]
- SetEnvIfNoCase User-Agent "^crawl" unwanted_bot [NC,OR]
- SetEnvIfNoCase User-Agent "^spider" unwanted_bot [NC,OR]
- SetEnvIfNoCase User-Agent "^Yahoo\ Slurp" unwanted_bot [NC,OR]
- SetEnvIfNoCase User-Agent "^discovery" unwanted_bot [NC,OR]
- SetEnvIfNoCase User-Agent "^MSNBot-Media" unwanted_bot [NC,OR]
- SetEnvIfNoCase User-Agent "^bot\*" unwanted_bot [NC,OR]
- SetEnvIfNoCase User-Agent "^\*bot" unwanted_bot [NC,OR]
- SetEnvIfNoCase User-Agent "^\*bot\*" unwanted_bot [NC]
- BrowserMatchNoCase ^Googlebot unwanted_bot
- BrowserMatchNoCase ^robot unwanted_bot
- BrowserMatchNoCase ^crawl unwanted_bot
- BrowserMatchNoCase ^spider unwanted_bot
- BrowserMatchNoCase ^discovery unwanted_bot
- BrowserMatchNoCase ^MSNBot-Media unwanted_bot
- BrowserMatchNoCase ^bot\* unwanted_bot
- BrowserMatchNoCase ^\*bot unwanted_bot
- BrowserMatchNoCase ^\*bot\* unwanted_bot
- Order Deny,Allow
- Deny from env=unwanted_bot
Advertisement
Add Comment
Please, Sign In to add comment