Created
March 2, 2016 13:22
-
-
Save faizanayubi/ef30c0846b07796c8696 to your computer and use it in GitHub Desktop.
Block Bot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ErrorDocument 503 "Site temporarily disabled for crawling" | |
RewriteEngine On | |
RewriteCond %{HTTP_USER_AGENT} ^.*(bot|crawl|spider).*$ [NC] | |
RewriteCond %{REQUEST_URI} !^/robots\.txt$ | |
RewriteRule .* - [R=503,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment