Skip to content

Instantly share code, notes, and snippets.

Embed
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"
</FilesMatch>
@ghost

This comment has been minimized.

Copy link

ghost commented Jan 10, 2015

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

@nyhtml

This comment has been minimized.

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
You can’t perform that action at this time.