Technical pillar / check x-robots-tag
X-Robots-Tag header: does the server tell search engines not to index the page?
We read the X-Robots-Tag HTTP header on each page we audit and flag one that tells every search engine, or Google, not to index the page. It does the same job as a robots meta tag but is invisible in the page itself, so it is easy to leave switched on by mistake.
By Shimon Alex Carroll, Founder and CEO, Own The Climb · Last updated
This is how we check it
We read the X-Robots-Tag header your server sends with each page and check whether it tells search engines not to index it.
- We assess rules for every crawler and rules for Googlebot. We show rules for other named crawlers without grading them.
- A noindex or none rule for every crawler or for Google is a critical finding.
- Because it is a header, it never appears in the page source, which is why it is easy to miss.
Our reasoning behind this
Google defines noindex as "Do not show this page, media, or resource in search results", and this header can carry it. Servers, CDNs and hosting platforms can add it without anyone editing the page, so a page can disappear from search while its HTML looks fine.
How we would fix it on your site
- Run "curl -sI https://your-domain/page" and look for the X-Robots-Tag line.
- Check where it is set: your server configuration, your CDN rules, your host's settings and any security or SEO plugin.
- Remove noindex and none from pages you want in search.
Once your change is live, run the audit again and review the new findings alongside the pages it covered.
How to make the change on your platform
| Platform | What to do |
|---|---|
| WordPress | Look in .htaccess for "Header set X-Robots-Tag", and in security, caching and SEO plugin settings that add headers. |
| Shopify, Squarespace and Wix | These platforms set response headers for you. If the finding appears on a live custom domain, check for a proxy or CDN in front of the site. |
| Next.js | Look for X-Robots-Tag in the headers() function of next.config, in middleware, and in your host's settings; Vercel adds "X-Robots-Tag: noindex" to preview deployments, which is expected. |
What we want you to review
- Remove an unintended site-wide X-Robots-Tag: noindex header when copying staging or preview configuration into production.
- Check that a server rule for PDFs or a private folder does not also match public pages.
- Review security and caching plugins that can add this header across the site.
- Inspect response headers when checking indexing restrictions; the header will not appear in the page source.
The exact rules our audit applies
We wrote this part for your developer or your SEO specialist. It sets out the inputs, scoring rules and confidence limits we publish for this check, together with the full explanation of how we would fix a finding.
The inputs we describe for this check
The X-Robots-Tag response header of each page, quoted in the evidence. We split it into its rules the way Google documents: a rule may name a crawler first ("googlebot: noindex"), and a rule with no name applies to every crawler. The check fails when a rule for every crawler or for Googlebot contains noindex, or none, which means noindex plus nofollow.
Rules for other named crawlers are not ours to grade, a noindex for Bing only is reported by the Bing crawl access check, and the robots meta tag in the HTML is the robots meta tag check, so one rule is never counted twice. Other rules, such as noarchive or max-snippet, are shown but do not fail this check.
Our full reasoning
Google's robots meta tag and X-Robots-Tag specification says the header can carry any rule the meta tag can, and defines noindex as "Do not show this page, media, or resource in search results".
Because it is a header, it is the way to set rules on files that have no HTML, such as PDFs, and it is also set by servers, CDNs and hosting platforms without appearing anywhere in the page source.
Google's page on AI features says a page must be indexed, and eligible to be shown in Search with a snippet, to appear as a supporting link in AI Overviews or AI Mode. A page carrying "X-Robots-Tag: noindex" cannot rank or be cited from Google Search.
How we score what we find
Measured, on every page we read. A header that blocks indexing for every crawler or for Google is a CRITICAL technical finding: on your homepage it costs the technical score heavily. A header without noindex or none for Google or for every crawler, or no header at all, passes.
A rule for one named crawler (bingbot: noindex) is graded by that crawler's own check. When the page was read through a service that does not pass on the response headers, the check is not measured. If you keep a page out of search on purpose, ignore the finding for that page.
How sure we are of each result
HIGH. The header is quoted as our crawler received it. A CDN or firewall can send different headers to different visitors, so confirm with the URL Inspection tool in Google Search Console, which shows the response Google received.
How to fix it, in full
Find where the header is set: run "curl -sI https://your-domain/page" in a terminal and look for the X-Robots-Tag line, then check your server configuration (.htaccess on Apache, the add_header lines on nginx), your CDN rules, your host's settings and any security or SEO plugin. Remove noindex and none for the pages you want in search, keeping them only on files you mean to hide.
Then request indexing with the URL Inspection tool in Google Search Console and re-run the audit.
The sources we rely on
- Google Search Central, robots meta tag, data-nosnippet and X-Robots-Tag specifications (last updated 2026-03-24; accessed 2026-10-26)
Google Search Central
- Google Search Central, AI features and your website (last updated 2025-12-10; accessed 2026-10-26)
Google Search Central
- Vercel, Are Vercel Preview Deployments indexed by search engines? (accessed 2026-10-26)
Vercel
What we have changed on this page
- · Rewritten in plain words: what we check, why it matters and how to fix it come first, and the full rules sit one click down. We corrected the full rules to describe only what we check today.
- · On the homepage, the header is read from our own HTTP request for the page whenever we made one, as the HTTPS and mixed-content checks already did, so a page read through a service that drops headers is still measured.
- · Pages read without response headers are now not measured, and a rule for one named crawler is no longer described as having no noindex.
- · Initial publication of how the header is read and how it relates to the robots meta tag and Bing checks.