Skip to content

Instantly share code, notes, and snippets.

@sergejmueller
Last active June 16, 2016 08:34
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sergejmueller/ba66c05afc60cac9abbb to your computer and use it in GitHub Desktop.
Save sergejmueller/ba66c05afc60cac9abbb to your computer and use it in GitHub Desktop.
Stop search engines from indexing .txt, .log, .xml, .css and .js files in Apache
<FilesMatch "\.(txt|log|xml|css|js)$">
Header set X-Robots-Tag "noindex"
</FilesMatch>
@nyhtml
Copy link

nyhtml commented Aug 5, 2015

I made one years ago and lost it during a migration so thanks for posting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment