Knowledge hub
Blocked by robots.txt but still indexed: why it happens
You added a Disallow rule, and the page is still in search results, sometimes with no description. This is not a bug. Robots rules were never designed to remove pages, and blocking can actually prevent the removal signals from being seen.
Key takeaways
- robots.txt controls crawling, not indexing, so blocked URLs can remain listed.
- Blocking also hides any noindex directive from the crawler.
- Unblock, apply the correct signal, wait for the recrawl, and only then consider blocking again.
- If the content is sensitive, use authentication or remove it.
What robots.txt actually controls
A robots.txt file tells crawlers which URLs they may fetch. Google's introduction to robots.txt explains that it is mainly used to avoid overloading a site with requests, and that it is not a mechanism for keeping a web page out of Google. A URL that is disallowed can still be indexed if Google discovers it through links, because it can build a listing from the URL and from anchor text without reading the page.
That is why you sometimes see a result with a URL and title but a note that no information is available for the page. The engine knows the address exists but is not allowed to read it.
What Google says about removal
Google's removal guidance says not to use robots.txt to block a page you want removed, noting its limitations. Its documentation also states that robots.txt noindex is not supported. And the Search Console Removals tool page lists robots.txt as not a valid blocking method for permanent removal.
The trap: noindex plus Disallow
The most frequent version of this problem is a site that adds noindex to a page and also blocks it in robots.txt. Google explains that for noindex to work, the page must not be blocked, otherwise the crawler never sees the directive. The result is a page that remains in the index, with the owner convinced that noindex has failed. The fix is to allow crawling of that URL until the page has been dropped.
Diagnosing
- Open the URL Inspection tool for the URL. If crawling is blocked by robots.txt, it tells you so.
- In the Page indexing report, look for the reason indexed, though blocked by robots.txt, or blocked by robots.txt for URLs not indexed.
- Open your robots.txt and find the rule that matches. Patterns with wildcards can match more than you expect.
- Check whether other pages are linking to the URL. External or internal links are what keep it known.
The fix, step by step
- Decide the end state: gone for good, or live but not listed.
- Remove the Disallow rule for the affected URLs, so that the crawler can fetch them.
- Apply the correct signal: a 404 or 410 status for removed pages, or noindex for pages that stay. See noindex vs robots.txt vs 410.
- Hide quickly if needed. The Removals tool can hide the URL in Google results for about six months, even while the page is blocked. That buys time.
- Wait for the recrawl and confirm in URL Inspection and the Page indexing report that the URL is now excluded for the right reason.
- Optionally restore the Disallow afterwards to reduce crawling of that section, if that is useful. Be aware that if a page later returns to the index, a block prevents the engine from seeing updated signals.
Sections that should stay blocked
Not everything should be unblocked. Infinite calendars, internal search results and some faceted areas are reasonable candidates for robots rules to save crawl effort. The point is sequence: handle indexing first, and apply crawl blocks afterwards. For the large-site version of this problem see parameter and faceted URL cleanup.
Other engines
Bing also treats robots.txt as a crawling control. Behaviour for blocked URLs with external links can resemble Google's, and Bing Webmaster Tools offers its own reports. Check it separately using Bing Webmaster Tools.
A caution on sensitive content
If a page contains sensitive information, neither robots.txt nor noindex is protection. They are requests to well-behaved crawlers. People and badly behaved bots can still fetch the page if they know the URL. Use authentication, or remove the content, as Google suggests.
When it seems not to work
If you removed the block and applied the signal, and the URL stays after a long time, check for redirects, canonical tags pointing elsewhere, a different URL variant being indexed, or the page being served differently to crawlers. You can ask us to look at it: request a quote, or read about site and subdomain deindexing.
No method is instant, and we do not promise timelines. The goal is for the signal to be visible, correct and stable.
Related reading
- noindex vs robots.txt vs 410Which removal method to use, and which one backfires.
- Site and subdomain deindexingRemove an entire domain, subdomain or directory from search results.
- Staging and dev site cleanupGet test, staging and development copies out of search results.
- noindex meta tag and X-Robots-TagHow to implement noindex correctly in HTML and HTTP headers.