deindexwebsites.com

Core methods

robots.txt Mistakes That Stop Sites From Being Deindexed

robots.txt is the most misused file in deindexing. It controls crawling. It does not remove anything, and used too early it prevents the very signals that would.

By the deindexwebsites.com editorial team · Updated

The core misunderstanding

People write Disallow: / and expect the site to leave Google. Google's documentation positions robots.txt as a way to manage crawler traffic, and the removal guidance tells you not to use robots.txt to block a page you want removed. The reason is mechanical: robots.txt says "do not fetch", while indexing signals live on the page itself.

How a blocked page stays listed

A URL can be indexed without being crawled. If other pages link to a disallowed URL, Google can know it exists and may list the bare URL, often with no description. The page's content was never read, so there is nothing to show beyond the address. This is the familiar result where the listing says no information is available because of robots.txt.

The catch-22

Google's robots meta tag documentation is direct: crawlers must be able to access a page for its noindex rule to be read, and URLs that carry indexing or serving rules must not be disallowed. That creates a trap.

Step you tookResult
Added noindex to every pageGood
Then added Disallow: / to speed things upGoogle can no longer fetch pages to see the noindex
Pages already indexedRemain listed, now frozen

The correct order is the reverse: keep pages crawlable while the noindex is read, wait until they drop out, and only then consider blocking.

Mistakes, ranked by how often they happen

  1. Blocking first. Disallow before noindex or before a 404/410 can be seen.
  2. Using Noindex: inside robots.txt. Google does not support a noindex directive in robots.txt. It is ignored.
  3. Blocking in the wrong robots.txt. Each hostname and protocol has its own file. A rule on www does not apply to staging..
  4. Using robots.txt for confidentiality. The file is public and lists exactly what you want hidden.
  5. Blocking resources the page needs, such as CSS and scripts, which does not help deindexing and can harm rendering for pages you keep.
  6. Assuming the Removals tool will cover the blocked URLs forever. It is temporary, about six months.
  7. Leaving the block in place after a site goes live again, which is the reverse mistake: see recovery.

What to do if you already blocked the site

  1. Remove the Disallow rule for the paths you want read, at least temporarily.
  2. Confirm the noindex header or the 404/410 is in place.
  3. Resubmit the sitemap listing the URLs to prompt recrawl.
  4. Use the Removals tool for immediate hiding.
  5. Wait for the pages to show as excluded in the Pages report.
  6. After they have dropped out, you may restore the disallow if you want to cut crawl activity.

Restoring crawl access feels backwards, but it is the only way Google will see the signal.

When robots.txt is legitimately useful

  • Reducing crawl load on a site that has already been delisted
  • Keeping internal search, calendars and infinite URL spaces from being crawled
  • Preventing crawling of a retired section after it has already dropped out of the index

Even then, Google notes it as a crawl control, not a removal method.

What about the 410 case?

If a URL returns 410 or 404 but is also disallowed, Google cannot fetch the status. The removal depends on recrawl. For retired content, leave robots.txt open on the old paths until the reports show the URLs as not found.

Testing

  1. Open https://yourhost/robots.txt for each hostname.
  2. Search it for rules that match your URLs.
  3. Use URL Inspection on a URL and check whether it says crawling is blocked by robots.txt.
  4. Read the Pages report for the category "Blocked by robots.txt" and treat any URL there that you intended to deindex as unfinished work.

A safe robots.txt for a site in the middle of deindexing

An empty or fully permissive file works:

User-agent: * followed by Disallow: with nothing after it, plus a Sitemap line if you want recrawls prompted.

Do not forget Bing

Other search engines have their own handling. Do not assume behaviour identical to Google; see the Bing guide.

Example: the frozen listing

A team noindexed a legacy blog, then added Disallow: /blog/ the same afternoon to stop crawl load. Six weeks later, the blog's pages were still in search, some without descriptions. Inspection showed the pages were blocked from crawling, so Googlebot had never revisited them after the noindex went live. Removing the disallow, resubmitting the sitemap and waiting let Google read the noindex; the pages dropped over the following weeks, and only then did the team restore the disallow.

Reading a robots.txt quickly

LineMeaning
User-agent: *Applies to all crawlers
Disallow: /Blocks the entire host from crawling
Disallow: (empty)Allows everything
Sitemap: URLPoints crawlers to a sitemap

The file is a polite request addressed to well-behaved crawlers. It is not an access control. People and badly behaved bots can still fetch every URL, and because the file is public it advertises the paths you listed. Anything that must stay private belongs behind authentication, as covered in password protection.

Frequently asked questions

Does robots.txt remove a page from Google?

No. It controls crawling. A blocked URL can remain indexed, sometimes shown without a description.

Can I put noindex in robots.txt?

Google does not support it. Use a meta tag or the X-Robots-Tag header.

Should I remove my Disallow rule to deindex?

If you are relying on noindex or 404/410, yes, at least until pages drop out.

Is robots.txt private?

No. Anyone can read it, so never list secrets in it.

Official sources

Keep reading