Skip to content

Ready

Enter a domain on the left and run the test. Results stream in here.

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:00

The 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.

How it works

  1. Enter Your URL

    Paste any URL: an HTML page, a PDF, an image, or any resource. We send a request and capture the response headers.

  2. Read the Header

    We locate every X-Robots-Tag header on the response and parse each one, including any per-crawler user-agent prefixes.

  3. Decode the Directives

    Each directive (noindex, nofollow, noarchive, and more) is listed in plain English with whether it blocks indexing or link following.

Frequently asked

What is the X-Robots-Tag header?

›

An HTTP response header that carries the same indexing directives as the meta robots tag (noindex, nofollow, nosnippet and so on), but at the protocol level. Because it is a header, it works for any file type, including PDFs, images and other files that have no HTML head.

When should I use the header instead of a meta tag?

›

For non-HTML files such as PDFs, when you want one server rule to cover a whole folder or file type, or when you cannot edit the HTML. For ordinary pages, a meta robots tag is usually easier to see and audit.

Why can the header hurt SEO without anyone noticing?

›

It does not appear in page source. A page can have perfect HTML and still be noindexed by a header set by a CDN rule, reverse proxy, security plugin or leftover staging config. People often audit the HTML for hours while the cause is in a server file.

Can the header target specific crawlers?

›

Yes. 'X-Robots-Tag: googlebot: noindex' applies only to Googlebot, while 'X-Robots-Tag: noindex' applies to all crawlers. A response can carry several header lines for different bots. The checker shows every line and its crawler prefix.

How do I set an X-Robots-Tag header?

›

In server or CDN config. On Nginx use add_header X-Robots-Tag "noindex" always; inside a location block. On Apache use Header set X-Robots-Tag "noindex" inside FilesMatch (mod_headers must be enabled). On Cloudflare use a Response Header Transform Rule or a Worker.

Does the header override the meta robots tag?

›

Neither overrides the other. Search engines combine directives from both and apply the most restrictive. If the header says noindex and the meta tag says index, the page is noindexed. This tool reads the header only; the Meta Robots Checker shows both together.

Which response does the checker read if the URL redirects?

›

The final one. The tool follows redirects and reads the headers on the response that is actually served, and reports its status code and content type. A header set only on a redirect response does not apply to the destination.

Why is my X-Robots-Tag not working?

›

Most often robots.txt blocks the URL, so Google never requests it and never sees the header. Other causes are a rule that only matches some paths, a typo in the directive, or a cached response without the header. Re-check the exact URL after changing config.

How do I check for a noindex header?

›

Enter the URL and run the check. The tool follows redirects to the final response and lists every X-Robots-Tag header sent, so a noindex header shows up even though it never appears in the page source.

Related tools

More Technical SEO tools

See all Technical SEO tools · All free SEO tools

Related guides

↳ full site audit190+ checks · AI fix instructions · yearly plans