Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save danieljnowak/4081004 to your computer and use it in GitHub Desktop.
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.
<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