X-Robots-Tag header

What the X-Robots-Tag HTTP header does, why a noindex in it hides a page from Google even when the HTML looks fine, and how to remove it.

What AuditX checks

The scan reads the X-Robots-Tag header on the response your page was served with. It fails when the header contains noindex or none, including a rule that names a specific crawler such as googlebot: noindex. It passes when the header is missing or holds other values. It reads only the page you scanned: headers on other pages, images or PDFs are not looked at. A failing result also caps the overall score at 50, because the page cannot appear in search. This check has no not-measured state.

Why it matters

X-Robots-Tag works like the robots meta tag, but it is sent by the server, so it does not show in the page source. A noindex in it tells Google to keep the page out of search.

Because it is invisible in the HTML, it is easy to miss. It is often left behind by a staging setup, a security plugin or a server rule meant for one folder.

How to fix it

  1. Look at the response headers of the page. In your browser, open the developer tools, then the Network tab, select the page and read its response headers.
  2. Find where the header is set: your server config, an .htaccess file, a CDN rule or a plugin. Remove the noindex there.
  3. Keep the header only for files you really want out of search, such as private PDFs.
  4. After the change, ask Google to recheck the page in Search Console.
# Apache (.htaccess)
Header unset X-Robots-Tag

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.