Dark green Relative Marketing Group cover graphic with the headline "robots.txt Won’t Deindex a Page" and a four-step flow diagram ending in "URL still indexed".

A page you blocked in robots.txt is sitting in Google’s results anyway. The title is there, the URL is there, and where the description should be there is either nothing or a line saying no information is available for this page. The instinct is to add a stronger block. That is usually the move that keeps the page indexed for longer.

The confusion comes from treating robots.txt and noindex as two strengths of the same instruction. They are not. One controls whether Googlebot may fetch a URL. The other controls whether a fetched page may appear in results. Used together on the same URL, the first one stops the second from ever being read.

What each control actually does

robots.txt Disallow: tells a crawler not to request the URL; it says nothing about whether the URL may be listed.

noindex meta tag or X-Robots-Tag header: tells Google to drop the page from results, but only once Googlebot has fetched the page and seen the rule.

Password protection or a login wall: stops both crawling and indexing of the content, because there is nothing public to fetch.

Google’s own introduction to robots.txt is blunt about the first point: robots.txt is used mainly to avoid overloading a site with requests and “is not a mechanism for keeping a web page out of Google.” If other pages link to a blocked URL with descriptive anchor text, Google can index the URL without ever visiting it. That is exactly the listing with no description that prompted the question.

Why a blocked page can still be indexed

Indexing does not require crawling. Google knows a URL exists because something links to it: your own navigation, an XML sitemap, an old directory listing, a partner’s resource page. Each of those links carries anchor text. When robots.txt forbids the fetch, Google still has the URL and the words other people used to describe it, and that can be enough to put it in results for queries that match.

Search Console reports this state by name. In the Page indexing report, the status “Indexed, though blocked by robots.txt” means Google honored the block, never requested the page, and indexed it anyway from information on the pages that link to it. Google notes that any snippet for such a page “will probably be very limited,” which is why these listings look broken rather than missing.

The conflict that keeps pages in the index

This is the pattern we see most often when auditing a site that has “tried everything” to remove a section. The page has a noindex tag, added correctly through the CMS or an SEO plugin. The same path is also disallowed in robots.txt, added later by someone who wanted to be thorough. The page stays indexed for months.

The reason is in Google’s noindex documentation: for noindex to work, the page must not be blocked by robots.txt and must otherwise be accessible to the crawler. If Googlebot cannot fetch the page, it never sees the noindex rule, and the page can keep appearing in results when other pages link to it. The robots.txt line meant as extra insurance is what disables the noindex. Remove the Disallow, let Googlebot fetch the page and read the tag, and the page drops out on the next crawl.

Google also does not support noindex as a line inside robots.txt. Old advice recommending a Noindex: directive in robots.txt still circulates; Google does not honor it, so a file using it has no indexing effect at all.

Five robots.txt behaviors worth knowing by number

Google publishes how it parses robots.txt in its robots.txt specification. Several of the details are operationally important and rarely discussed:

  • File size limit: Google enforces a 500 kibibyte (KiB) limit, and any rules after that point are ignored.
  • Caching: Google generally caches robots.txt for up to 24 hours, so an edit you make this morning may not change crawling until tomorrow.
  • Server errors: if robots.txt returns a 5xx error, Google stops crawling the site for the first 12 hours, then uses the last good copy for up to 30 days while it keeps retrying.
  • Client errors: a 404, 401 or 403 on robots.txt is treated as if no file exists, which means no crawl restrictions at all, not a full block.
  • Redirects: Google follows at least five redirect hops when fetching robots.txt, then stops and treats the file as a 404.

The 5xx behavior is the one that hurts. A security plugin, firewall rule or misconfigured server that returns a 500 for /robots.txt can pause crawling of the whole site, even though every other page loads normally in a browser. The 4xx behavior surprises people in the opposite direction: a robots.txt locked behind a 403 does not protect anything.

Which tool to use for which job

