The X-Robots-Tag is a robots directive sent in the HTTP header. It allows indexing rules such as noindex to be applied to non-HTML files like PDFs or images.
The is a robots directive delivered not in the but in the (Hypertext Transfer Protocol) header. This allows rules to be set server-side.
Example:
X-Robots-Tag: noindex
The X-Robots-Tag is especially useful for files that contain no HTML and therefore cannot hold a , for example:
PDFs,
Word documents,
images,
download files,
entire file types via server rules.
As with the meta robots tag, the resource must be for search engines to read the directive; it must not be blocked via robots.txt.