You added a Disallow rule for a page, waited, and checked Google. The page is still there. It is tempting to conclude that robots.txt is broken or that Google ignored your file. Neither is usually true. What happened is a mismatch between what robots.txt does and what most people assume it does: it controls fetching, and a listing in the results is not fetching.
This guide explains why a blocked URL can stay indexed, how Google can list a page it has never crawled, and how to verify with the free Robots.txt Tester on Ovatly that your block really says what you think it says. It also covers the quieter possibility: for the crawler you care about, the page may not be blocked at all.
Contents
- Quick answer
- Crawling is not indexing
- How a URL gets listed without being crawled
- The other possibility: it was never blocked for that crawler
- How to verify the block, step by step
- Worked example: blocked, and listed anyway
- Limitations
- Common mistakes
- FAQs
- Conclusion
Quick answer
robots.txt blocks fetching, not indexing. A Disallow rule stops a crawler from fetching the page, but if other pages link to that URL, Google can list the URL in its results without crawling its content. So a blocked page staying visible is the system working as specified, not a bug. To check the block itself, paste your file into the Robots.txt Tester, enter the crawler and the path, and read the verdict: it tells you whether that crawler may fetch that path, and which rule decided it. That is the only question robots.txt answers.
Crawling is not indexing
Two different systems meet at your robots.txt file, and keeping them separate explains everything that follows. Crawling is the act of fetching a page: the crawler requests the URL and reads what comes back. Indexing is the act of keeping a record of a URL so it can appear in results. Robots.txt speaks only to the first system. Its rules say which paths a crawler may fetch. Nothing in the file instructs a search engine to add or remove a URL from its index.
This is why the tester's own FAQ puts it so plainly: robots.txt blocks fetching, not indexing, and the tester tells you about crawling only. A Disallow rule that works perfectly, verified rule by rule, still leaves the indexing question untouched. If your goal was to make a URL vanish from results, robots.txt was never the mechanism that could do it, no matter how correctly the rule is written.
How a URL gets listed without being crawled
A crawler does not need to fetch a page to learn that the page exists. Links are enough. When other pages link to a URL, that URL becomes known: it has an address, and pages elsewhere on the web point to it. Google can list such a URL in results without crawling its content, because the listing rests on the link evidence, not on anything fetched from the page itself.
That produces the strange sight that prompts most of these searches: a result for a page the crawler is forbidden to fetch. The block is real, the fetch never happens, and the URL still appears, because appearing was never conditional on fetching. The stronger and more numerous the links pointing at the blocked URL, the more visible this effect is. A blocked page that nobody links to is far less likely to show up, simply because there is little evidence for the URL at all.
The other possibility: it was never blocked for that crawler
Before accepting the fetching-versus-indexing explanation, rule out the simpler one: the page may not be blocked for the crawler you are watching. Robots.txt files are built from groups, and the group naming the crawler wins over the * group. A Disallow sitting in the * group applies to every crawler without a group of its own, and to no crawler that has one.
So a file can contain a perfectly visible Disallow for a path, and Googlebot can still be allowed to fetch it, because Googlebot follows its own group and the * rules no longer apply to it. In that case the page is indexed for the most ordinary reason: it was crawled, because nothing in the applicable group said otherwise. Eyeballing the file cannot separate these two cases. A test can.
How to verify the block, step by step
- Open the Robots.txt Tester and paste your robots.txt content. The tester does not fetch your live file, so paste the exact current version from your server.
- Type the crawler name, for example Googlebot or Bingbot. Test the crawler whose behaviour you are trying to explain.
- Type the path or full URL of the page that is still appearing, exactly as written, including case, because paths are matched exactly as written.
- Read the verdict and the explanation of the matching rule. Blocked means a Disallow in that crawler's group matches, and the listing survives through links. Allowed means the block never applied to this crawler, and the indexing needs no further mystery.
Worked example: blocked, and listed anyway
Take the tester's preloaded sample file. Testing /private/data as Googlebot returns Blocked, decided by Disallow: /private/ in Googlebot's own group. The block is genuine and correctly targeted. Yet if pages elsewhere link to that URL, Google can still list it, without crawling its content, because the Disallow governs fetching only.
Now test /admin/settings as Googlebot against the same file and the verdict is Allowed: the admin rules sit in the * group, which does not apply to a crawler with its own group. If that page appears in results, the explanation is different: it was never blocked for Googlebot, so it could be fetched and indexed normally. Two indexed pages, two opposite causes, and only the test tells them apart.
Limitations
The tester evaluates one file and one crawler at a time, using the content you paste; it does not fetch your live robots.txt, so a verdict is only as current as the text you gave it. It also answers the crawling question only. It cannot report whether a URL is indexed, why a particular result looks the way it does, or how to remove a listing, because robots.txt itself carries none of that information. For the checking routine itself, the companion guide How to Check If a Page Is Blocked by Robots.txt walks through the matching rules in more depth, and the SEO Tools archive collects the related guides.
Common mistakes
- Expecting Disallow to delete a listing. It stops fetches. A listed URL can stay listed for as long as links point to it.
- Assuming Google ignored the file. A surviving listing is usually the specified behaviour, not disobedience.
- Reading the file instead of testing it. Group precedence means a visible Disallow may not apply to the crawler you care about.
- Testing a different crawler than the one in question. Verdicts are per crawler; a block for one bot says nothing about another.
- Forgetting the default. If no Disallow matches in the applicable group, the path is allowed, however many rules the file contains for other paths.
FAQs
A page is disallowed but still appears in Google. Why? robots.txt blocks fetching, not indexing. If other pages link to it, Google can list the URL without crawling its content. The tester tells you about crawling only.
Does a Disallow rule remove a page from Google? No. A Disallow rule only tells crawlers not to fetch the path. It does not remove the URL from the index, and a URL that is already listed can stay listed while it is blocked.
What does Google know about a page it has never crawled? Only that the URL exists, learned from links pointing to it. The tester entry is clear that Google can list the URL without crawling its content.
Could my page not be blocked for Googlebot at all? Yes. The group naming the crawler wins over the * group, so a Disallow in the * group does not apply to a crawler with its own group. Test the exact crawler and path to find out.
If no rule matches my path, is it blocked? No. Robots.txt is permissive by default: a path is allowed unless a matching Disallow rule in the crawler's group says otherwise.
Conclusion
A blocked page in the results is not a contradiction. Robots.txt governs fetching, links govern whether a URL is known, and the index keeps what it knows. Verify the block with the Robots.txt Tester so you know which of the two explanations you are looking at: a real block whose listing survives on links, or a Disallow that never applied to that crawler in the first place. Either way, the file was doing its job; the job is just narrower than most people expect.