Definition
The X-Robots-Tag is an HTTP response header that carries the same instructions as the meta robots tag, but works for any type of file, not just HTML pages.
X-Robots-Tag: noindex, nofollowWhen to use it
- Files that can't carry a meta tag: PDFs, images, feeds.
- Applying a rule to many URLs at once from server configuration.
Like the meta tag
The crawler has to be allowed to fetch the file to see the header. Don't also block it in robots.txt.