A page that should stay out of Google is still sitting in the search results, weeks after its owner added a Disallow rule for it. Nothing is broken. The rule did exactly what Disallow does, which is a different job from the one they wanted done.

Disallow and noindex sound like two spellings of the same instruction. They are not. Disallow is a line in your robots.txt file that speaks to crawlers before they fetch a page. Noindex is a tag on the page itself, read during a fetch. One controls crawling, the other indexing, and picking the wrong one leaves the page visible in exactly the way you were trying to prevent. This guide explains what each mechanism really does, why a blocked page can still show up in Google, and how to set up the crawling side with the free Robots.txt Generator on Ovatly.

Contents

  • Quick answer
  • Two different jobs: crawling and indexing
  • What Disallow actually does
  • What noindex actually does
  • Why combining the two backfires
  • Setting up the crawl side, step by step
  • Worked example: an admin block, and what it cannot do
  • Limitations and alternatives
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

If you want a page out of Google's results, Disallow is the wrong tool. Disallow tells crawlers not to fetch a path; it says nothing about indexing, and a disallowed page can still appear in results if other sites link to it. Blocking an already indexed page usually keeps its URL in the results, just without a snippet. The deindexing options are a noindex tag on the page, or removing the page altogether. Keep Disallow for its real job: keeping crawlers out of areas that waste their time, such as admin and temporary folders, built with the Robots.txt Generator. For as long as a page needs its noindex tag read, it has to stay crawlable.

Two different jobs: crawling and indexing

Crawling is fetching: a crawler requests a page, reads it, and moves on to the links it finds. Indexing is what happens afterwards, when the search engine keeps the page in its results. The two steps are separate, and each has its own control.

Disallow belongs to the first step. It sits in robots.txt, at the root of your domain, in rule groups that name the crawlers they apply to and list paths. A Disallow line tells those crawlers not to fetch paths under a prefix. Noindex belongs to the second step: it is a tag carried on the page itself, readable only by a crawler that actually fetches the page. That single difference explains almost every confused result in this area.

What Disallow actually does

A Disallow rule stops fetches, nothing more. Inside a group, Allow lines reopen a more specific path inside a disallowed area; when both match a path, the longest pattern wins. That makes Disallow good at shaping crawl traffic: keeping bots out of admin sections, temporary folders, or any area that costs crawl time and returns nothing.

What it cannot do is remove anything from the index. If other sites link to a disallowed page, the search engine can still list its URL, shown without a snippet, because it never fetched the page to write one. And if the page was already indexed, blocking usually leaves the URL in the results in that same bare form. The block changed what crawlers do next; it did not delete the listing.

What noindex actually does

Noindex is the instruction aimed at the index itself. The generator's guidance on this point is blunt: robots.txt cannot remove a page from Google, and for deindexing you use a noindex tag or remove the page. The tag sits in the page's markup and tells the search engine not to keep the page in its results.

That placement creates the condition people miss: because the tag lives on the page, a crawler has to fetch the page to read it. On a crawlable page it is an instruction waiting to be picked up. On a disallowed page it is an instruction locked in a room nobody may enter.

Why combining the two backfires

The natural instinct is to belt-and-braces a sensitive page: disallow it in robots.txt and add a noindex tag for good measure. The combination defeats itself: the Disallow rule stops the fetch, so the crawler never sees the tag and the deindexing instruction never lands. Meanwhile the URL can still appear in results if linked from elsewhere, which is the outcome the owner was trying to avoid.

If a page must come out of the results, give noindex a clear run: leave the path crawlable, let the tag do its work, and treat Disallow as a separate tool for separate areas. If the page should not exist for anyone, removing it entirely is the other route, and it needs no tag at all.

Setting up the crawl side, step by step

  1. Open the Robots.txt Generator. In the first group, list the user agents the rules apply to; use * for all crawlers.
  2. Add the Disallow paths for areas crawlers should genuinely skip, one per line. Add Allow paths only to reopen part of a blocked section.
  3. Add another group only if one crawler needs different rules from the rest.
  4. Add your sitemap URL, then copy or download the generated robots.txt and place it at the root of your domain.
  5. Before uploading, test the file with the Robots.txt Tester using a few real paths from your site, especially anything you meant to keep crawlable.

The noindex side is separate work: the tag goes on the individual page, or the page is removed. The generator only builds the robots.txt file.

Worked example: an admin block, and what it cannot do

One group for every crawler, blocking an admin area and a temporary folder, produces exactly this file:

User-agent: *
Disallow: /admin/
Disallow: /tmp/

Sitemap: https://example.com/sitemap.xml

Crawlers now skip everything under /admin/ and /tmp/, the intended crawl saving. But suppose a page under /tmp/ is linked from another website. Its URL can still appear in results, without a snippet, because the search engine knows the address even though it never fetched the page. If it was indexed before the block, the block alone leaves the bare URL listed. The fix is not a stronger block: it is a noindex tag on the page, with the path left crawlable so the tag can be read, or removing the page outright.

Limitations and alternatives

Robots.txt controls crawling, not indexing and not security. Anyone can read the file, so never list secret paths in it; a Disallow line is a public signpost, not a lock. The file must live at the root of the host, for example https://example.com/robots.txt, and each subdomain needs its own file, so main-domain rules do nothing for a subdomain.

Crawl-delay, the generator's other setting, is also about fetching rather than indexing: honoured by some crawlers, for example Bing, but ignored by Googlebot. No robots.txt setting changes a page's index status. When the goal is removal, the alternatives are the noindex tag and deleting the page. Protecting something private needs real access control on the page itself, outside robots.txt entirely.

Common mistakes

  • Using Disallow to remove a page from Google. It controls fetching, not indexing, so the URL usually stays listed.
  • Disallowing a page that carries a noindex tag. The crawler never fetches the page, so the tag is never read.
  • Expecting a block to hide an already indexed page. The listing usually survives as a URL without a snippet.
  • Listing secret paths in robots.txt. The file is public; the list advertises the paths it names.
  • Treating robots.txt as security for an admin area. It asks crawlers to stay out. It locks nothing.

FAQs

Can robots.txt remove a page from Google? No. Blocking a page that is already indexed usually keeps the URL in results without a snippet. Use a noindex tag or remove the page for deindexing.

Can a disallowed page still appear in search results? Yes. robots.txt controls crawling, not indexing, and a disallowed page can still appear in search results if other sites link to it, usually shown as a URL without a snippet.

Why does noindex not work on a page that is also disallowed? A crawler has to fetch a page before it can read anything on it. If robots.txt disallows the path, the crawler never fetches the page, so it never sees the noindex tag.

What is the difference between Allow and Disallow? Disallow tells crawlers not to fetch paths under a prefix; Allow reopens a more specific path inside a disallowed area. When both match, the longest pattern wins.

Is robots.txt a way to keep private pages secret? No. robots.txt is not a security measure, and anyone can read the file, so never list secret paths in it.

Conclusion

Disallow and noindex answer different questions. Disallow answers "may a crawler fetch this path?" and noindex answers "should this page stay in the results?". Use the Robots.txt Generator to write clean crawl rules for the areas bots should skip, and use a noindex tag, on a page crawlers can still reach, when a page has to leave the index. If your problem is the crawlers themselves, the companion guide How to Allow Only Specific Bots in Robots.txt covers the two-group pattern. More guides like this sit under SEO Tools.