In this article
X-Robots-Tag is the same “don’t show in search” instruction as meta noindex, except it is sent not in the page code but in the server response headers. You can’t see it on the page or in “View source” — so such a block can sit unnoticed for years.
What it is
Along with the page, the server sends technical headers. One of them may look like this:
X-Robots-Tag: noindex, nofollow
X-Robots-Tag: googlebot: noindexSearch bots treat it the same way as the meta tag: the page drops out of results. A useful case is hiding PDF files or utility addresses from indexing, where there is no HTML to put a meta tag in. A harmful case is when the header covers the whole site.
How the monitor checks
Impact on the site and business
- The site drops out of search, even though the page code is clean and the SEO plugin says “indexing allowed”.
- A long hunt for the cause: the header is visible neither in the admin panel nor on the page, and developers spend weeks looking in the wrong place.
Why it matters
A typical scenario: on a test server, add_header X-Robots-Tag "noindex" was added to the nginx config to keep the draft out of search. Then the config was copied to the live server. Another variant: the host or CDN adds such a header for technical domains, and the site mistakenly runs through one of them.
Norms
| Rating | Status | Comment |
|---|---|---|
| Good | No header, or it has no noindex | The page is open to search |
| Could be better | noindex only on files (PDF) or utility addresses | Fine if intentional |
| Bad | X-Robots-Tag: noindex on the home page | The site is dropping out of search |
How to check it yourself
- Open the site in Chrome, press F12 → the “Network” tab and reload the page.
- Click the first row (the document itself) → “Headers” → “Response Headers”.
- Look for the
X-Robots-Tagline. Or from the command line:
curl -sI https://example.com/ | grep -i x-robotsHow to fix it
Server (nginx)
Find where the header is added and remove the line from the live site’s block, then test the config and reload nginx:
sudo grep -rn "X-Robots-Tag" /etc/nginx/
sudo nginx -t && sudo systemctl reload nginxApache
Look for Header set X-Robots-Tag in the .htaccess file in the site root and in the virtual host configuration.
WordPress
Some SEO and security plugins can send X-Robots-Tag. If the header isn’t in the server config but still arrives, disable plugins one by one and check the headers again.
Cloudflare
Check Rules → Transform Rules → “Modify Response Header”: a header can be added to every response there. Also check Workers, if you use them.
General recommendations
- Don’t move a config from a test server to the live one without checking the headers.
- Protect test copies with a password — it is more reliable, and there is nothing to remove at launch.
- After a move, check the home page headers with a single curl command.
FAQ
How does X-Robots-Tag differ from meta robots?
It works the same way but is sent in the server header. It can be applied to any file, not just HTML pages.
The SEO plugin says “indexing allowed”, but the monitor shows noindex. Why?
The plugin looks at its own settings, the monitor at the server’s actual response. Something else adds the header: the server config, a CDN or another plugin.
Should PDF files be blocked with X-Robots-Tag?
Only if they shouldn’t appear in search, such as internal price lists. Useful documents are better left open.