deindexpages.com
Core methods

Why robots.txt does not deindex pages

Disallowing a URL in robots.txt tells compliant crawlers not to fetch it. It does not tell Google to drop the URL from the index, and it actively prevents Google from seeing a noindex tag you might add. This is the most common reason pages stay indexed.

What Google says

Google's introduction to robots.txt states that the file is used mainly to avoid overloading your site with requests and is not a way to keep a web page out of Google. To keep a page out, the guidance is to use noindex or password protection. Read it in the robots.txt introduction. The guidance goes further: a disallowed URL can still be indexed if other sites link to it. Its URL may be shown, but the result will not have a description.

The guide to blocking indexing makes the same point from the noindex side: Google must crawl the page to see the rule. If robots.txt blocks it, the crawler never sees noindex, and the page can still appear in results when other pages link to it. Google does not support noindex rules placed inside robots.txt.

Crawling versus indexing

CrawlingIndexing
What it isFetching the page's contentStoring the page and deciding whether it can appear in results
Controlled byrobots.txt Disallownoindex, 4xx status, authentication, removal tools
Can happen without the other?Yes: crawled but not indexedYes: indexed from links without being crawled

That last cell is the heart of the myth. Google can learn a URL exists from links, include it in the index, and show it with only the URL and anchor text. The result is the familiar bare listing with the line "No information is available for this page." That listing is the product of your robots.txt block, not a way around it.

What the Page indexing report shows

In the Page indexing report, a blocked URL that Google still indexed appears as "Indexed, though blocked by robots.txt", a warning status. A blocked URL that is not indexed appears under "Blocked by robots.txt". If you see the first status for a page you wanted gone, you have found the problem.

The correct order of operations

  1. Remove the Disallow rule for the URL or path, so that Googlebot can fetch it.
  2. Add noindex (meta tag or X-Robots-Tag) or return 404/410, or protect the page with authentication.
  3. Request a recrawl via URL Inspection and wait for the Page indexing report to show the new state.
  4. Only then, if you also want to reduce crawl load on a large section, consider re-adding a Disallow. The URLs are already out of the index; blocking afterwards just prevents future fetches.

Re-blocking later can let removed URLs resurface if the noindex rule is removed in the same release, because Google can no longer see that the page is noindex. If you need permanent exclusion, keep the noindex in place or keep the page returning an error status.

When robots.txt is the right tool

Even in those cases, remember that anyone can read your robots.txt file, so listing sensitive paths there advertises them.

Examples of the mistake

"We disallowed /old-campaign/ and it is still in Google"

The URLs were already indexed. The block stopped Google from recrawling them to learn they are gone. Fix: remove the block, return 410, then wait.

"We put noindex on the page and also disallowed it, to be safe"

The disallow cancels the noindex. Googlebot never sees the tag. Remove the disallow.

"We blocked our staging site"

A block is better than nothing, but linked staging URLs can still be indexed. Use authentication. See staging and dev sites.

"We blocked parameter URLs and they remain indexed"

Google indexed them before the block, or via links. Allow crawling, noindex or canonicalise, wait, then decide whether to block. See parameter and faceted URLs.

How to check your robots.txt quickly

  1. Open https://yourdomain.com/robots.txt and read every Disallow line that could match the URL.
  2. Remember that rules match by path prefix, and that wildcard patterns may match more than you expect.
  3. Use URL Inspection on the specific URL; it reports whether crawling is allowed by robots.txt.
  4. Check each hostname separately. Subdomains and protocols have their own robots.txt files.

A reliable mental model

Think of robots.txt as a sign on the door that says "please do not enter", while noindex is a note inside the room that says "do not list this room in the directory". If the door sign keeps the visitor out, the note is never read. If other people have already put the room in the directory, with a bare label, it stays there. To remove it, you must let the visitor in to read the note, or demolish the room, which is what a 404 or 410 does. Keeping that picture in mind avoids nearly every mistake in this area.

Frequently asked questions

Will a robots.txt Disallow remove my page from Google?

No. Google says robots.txt is not a mechanism for keeping a page out of Google, and a disallowed URL can be indexed from links, without a description.

Can I add Noindex: to robots.txt?

Google does not support noindex rules in robots.txt. Use the meta tag or header, and keep the page crawlable.

What does "Indexed, though blocked by robots.txt" mean?

Google indexed the URL without fetching its content because it found it through links. Remove the block and apply noindex or an error status.

Should I block and noindex for safety?

No. If you block, Google cannot see the noindex.