Reference guide · technical-seo · Published 2026-08-16 · 3 min read

noindex versus robots.txt

noindex vs robots.txt: robots.txt stops crawling, noindex stops indexing. A blocked page cannot show its noindex, so never combine the two for removal.

Crawling versus indexing

The single most important distinction in page removal is between crawling and indexing, because robots.txt and noindex operate on different stages of the pipeline. robots.txt is a crawl-level control: it tells a crawler *whether it may fetch a URL at all. The noindex directive, whether delivered via a robots meta tag or an X-Robots-Tag HTTP header, is an indexing-level (serving) control: it tells a crawler whether it may show the page in results*. Google's documentation is explicit that robots.txt permits and disallows crawling, and that recalling a URL via the Search Console Removals tool, noindex, or a 404 work differently at the indexing stage.

Because the two operate on different stages, their presence does not conflict only when you understand what each is for. robots.txt saves crawl budget by preventing requests. noindex spends a crawl (the crawler must fetch the page to read the directive) and then drops the page from the index. Neither is a synonym for the other.

The blocking trap

The failure mode that catches most sites is combining the two on the same URL. For a crawler to obey a noindex instruction, it must be able to fetch the page and read the tag inside it. If the same URL is disallowed in robots.txt, the crawler never fetches it, so it never sees the noindex; both directives are effectively dead for that URL. Google's guidance states plainly that if a page is disallowed from crawling, any indexing or serving rules on it "will not be found and will therefore be ignored."

The practical consequence is that a URL blocked in robots.txt can linger in the index as a bare link with no snippet, discovered from external links, even though you "blocked" it. Google also does not support noindex as a directive value *inside* robots.txt: it simply ignores it. Removing a page from search reliably means keeping it crawlable and serving the noindex on the page, not blocking it.

Which tool to use when

Choose the tool by the goal, not by habit:

A useful mental model is that robots.txt is about *budget and noindex is about result*. Use robots.txt when you want to stop the crawl, use noindex on a crawlable page when you want it out of results, and never stack the two on one URL. For HTML pages the directive lives in a robots meta tag (see noindex meta robots); for the header form see X-Robots-Tag.

Need a website built, fixed, optimised, migrated or replaced?

This technical resource is written by CSMBAC, a small design and development studio. If you would rather hand the problem to a professional, the website service page explains how we build enquiry-ready websites.

Explore website services