Skip to content

Instantly share code, notes, and snippets.

@masiorama
Created January 9, 2013 15:13
Show Gist options
  • Save masiorama/4493872 to your computer and use it in GitHub Desktop.
Save masiorama/4493872 to your computer and use it in GitHub Desktop.
Apache: make files inside a dir unreachable with .htaccess
# inside .htaccess, all the files inside the dir unreachable to robots
Header set X-Robots-Tag "noindex, noarchive, nosnippet"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment