Created
November 15, 2012 20:20
-
-
Save danieljnowak/4081004 to your computer and use it in GitHub Desktop.
Here is an htaccess files that will allow your robots.txt file to be seen but will restrict the rest of the website by ip address.
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
<Files robot.txt> | |
Order deny,allow | |
Allow from all | |
</Files> | |
Order deny,allow | |
deny from all | |
allow from 8.8.8.8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment