Skip to content

Instantly share code, notes, and snippets.

Last active June 16, 2016 08:34
What would you like to do?
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"
Copy link

ghost commented Jan 10, 2015

I understand it as "noindex" and not like a robots "disallow"

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