# X-Robots-Tag noindex

> Find an unintended X-Robots-Tag noindex response header, trace its source, and verify that Google can crawl the corrected URL.

Canonical: https://scaplet.com/seo-issues/x-robots-tag-noindex

Guide SEO issue · Indexability

Find an unintended X-Robots-Tag noindex response header, trace its source, and verify that Google can crawl the corrected URL.

4 min

read

4

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

An `X-Robots-Tag: noindex` response header tells Google not to show the page or resource in Search after Googlebot crawls and reads it. Check the final HTTP response, remove the header only where indexing is intended, and make sure robots.txt allows crawling. The same directive can be correct for PDFs or other files that should stay out of Search.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fx-robots-tag-noindex%20(%22X-Robots-Tag%20noindex%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fx-robots-tag-noindex%20(%22X-Robots-Tag%20noindex%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fx-robots-tag-noindex%20(%22X-Robots-Tag%20noindex%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fx-robots-tag-noindex%20(%22X-Robots-Tag%20noindex%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 3 parts, 4 minutes.

1. [Check the response, not just the page source 01](#check-the-response-not-just-the-page-source)
2. [Remove the rule at its source 02](#remove-the-rule-at-its-source)
3. [Verify after deployment 03](#verify-after-deployment)

_01_How it works

## Check the response, not just the page source

A [meta robots tag](/glossary/robots-meta-tag) lives in HTML. `X-Robots-Tag` arrives in the HTTP response, so viewing page source alone will miss it. Google supports the header for HTML and non-HTML resources such as PDFs, videos, and images. A crawler can report a page as [noindex](/glossary/noindex) even when the rendered page has no visible robots tag.

**Check all resource types**A server rule can add this header to a whole folder or file extension. Sample HTML routes and downloadable assets separately before changing a shared CDN or web-server rule.

1. 01

### Request the exact URL

Use `curl -sSI https://example.com/path` or the Network panel in browser DevTools. Follow redirects and inspect the final response, since the header may be set on the destination or by a CDN.
2. 02

### Search every response header

Look for `X-Robots-Tag: noindex`, `X-Robots-Tag: none` (equivalent to `noindex, nofollow`), or a crawler-specific value such as `X-Robots-Tag: googlebot: noindex`. Rules without a [user agent](/glossary/user-agent) apply to all crawlers, and the header, user agent name, and values are not case sensitive. Also inspect the HTML for a meta robots directive; if rules conflict, the more restrictive one applies.
3. 03

### Confirm Google's fetched version

Open [Search Console](/glossary/google-search-console) [URL Inspection](/glossary/url-inspection-tool), click Test live URL, and check Availability > Indexing > Indexing allowed? Google says you can also search the response headers for the word "noindex". The live test can reveal a header that the CMS editor does not show.
4. 04

### Compare a working sibling

Request a page from the same template that should be indexed. Compare status, headers, and route configuration to isolate whether the rule is global or attached to one content type.

_02_Match the fix to the page's intended visibility

## Remove the rule at its source

Intent

### Public HTML page should appear in Search

Action

Remove the unintended header in the server, CDN, application middleware, or CMS integration.

Verify

Final response has no noindex header and the page is crawlable.

Intent

### PDF or media file should stay out of Search

Action

Keep the header if exclusion is intentional.

Verify

The response returns the intended directive for that resource.

Intent

### Only one route is affected

Action

Fix its route or content-type rule rather than deleting a site-wide safeguard.

Verify

Test affected and unaffected route samples.

Intent

### Private or account content

Action

Use authentication and access control; a search directive is not a privacy boundary.

Verify

Anonymous requests cannot access protected content.

Trace the rule through the response path: CMS setting, application middleware, reverse proxy, web server, then CDN. A correct HTML template does not guarantee a clean HTTP response. Google documents server-level rules that add the header to every file of a type, such as this Apache rule for all PDFs. A leftover rule like it will keep affecting every URL it matches.

Apache: noindex every PDF (.htaccess or httpd.conf)

```
<Files ~ "\.pdf$"> Header set X-Robots-Tag "noindex, nofollow" </Files>
```

If the page should remain excluded, keep it crawlable so Google can read the directive. Blocking it in [robots.txt](/glossary/robots-txt) can hide the header from Googlebot. See [a page blocked by robots.txt](/seo-issues/blocked-by-robots-txt) for that separate failure mode, and [noindex URLs in a sitemap](/seo-issues/noindex-page-in-sitemap) when both signals conflict.

_03_Checklist

## Verify after deployment

1. 01 Request the final URL and confirm the status and every `X-Robots-Tag` value.
2. 02 Inspect the rendered HTML for a second noindex directive in the `<head>` or body.
3. 03 Check that robots.txt does not block the URL if Google needs to read the directive or the corrected page.
4. 04 Run URL Inspection again. If noindex is gone from the live test, Request Indexing asks Google to try again; the live test reports current fetch behavior, not that the stored index has updated.
5. 05 Use the Page indexing report to find URLs marked noindex, then validate representative URL patterns after the fix.

Google has to crawl the page to see the header. Depending on how important the page is on the internet, Google says it may take months for Googlebot to revisit a page, and you can request a recrawl with the URL Inspection tool. If many URLs share a template, fix the rule once and verify one URL per route or content type before checking the full affected set.

Google says submitting a sitemap is merely a hint. If the page should rank, list its canonical URL in the sitemap only after the directive is removed. If it should stay out, retain noindex and remove it from the sitemap.

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ Can I see X-Robots-Tag in View Source?

Usually not. It is an HTTP response header, so inspect the network response with DevTools or an HTTP client. View Source shows the HTML body and may show a separate meta robots tag.

_02_ Does X-Robots-Tag work on PDFs?

Yes. Google documents the response header for non-HTML resources including PDF, video, and image files. Use it when those resources should not appear in Search.

Sources · 4

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- google.com

1. 01 [Block Search indexing with noindex](https://developers.google.com/search/docs/crawling-indexing/block-indexing) developers.google.com · checked 2026-10-24
2. 02 [Robots meta tag and X-Robots-Tag specifications](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag) developers.google.com · checked 2026-10-24
3. 03 [Page indexing report](https://support.google.com/webmasters/answer/7440203) support.google.com · checked 2026-10-24
4. 04 [Build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap) developers.google.com · checked 2026-10-24

## Keep learning

[All seo issues](/seo-issues)

[Learn Page blocked by robots.txt Crawlability](/seo-issues/blocked-by-robots-txt) [Related Noindex Crawling and indexing](/glossary/noindex) [Read next Noindex page in sitemap Indexability](/seo-issues/noindex-page-in-sitemap) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in SEO issues
[Uppercase characters in URLs](/seo-issues/uppercase-urls) [Web fonts are delaying text](/seo-issues/web-fonts-blocking-text) [4xx errors](/seo-issues/4xx-errors)

More in Indexability
[Alternate page with proper canonical tag](/seo-issues/alternate-page-proper-canonical) [Crawled but not indexed](/seo-issues/crawled-not-indexed) [Discovered, currently not indexed](/seo-issues/discovered-not-indexed) [Duplicate pages](/seo-issues/duplicate-pages) [Duplicate without user-selected canonical](/seo-issues/duplicate-without-canonical) [Google chose a different canonical](/seo-issues/google-chose-different-canonical) [Noindex page in sitemap](/seo-issues/noindex-page-in-sitemap) [Soft 404 errors](/seo-issues/soft-404-errors) [Staging site indexed](/seo-issues/staging-site-indexed) [Thin content pages](/seo-issues/thin-content-pages) [X-Robots-Tag noindex](/seo-issues/x-robots-tag-noindex)

Terms on this page
[Robots meta tag](/glossary/robots-meta-tag) [Noindex](/glossary/noindex) [User agent](/glossary/user-agent) [Google Search Console](/glossary/google-search-console) [URL Inspection tool](/glossary/url-inspection-tool) [robots.txt](/glossary/robots-txt)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
