Skip to the content
Start free

Noindex in HTML and HTTP header

Noindex in HTML and HTTP header is a crawl issue where a single URL asks to be kept out of search results in two places at once: a robots meta tag in its HTML and an X-Robots-Tag noindex line in the server response. Either one alone is enough to drop the page. Having both means a fix in one place will not bring the page back.

What does this issue mean? #

Noindex is the rule that tells search engines not to show a page, file or resource in results. Google’s guide to blocking search indexing gives two ways to set it. One is a tag in the page head:

<meta name="robots" content="noindex">

The other is a response header, which also works for files that have no HTML head, such as PDFs and images:

X-Robots-Tag: noindex

When a crawl tool finds both on one address, it raises this issue. The page is out of the index either way. The tool is warning you that the setting has two owners: perhaps the CMS writes the tag, while a server or edge rule adds the header.

A noindexed page earns no clicks from search. If it was meant to be hidden, such as a thank-you page or an internal search result, that is fine. Think of thin content or faceted navigation pages. If it was meant to rank, every day it stays hidden costs organic traffic.

The double setting is what makes it slow to fix. Picture a new site going live. Someone switches off the CMS setting that hides it from search, the meta tag goes, and the page still does not come back. The reason is a header rule nobody remembers adding. Meanwhile the Page indexing report keeps listing it as excluded by noindex.

Google also warns that noindex takes effect only once its crawler has seen it, and that a recrawl can take months on some pages. The same is true in reverse. After you remove both copies, the page returns only when Google visits again.

Why does it matter for AI answers? #

Google’s guidance for site owners on its AI features lists noindex among the controls that limit what is shown from your pages in Search, which includes AI Overviews and AI Mode. A page that is noindexed by mistake is a page those features will not use as a source. If you track AI visibility, a sudden gap on one section is worth checking against both copies of the rule.

How do the two copies combine? #

Google’s robots rules specification says the more restrictive rule applies when robots rules conflict. So noindex in either place wins over index in the other.

Meta tag says Header says What Google does
noindex noindex Keeps it out (this issue)
index noindex Keeps it out
noindex index Keeps it out
nothing nothing May index it

MDN’s X-Robots-Tag page is more careful. It calls index and noindex mutually exclusive and says crawler behaviour for such a pair is undefined and may vary. Google’s noindex guide also notes that some other search engines might read the rule differently. Clean settings avoid both doubts. On large sites, read about crawl budget as well.

Common mistakes #

  • Blocking the URL in robots.txt as well. Google says a page must not be blocked by robots.txt for noindex to work, because it has to crawl the page to read either the tag or the header. Blocked pages can still end up as indexed, though blocked by robots.txt.
  • Putting noindex in robots.txt. Google says it does not support a noindex rule in that file.
  • Leaving staging rules live. A staging site often has noindex in both places, and the server rule travels with the move.
  • Mixing noindex with a canonical. If a page is noindexed and also points a canonical tag at another page, you send two signals. Pick one.
  • Only checking the source. The header never shows in “view source”. You need a header check.

A worked example #

A local café adds a menu as a PDF and a menu page in HTML. The owner wants only the HTML page in search. A crawl flags the HTML page with this issue. The tag says noindex, and the header says the same.

The tag came from a plugin setting on the page. The header came from a server rule meant for PDFs only, written too broadly, so it matched every file in the folder. Google’s robots rules page gives a model for the narrow version, setting the header only on files that end in .pdf.

The fix has three steps. Remove the plugin setting from the HTML page. Narrow the server rule so it only covers PDFs. Then request a recrawl in Search Console. Now the menu page can be indexed, and the PDF stays out.

How to check it #

  1. Use our indexability checker to ask whether Google can index the page at all.
  2. Use our HTTP header checker to read the X-Robots-Tag line, if any.
  3. Use our meta tag checker to read the robots tag in the HTML.
  4. Confirm robots.txt is not blocking the address with our robots.txt checker.
  5. In Search Console, URL Inspection has an “Indexing allowed?” field. Search Console Help says it shows when a page explicitly disallows indexing, and that you can view the raw HTML and HTTP headers Google got. It also warns the field reads “Yes” if robots.txt blocks crawling, because Google cannot see the rule.

Your free checks are limited to 2 a day. Index coverage monitor (Pro) is being built for ongoing watching.

Questions #

Is having noindex twice worse than once? #

No. The page is excluded the same way. The cost is in fixing it, because there are two switches to find.

Which copy should I keep for a page I want hidden? #

For an HTML page, the meta tag is usually easier to manage in a CMS. For files such as PDFs, only the header is possible.

Does noindex remove a page straight away? #

No. Google needs to recrawl the page. For urgent cases, see remove a URL from Google.

Sources #

Updated 25 November 2026 by URSY.

Cite this page: Noindex in HTML and HTTP header. URSY. Updated 25 November 2026. https://ursy.com/wiki/noindex-in-html-and-http-header/ · Section links

Tools for this

  • LiveHTTP Header Checker (cache, status, X-Robots-Tag)Run the check →
  • LiveVerify an AI Botis it really GPTBot? IP, published lists and user agentRun the check →
  • Livellms.txt Checker + Generatorcheck your llms.txt, or write llms.txt, llms-full.txt and llms.jsonRun the check →
  • LiveAI Training Opt-Out Checker + Generatorwhat each AI may do with your site, and the exact lines to change itRun the check →
  • LiveAI Consistency Checkerpage, schema, llms.txt and feeds state the same facts?Run the check →
  • LiveGoogle Snippet Previewtitle and description length in pixels (in browser)Run the check →
  • ProAI competitor gapPrompts where rivals appear and you don'tIn URSY Pro →
  • ProAI fact accuracy monitorAI quoting your prices and facts wrong, with alertsIn URSY Pro →
  • ProBrand facts (Truth Spine)Your official facts, each with proof, for AI to readIn URSY Pro →

All 871 wiki entries, A to Z →