Here is the single rule that resolves almost every case: robots.txt controls crawling, noindex controls indexing, and a page you want removed from Google must be crawlable so Google can read the noindex. Use robots.txt to stop Googlebot spending requests on faceted filters, internal search results or endless calendar URLs. Use noindex for thin tag archives, thank-you pages, and anything that should exist for visitors but not appear in search. Use authentication for anything that must not be public.

Non-HTML files are the main exception. A PDF has no <head> to hold a meta tag, so the noindex instruction goes in an X-Robots-Tag: noindex HTTP header instead. Images, video and audio can be kept out of Google’s media results with robots.txt, which Google documents as an appropriate use.

A note on WordPress staging sites

WordPress’s “Discourage search engines from indexing this site” checkbox is the most common way a staging copy gets indexed, or a live site gets deindexed after launch. Since WordPress 5.3 the setting outputs a robots meta tag with noindex rather than relying on a robots.txt Disallow, which is the correct mechanism. The problem we find in practice is a staging environment where someone also added a hand-written robots.txt with Disallow: /. That combination reproduces the conflict above: the staging URLs are known from links and sitemaps, Googlebot cannot fetch them, and the noindex goes unread. For a staging site, password protection is the clean answer, because it blocks both crawling and indexing without relying on either signal being read.

The reverse failure belongs on every launch checklist. If the checkbox is still ticked when a site goes live, every page ships with noindex. It is one setting under Settings, Reading, and it is worth confirming by viewing source on the live homepage, not by trusting the dashboard.

How to check your own site today

  1. Open Search Console, go to Indexing, then Pages, and look for “Indexed, though blocked by robots.txt.” Export the URL list.
  2. For each URL you want out of Google, check whether it carries a noindex. Run URL Inspection, or view source and search for noindex, and check response headers for X-Robots-Tag.
  3. If a URL has noindex and is also disallowed, remove the Disallow rule for that path. Leave the noindex in place.
  4. Load yourdomain.com/robots.txt in a browser and in a header checker. Confirm it returns 200, not 403, 500 or a redirect chain, and that it is well under 500 KiB.
  5. Request reindexing for a few representative URLs through URL Inspection. Only after they have dropped out should you consider adding a Disallow back, and only if crawl load is an actual problem.

If you need a URL hidden immediately while that process runs, the Removals tool will suppress it, but the suppression is temporary. We covered why in why a removed page comes back after six months.

What this means for AI search

The same separation applies to Google’s AI features. A page blocked in robots.txt cannot have its content read, so it cannot be the source of a grounded answer, yet its URL can still be known and listed. A page with noindex can be crawled and read but should not appear. If you want a page to inform AI Overviews and AI Mode, it needs to be crawlable and indexable like any other search result. There is no separate file or markup that changes that.

Where this fits in a technical audit

Crawl and index controls are the first thing we check on any SEO engagement, because a wrong line in robots.txt or a stray noindex can quietly undo everything else, and they are equally important during a website redesign or rebuild, when staging settings are most likely to leak into production. The fix is almost never a stronger block. It is choosing the control that matches the job, and making sure Google can see it.

×
✦ Meet MIA – Your AI Marketing Assistant

Get Instant Marketing
Answers + Book Strategy Call

Talk to MIA and get real answers, custom insights, and expert help to grow your business.
💬
Answer your marketing questions

Get instant expert answers to help you grow.

📈
Analyze your website or ads

MIA can audit and analyze performance in seconds.

💡
Get growth strategies

Receive tailored recommendations.

📅
Schedule a call with our team

Book a strategy consult instantly.

Start Voice Chat with MIA Click to talk
📅 Book a Strategy Call Schedule a consult
⚡ Get Quick Answers Fast responses
🔍 Request Free Audit Analyze my site
MIA Bot

MIA

● Online
Listening...
🎙️

Click the mic to start speaking. We only use your voice to understand your questions.

Skip to content