Four mechanisms get confused constantly: noindex, robots.txt disallow, HTTP 404/410 responses and password protection. They are not interchangeable. Each controls a different stage of the pipeline described in how Google indexing works.
The one-sentence versions
- robots.txt controls whether a crawler may fetch a URL.
- noindex tells a search engine not to list a page it has fetched.
- 404 or 410 says the page does not exist.
- Password protection stops anyone, crawlers included, from reading the page.
robots.txt: access, not removal
Google's introduction to robots.txt says the file mainly manages crawler traffic and is not a mechanism for keeping a page out of Google. It warns against using it to hide web pages from results: if other pages point to a blocked URL with descriptive text, Google can still index the URL without visiting the page. A blocked page can appear in results without a description.
Use robots.txt for crawl management: infinite URL spaces, internal search results, resource files that do not matter. Do not use it as your removal plan for pages that are already indexed.
noindex: the explicit instruction
Google's documentation says that when Googlebot crawls a page and extracts a noindex tag or header, it drops the page entirely from Search results, regardless of whether other sites link to it. You can implement it two ways:
<meta name="robots" content="noindex">
or, for any file type, an HTTP header:
X-Robots-Tag: noindex
The most important caveat, stated on the page itself: the page must not be blocked by robots.txt and must be accessible to the crawler. If it is blocked, the crawler never sees the rule, and the page can still appear, for example if others link to it. Google also says specifying noindex in robots.txt is not supported.
Two further cautions from the same page: some engines interpret noindex differently, so other search engines may still show the page, and the rule only takes effect when the page is recrawled, which for unimportant pages can take months.
404 and 410: the page is gone
For a page you removed with no replacement, Google's crawling guidance says to return 404 or 410, signals that the page does not exist and should not be indexed. Both are acceptable. Google also says that 404s for removed pages are expected and do not trigger manual actions or harm overall site ranking. See our report on the November 2026 guidance.
A related trap is the soft 404: a page that says "not found" but returns a 200 status. Fix those at the server. See soft 404 explained.
Password protection and deletion
Google's removal page lists the most secure permanent options as removing or updating the content, and password-protecting the page. Deleting the content also prevents other search engines that ignore noindex from showing it, and means no one can access it. A noindex tag blocks only search results and leaves the page reachable.
Decision table
| Situation | Best control | Why |
|---|---|---|
| --- | --- | --- |
| Page deleted, no replacement | 404 or 410 | Honest status code |
| Page moved or merged | 301 redirect to the best equivalent | Passes users and signals along |
| Page must stay live but not appear in search | noindex (meta or header) | Explicit index instruction |
| PDF or image should stay out of results | X-Robots-Tag: noindex | No meta tag possible |
| Private or staging content | Password protection | Prevents access altogether |
| Crawl waste (filters, internal search) | robots.txt disallow | Saves crawling, not for removal |
| Urgent hiding while permanent fix propagates | Removals tool plus one of the above | Hides URLs quickly, temporarily |
The classic mistake, step by step
- A page is indexed and must go.
- Someone adds
Disallow: /that-pageto robots.txt. - Googlebot can no longer fetch the page, so it never sees a noindex or a 404.
- The URL stays in the index, possibly with no description.
The fix is to reverse step 2: allow crawling, serve noindex or a 404/410, wait for the recrawl, and only then consider blocking if you still want to save crawl effort.
Combining controls safely
- Noindex plus crawlable: correct for pages that should disappear and stay reachable.
- Removals tool plus noindex or deletion: correct for urgent cases.
- Disallow plus noindex on the same URL: counterproductive for removal, because the noindex is unreadable.
- Canonicalization is not a removal method either. Google recommends against using noindex to choose a canonical within one site. See canonical tags explained.
Other engines
Bing supports noindex and related robots directives, and the October 2025 announcement of data-nosnippet support lists them. Behavior can differ by engine, which is another argument for removing content at the source when it matters.
Frequently asked questions
Can I put noindex in robots.txt?
Google's noindex documentation says specifying the noindex rule in robots.txt is not supported by Google. Use a robots meta tag or an X-Robots-Tag header instead.
Should I use 404 or 410?
Google's guidance says to return a 404 (not found) or 410 (gone) when a page was removed and has no replacement. Both tell search engines the page does not exist.