Short answer: X-Robots-Tag is an HTTP response header that carries the same instructions as the robots meta tag, including noindex, nofollow and noarchive. The server, hosting platform or CDN sets it, so it never appears in the page HTML or in the CMS. If Google says a page is noindexed and you cannot find the tag, run curl -I on the URL and read the headers. To fix it, remove the header at the place that sends it, then ask Google to recrawl.
What is the X-Robots-Tag header?
Google documents two ways to tell crawlers how to treat a page. One is the robots meta tag inside the HTML. The other is the X-Robots-Tag header in the HTTP response, and any rule that works in the meta tag works in the header too. A response that carries it looks like this:
HTTP/1.1 200 OK
X-Robots-Tag: noindex
The header exists because some files have no HTML to put a tag in: PDFs, images and videos. That is its intended use. The trouble starts when it lands on HTML pages by accident, because nothing in the page or the CMS shows it.
What do noindex and noarchive do?
noindex: Google should not show the page in search results. This is the one that removes traffic.nofollow: Google should not follow the links on the page.noarchive: Google should not show a cached link for the page. It does not remove the page from results, so on its own it is harmless. It is worth noticing because staging setups often send it together withnoindex.
One catch: if robots.txt blocks the URL, Google never fetches the page and never sees the header. A noindex that is meant to work must be on a crawlable URL.
Why can't I see it in WordPress or in the page source?
Because it is not in the page. The header is added when the response leaves the server, by one of these:
| Where it comes from | Typical case | How to confirm |
|---|---|---|
| Hosting staging environments | Kinsta documents that its staging and temporary URLs carry X-Robots-Tag: noindex, nofollow, nosnippet, noarchive, and that the header cannot be removed on those URLs | The header disappears on the production domain; if it does not, the site is still being served as staging |
| Preview deployments | Vercel adds X-Robots-Tag: noindex to every preview deployment, and a previous production deployment starts returning it once replaced | Check the header on the production domain, not the preview URL |
| Server configuration | An Apache Header set X-Robots-Tag line in .htaccess or a config file, or an nginx add_header X-Robots-Tag, copied from staging during a migration | Search the config files for X-Robots-Tag |
| CDN or edge rules | A response-header rule on a CDN (for example a Cloudflare Transform Rule) that was meant for one path and matches more | Compare the header with the CDN bypassed, or review the rules |
| Plugins | Yoast SEO sends noindex, follow only on its XML sitemaps, which is correct; a stray header on normal pages comes from somewhere else | Disable plugins one at a time only after the server and host are ruled out |
How do I check a page for X-Robots-Tag?
Quickest: the free noindex checker reads the headers of the page and of every redirect hop and quotes any X-Robots-Tag it finds. By hand:
- From a terminal:
curl -I https://your-site/pageand read the response headers. On Windows PowerShell typecurl.exe, because plaincurlthere is an alias for a different command. - In Chrome: open DevTools, the Network tab, reload, click the first request (the document) and read "Response Headers".
- In Search Console: URL Inspection, "Test live URL", then "Indexing allowed?". When the answer is No, the result normally names where the noindex was found: in the robots meta tag or in the X-Robots-Tag header.
What a bad result looks like in the terminal:
$ curl -I https://example.com/services/
HTTP/2 200
content-type: text/html; charset=UTF-8
x-robots-tag: noindex, nofollow
The page source of that URL can be completely clean and the page is still noindexed. Two details: header names are case-insensitive, so x-robots-tag counts; and Google's documentation says that when the meta tag and the header disagree, the more restrictive rule wins.
How do I remove X-Robots-Tag noindex?
- Host-injected on staging: move the site to its production domain. On Kinsta the header is tied to the staging and temporary hostnames, so a custom domain is the fix.
- Apache: find and delete the
Header set X-Robots-Tagdirective, then restart or reload. Google's own example looks like this, scoped to PDFs; a copy without the scope hits every page:
<Files ~ "\.pdf$">
Header set X-Robots-Tag "noindex, nofollow"
</Files>
- nginx: the same idea,
add_header X-Robots-Tag "noindex, nofollow";inside alocationblock. Remove it and reload. - CDN: edit or delete the response-header rule, then purge the cache.
- Then tell Google: run the live test again until "Indexing allowed?" says Yes, then "Request indexing". For many pages, use "Validate fix" on the "Excluded by 'noindex' tag" reason in the Page indexing report.
What do I tell the client?
Keep it short and factual: "A setting at the server level, left over from the staging copy, told Google not to list your pages. It was invisible in WordPress. We removed it on [date], confirmed the pages now allow indexing, and asked Google to recrawl. Pages usually return over days to a few weeks, not instantly." Do not promise a specific recovery date.
Why does this one hurt more than a meta tag?
A meta tag shows up in the page source, in SEO plugin panels and in most site-audit tools. A header shows up only if someone looks at headers. Migrations are where it bites: the server config or the host's staging behaviour comes along with the site, the HTML looks fine, and the pages drop out of Google one by one as they are recrawled. "Excluded by 'noindex' tag" in Search Console is usually the first sign, often weeks later.
How does quietwatch catch this daily?
quietwatch reads both the robots meta tag and the X-Robots-Tag header on every site you add, every day, and emails you the day a noindex appears. The full list is in what quietwatch checks every day. The free tool above is the place to start: paste a client URL and see its headers in seconds.