Indexing rules that live in the response, not the page
Most people control indexing with a meta robots tag in the HTML. Far fewer know the same instructions can travel in an HTTP response header called X-Robots-Tag, which the server sends before any content arrives. This X-Robots-Tag checker requests the URL you enter, follows any redirects to the final response, and reads every X-Robots-Tag header on it. It shows each header exactly as sent, splits out any crawler name prefix, lists the directives in plain language, and gives a verdict on whether the resource is indexable and whether its links may be followed. It also shows the status code and content type, so you know what kind of file the rules apply to.
The header's defining trait is that it is invisible in view-source. You can read a page's HTML top to bottom, find no noindex, and still have a page that will not rank, because the noindex is in the header. If a page is dropping out of search for no reason you can find in the markup, check here first.
The only robots control for PDFs and images
A meta tag can only live inside HTML. PDFs, images, spreadsheets, text files and other downloads have nowhere to put one. The header is sent with any file the server delivers, which makes it the only way to keep an old PDF, a generated report or a folder of images out of search results. Sites often find their PDFs ranking for queries their proper pages should win; a header rule fixes that at the server for every file of that type at once.
A response carrying two header lines looks like this:
HTTP/2 200
content-type: application/pdf
x-robots-tag: noindex, nofollow
x-robots-tag: googlebot: unavailable_after: 2025-12-31T23:59:59+00:00The first line applies to every crawler and keeps this PDF out of results. The second applies only to Googlebot and tells it to drop the file after the end of the year. The checker lists both, marks the second with its googlebot prefix, and reports the combined verdict.
The vocabulary it decodes
The header accepts the same directives as the meta robots tag. Noindex keeps the resource out of results. Nofollow stops crawlers following links in it. None means both. Nosnippet suppresses text previews, and for Google also keeps the content out of AI Overviews. Max-snippet, max-image-preview and max-video-preview cap preview sizes. Noimageindex keeps images out of image search. Noarchive is effectively obsolete for Google since it removed cached pages in 2024.
Unavailable_after, which works in both the header and the meta tag, sets a date after which the resource should leave results. It is useful for time-limited offers and event pages, and dangerous when it is set in a template and forgotten: a page ranks today and silently disappears on the date. If the checker shows one, note it somewhere you will see it.
Crawler prefixes inside the header
A directive can apply to all crawlers or to one named crawler, written as the crawler name, a colon, then the directives. A response can carry several header lines, some general and some named, so one file can be indexable for most engines and noindexed for one. That explains many cases where a page ranks in Bing but is missing from Google, or the reverse. The checker shows the prefix for every line, so you can see who each rule addresses.
When the header and the meta tag disagree
A page can have both a meta robots tag and an X-Robots-Tag header. They do not override each other; search engines combine every directive from both sources and apply the most restrictive. If the HTML says index and the header says noindex, the page is noindexed. That is the trap: someone fixes the visible tag, sees index in the source, and cannot understand why the page still will not return.
This tool reads the header on its own. To see both sources together, run the Indexability Checker for the full picture including robots.txt, canonical and status code.
Setting the header on your server or platform
The header is configured where responses are built. These rules add it to every PDF:
# Nginx: keep every PDF out of search results
location ~* \.pdf$ {
add_header X-Robots-Tag "noindex, nofollow" always;
}
# Apache (.htaccess or vhost), needs mod_headers
<FilesMatch "\.pdf$">
Header set X-Robots-Tag "noindex, nofollow"
</FilesMatch>Nginx
Use add_header inside the matching location block, with always so it is also sent on non-200 responses. Note that add_header in a nested block replaces headers inherited from the parent, so security headers may need repeating there.
Apache
Use Header set inside FilesMatch or a Location block in .htaccess or the vhost. The mod_headers module must be enabled.
Cloudflare
Add a Response Header Transform Rule that sets X-Robots-Tag when the URI path ends with .pdf, or set it in a Worker. Check staging zones: a rule copied from a staging zone is a classic source of site-wide noindex.
WordPress and Shopify
On WordPress, SEO plugins already send the header on some non-page responses, such as XML sitemaps. For PDFs in the uploads folder, add the Apache or Nginx rule above, since there is no page to put a meta tag on. Shopify does not let you set custom headers on storefront responses, so use meta tags there.
Header mistakes that cost traffic
The classic is a server rule meant for one folder of test files that, through a too-broad path or the wrong server block, sends noindex across live sections. Nobody sees it in the HTML, so pages fall out of search slowly. Spot-check a sample of important URLs after any server, CDN or hosting change.
Another is pairing a header noindex with a robots.txt block. If crawlers may not fetch the file, they never receive the header, so the URL can stay indexed. A third is setting the header only on a redirect response rather than the final 200; this tool reads the final response, which is the one that counts. Use the HTTP Header Checker if you want to see every header on the response, not just this one.
Headers, search and AI answers
The header is the precision tool in index control: rules by path or file type, applied at scale, across every kind of file. A noindex header removes a resource from Google's index, which also means it cannot appear in AI Overviews or AI Mode. Other AI engines run their own crawlers and policies, so if keeping files out of a specific AI product matters, use that company's documented robots.txt user agent as well. Our robots.txt guide lists them.