Skip to content
SiteMedic

“Indexed, though blocked by robots.txt”: what it means and how to fix it

Google indexed a URL it isn't allowed to crawl. Why that happens, why robots.txt can't remove pages, and the right fix for each case.

Updated

This Search Console warning means the page was indexed even though your robots.txt blocks it. Google couldn't read the page, but found the URL through links — on your site or elsewhere — and decided to index it anyway. In search it then usually appears without a description.

Find out which rule blocks the URL: the indexing checker reads your robots.txt and shows the matching line.

Why it happens

robots.txt controls crawling, not indexing. Google says it plainly: robots.txt “is not a mechanism for keeping a web page out of Google”. A disallowed URL can still be indexed if it's linked from other pages.

What to do — two cases

You want the page …Do this
in GoogleRemove or narrow the robots.txt rule so Google can crawl the page. Then request indexing.
out of GoogleRemove the robots.txt block and add noindex (meta tag or X-Robots-Tag header) — or password-protect the page. Google must be able to crawl the page to see the noindex.
<meta name="robots" content="noindex">

Once Google has recrawled the page and dropped it from the index, you can keep it out with noindex. Don't put the robots.txt block back while you still rely on noindex — Google would stop seeing it.

Step by step in Search Console

  1. Open the URL in URL Inspection. Note that a robots.txt-blocked page always shows Indexing allowed?: Yes — Google can't see a noindex it isn't allowed to read.
  2. Change robots.txt (and add noindex if the page should go).
  3. Check the robots.txt report under Settings to confirm Google fetched the new file.
  4. Run Test live URL, then request indexing so Google recrawls the page.

FAQ

Is this warning harmful?

It's harmful if the page should be private or out of search — robots.txt doesn't achieve that. If the page should rank, the block stops Google from seeing its content, so it ranks poorly.

Can I add “noindex” to robots.txt?

No. Google doesn't support noindex rules in robots.txt. Use the meta tag or the HTTP header.

How is this different from “Blocked by robots.txt”?

Blocked by robots.txt lists blocked URLs that are not indexed. “Indexed, though blocked” is the case where Google indexed the URL despite the block.

Check your page in seconds

Free, no signup: status code, noindex, robots.txt, canonical and sitemap in one check.

Check your page with the free indexing checker →