Skip to content

Why robots.txt Does Not Hide a Page From Search

Up to date as of 1 December 2026

You blocked a page in robots.txt and it still shows up in search. That's normal. A robots.txt rule controls visits, not listings. Those are two different things.

Visiting is not the same as listing

Google says plainly not to use a robots.txt file as a means to hide web pages from Google Search.1

Here's why. Google won't crawl or index the content blocked by a robots.txt file. But it might still find and index a disallowed URL if it's linked from other places on the web.1

How a blocked page still gets listedAnother site links to your pageGoogle finds the linkrobots.txt stops it reading the pageThe bare address can still be listed
The crawler never reads the page, but it still sees the links.

Picture a shop with a "staff only" door. A sign on the door stops people walking in. It doesn't stop a friend telling others the shop has a back room.

What shows up in the results

Google says the URL address can still appear in search results. Other public information, such as the anchor text in links to the page, might appear too.1 Anchor text is the clickable words in a link.

Expect a bare listing. Google says the result won't have a description under it.1

The fix people expect, and why it fails

Adding a noindex tag to the blocked page feels like the obvious next step. It doesn't work while the block is in place.

Google explains it this way: a noindex rule only works if the page isn't blocked in robots.txt. A blocked page keeps its noindex tag hidden, because the crawler will never see the tag. The listing then stays.2

Putting noindex inside the robots.txt file doesn't help either. Google doesn't support it there.2

What to do instead

Pick the tool that matches your goal.

  • Keep a page out of search: remove the robots.txt block, then use a noindex meta tag or response header.2
  • Keep a page private: protect it with a password, which is Google's suggestion for things you don't want shown.1
  • Remove it for good: delete the page from your site.

Google lists these as the options when a blocked URL must stay out of results: password protection, a noindex tag or header, or removing the page.1

After you add noindex, give it time. Google has to crawl the page again to see the rule, and depending on the page it may take months.2

Why password protection matters

A robots.txt file is a request, not a gate. The standard describes the rules as outside any access control system.3 Googlebot and other respectable crawlers obey it, but other crawlers might not.1

So a rule there is never a lock.

Check your own site

Google's documentation says a page blocked by robots.txt can appear with no description.1 Don't guess from how a result looks. Open your robots.txt file and check whether a rule covers the page. If one does, remove the block first. Then decide between noindex and a password.

Want the basics of the file? Start with the introduction, then read how the rules are written.

Cited material

  1. Robots.txt Introduction and Guide, Google Search Central
  2. Block Search Indexing with noindex, Google Search Central
  3. RFC 9309: Robots Exclusion Protocol, IETF