Trakis

Trakis · Rules

X-Robots-Tag noindex header

Pages sent with an X-Robots-Tag: noindex HTTP header. The same as a noindex meta tag, but set by the server where nobody looks at it: the page looks normal in the browser and stays out of search.

CriticalINDEX-002 · Indexation · checked on every page

X-Robots-Tag: the noindex in the header, and how it reaches pages by accident

Updated 16 October 2026.

X-Robots-Tag is an HTTP response header that carries the same rules as the robots meta tag: noindex, nofollow, none and the rest. It is how a file with no HTML, a PDF, an image, a video, says “keep me out of search”. It is also how HTML pages leave search by accident, because the rule lives in the server or the CDN, and nothing in the page’s source shows it.

What Google’s specification says (Google):

  • Any rule the robots meta tag accepts can be sent in the header instead: X-Robots-Tag: noindex.
  • A crawler can be named before the rules, and then only that crawler is meant: X-Robots-Tag: googlebot: nofollow. Rules with no crawler named apply to all of them.
  • Several X-Robots-Tag headers in one response combine, and one header can list several rules separated by commas.
  • It is the way to set rules for files that are not HTML. Google’s own examples add it to PDFs, in Apache and in NGINX.
  • As with the meta tag, Google only reads it on a URL it may crawl: a file robots.txt keeps out never shows its header (Google).

Written for the files, as Google shows it. Scoped to PDFs, the header never reaches a page:

# Apache (.htaccess or httpd.conf)
<Files ~ "\.pdf$">
  Header set X-Robots-Tag "noindex, nofollow"
</Files>

# NGINX
location ~* \.pdf$ {
  add_header X-Robots-Tag "noindex, nofollow";
}

The demo shop, as it is. Our demo shop has this mistake on purpose: a rule meant to keep printable guides, PDFs, out of search, written for the whole folder in the _headers file its host reads:

/guides/*
  X-Robots-Tag: noindex

$ curl -sI https://demo.trakis.io/guides/size-guide | grep -i x-robots
x-robots-tag: noindex

The size guide and the care guide are HTML pages, and their source says nothing about noindex: view source, search for it, and it is not there. The header is the only place the rule lives, and it takes both pages out of search. In the demo’s report on the example page each guide is a notice under this check, because each is the only page of its kind and the audit asks rather than calls it a mistake; and since the sitemap still lists both, each is also a warning for the contradiction (CRAWL-010).

The fix is to give the rule the scope it was meant to have:

  • Name the files, not the folder. Match the extension, .pdf, as in Google’s examples above, so pages in the same folder are left alone. For the demo shop, a rule for the PDFs only, or none until there are PDFs.
  • Look at every layer that can set it. The web server, the CDN’s rules, the framework’s headers file, a plugin. A rule removed in one place and still set in another keeps the page out.
  • Then ask Google to look again with URL Inspection, on one page of each kind.

Check it yourself. In a terminal, curl -sI https://example.com/page prints the response headers. In the browser, the Network tab of the developer tools shows them for the page you load: click the first request and read the response headers. The page’s source will not show it; that is the point.

How the audit decides.

  • It reads the X-Robots-Tag of every page it fetches, and counts noindex, and none, which means the same.
  • A rule written for one crawler only, such as bingbot: noindex, is reported too: the finding quotes the header, so you can see whom it is for.
  • Then it judges the noindex the way it judges the meta tag (INDEX-001): by template. Nearly every page of a template is a setting and leaves the score; a page that stands out among its siblings is a likely mistake and stays critical; a page with no siblings to compare with is a notice that asks you to check, as each of the demo’s two guides is.

Sources, read on 16 October 2026: Google Search Central, Robots meta tag, data-nosnippet and X-Robots-Tag specifications · Google Search Central, Block Search indexing with noindex.

How common it is

In our study of 330 small sites, read from Common Crawl’s October 2026 archive (up to 100 pages a site), 1.2% of them had this problem on one page or more.

Where it usually comes from

Server or CDN rules added to keep a staging copy out of search, then carried over to production, or rules meant for PDFs and files that also catch HTML pages.

If Search Console says…

In the Page indexing report, these statuses can come from what this check finds:

  • “URL marked 'noindex'”. Here the noindex is in an X-Robots-Tag HTTP header, which the page’s HTML does not show. URL Inspection in Search Console, or the Network tab of the browser, shows the header. What this status means, and how to fix it.

If your SEO tool says…

The same problem, under the names other tools give it. Where a tool draws its line elsewhere, the note says how:

Wording from each tool’s own documentation, read on 13 October 2026.

How to fix it

  • Find where the header is set: the web server configuration, the CDN rules, or the application.
  • Remove it for the pages that should be in search.

How to check it yourself

Look at the response headers of the page in the browser's developer tools (Network tab) and search for X-Robots-Tag.

What it looks like in a report

Critical The server sends X-Robots-Tag: noindex. · /guides/*

The pages look normal in a browser; the refusal is in the response headers, set on the server. (An example shop; the numbers are illustrative.)

How the audit counts it

INDEX-002 is a critical in the indexation category, and weighs heavily in that category’s score. When it appears on many pages built from the same template, the report shows it once, with the number of pages it covers — because one change in the template fixes all of them.

If the finding is deliberate on your site, it can be accepted as intentional in the report. It then leaves the list and the score, and comes back on its own if what it shows changes.

Other indexation checks

Find it on your site

A free Trakis audit runs this check and the other 66 on your site, and tells you on how many pages each one sits. Or go back to all the rules.