Created
May 6, 2015 10:08
-
-
Save lidio601/036f080b21e040533616 to your computer and use it in GitHub Desktop.
.htaccess file to disallow access to clients that aren't search engine spiders
This file contains 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
# http://www.robotstxt.org/robotstxt.html | |
# http://httpd.apache.org/docs/2.0/misc/rewriteguide.html | |
RewriteEngine on | |
RewriteCond %{HTTP_USER_AGENT} !bot | |
RewriteRule ^robots.txt - [L,R=404] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment