← Back to blog
Technical SEO

Blocked by robots.txt in Search Console: Both Statuses Explained and Fixed

robots.txt controls crawling, not indexing. That one distinction explains both Search Console statuses — and why the fix for keeping a page out of Google is to unblock it.

By Rajhussain Kanani8 min read

The short answer

Search Console has two robots.txt statuses, and they mean opposite things. URL blocked by robots.txt (under Why pages aren’t indexed) means a Disallow rule stops Google from crawling the page. Indexed, though blocked by robots.txt (a warning on indexed pages) means Google indexed the URL anyway, without reading it, because other pages link to it. Both come from the same misunderstanding: robots.txt controls crawling, not indexing. Google’s own introduction says it’s used mainly to avoid overloading your site and is not a mechanism for keeping a page out of Google. To get a page indexed, unblock it; to keep it out, unblock it and add noindex.

Illustration of a crawler robot stopped by a closed barrier gate in front of a web page, next to a stop sign document

What robots.txt actually does

robots.txt tells crawlers which URLs they may request. It doesn’t remove anything from search. Google’s documentation spells out the consequence: a blocked web page’s URL can still appear in search results, just without a description, and if other pages link to it with descriptive text, Google can index the URL without ever visiting the page. That’s exactly what the Indexed, though blocked warning reports.

It also explains why robots.txt and noindex don’t mix: Google has to crawl a page to see its noindex. Block the page in robots.txt and the noindex is never read.

A real example

# https://checkseo.dev/robots.txt
User-Agent: *
Allow: /
Disallow: /api/

Sitemap: https://checkseo.dev/sitemap.xml

This site’s robots.txt blocks one thing: /api/, the endpoints the tools call behind the scenes. They return data, not pages, so there’s nothing for Google to crawl there. If Google ever lists an /api/ URL as URL blocked by robots.txt, that’s the rule working. Everything else is allowed, and the sitemap line tells crawlers where the page list lives.

“URL blocked by robots.txt”: what to do

1

Decide whether the URL should be crawled at all

Admin areas, carts, internal search, API endpoints and infinite filter combinations are good things to block. If every URL in the row is like that, there’s nothing to fix.

2

If a page you want indexed is listed, find the rule

Look for the Disallow line whose path is a prefix of the URL. Watch for rules broader than they look — Disallow: /blog also blocks /blog-tips and /blogroll, and Disallow: / blocks everything. Fix: Narrow the rule, or add a more specific Allow for the page.

3

Get Google to fetch the new file

Google generally caches robots.txt for up to 24 hours. The robots.txt report in Search Console shows the file Google last fetched and lets you request a recrawl after a critical fix — though Google notes that doesn’t guarantee an immediate recrawl of the unblocked URLs. Then request indexing for the important pages.

“Indexed, though blocked by robots.txt”: what to do

The fix depends on whether you want the URL in Google:

  • You want it indexed properly — remove the block so Google can read the page and show a real title and description.
  • You want it out of Google — remove the robots.txt block and add a noindex, so Google can crawl the page and see the instruction. Google’s Page indexing help says robots.txt isn’t the right mechanism to keep a page out of the index. The guide to Excluded by ‘noindex’ tag covers how noindex works.
# To keep a page OUT of Google: let it be crawled, and say noindex.
# robots.txt — make sure the page is NOT disallowed
User-agent: *
Disallow: /api/

# the page itself
<meta name="robots" content="noindex">

The Robots.txt Checker fetches your site’s live robots.txt and flags rules that block crawlers from the whole site or leave out the sitemap. No signup.

Check your robots.txt

How Google reads robots.txt

  • Most specific rule wins. Google uses the rule with the longest matching path. When an Allow and a Disallow match equally, Google uses the least restrictive one — Allow.
  • Wildcards. * matches any characters and $ marks the end of the URL, so Disallow: /*.pdf$ blocks URLs ending in .pdf.
  • Paths are case-sensitive. /Shop/ and /shop/ are different paths.
  • One group per crawler. A crawler follows the group with the most specific user-agent that matches it and ignores the rest; a specific group and the * group are not combined.
  • Only four fields count. Google supports user-agent, allow, disallow and sitemap. crawl-delay isn’t supported, and neither is noindex in robots.txt.
  • Location and size. The file must be at the top level of the host (https://example.com/robots.txt); each subdomain needs its own. Google reads up to 500 KiB.
User-agent: *
Disallow: /shop/
Allow: /shop/sale/

# /shop/sale/boots   -> allowed  (the longer, more specific rule wins)
# /shop/boots        -> blocked
# /Shop/boots        -> allowed  (paths are case-sensitive)
# /shop-guide        -> allowed  (/shop/ needs the slash; Disallow: /shop would block it)

When robots.txt itself fails

If /robots.txt returns a 4xx (except 429), Google treats it as if there were no file — no restrictions. If it returns a 5xx, Google stops crawling the site for the first 12 hours while it retries, then uses the last good copy for up to 30 days. A broken robots.txt on a busy server can therefore pause crawling of a whole site, which is worth checking if many pages stop being crawled at once.

Don’t block what pages need to render

Blocking CSS, JavaScript or images that a page needs can stop Google from understanding it. Google’s guidance is to block resources only when the page isn’t significantly affected without them. The robots.txt checker guide covers the rules that block more than intended, and every “Why pages aren’t indexed” reason puts both statuses in context.

The free site scan finds your site’s pages, checks a sample for noindex tags, missing canonicals, thin content and unreachable URLs, and estimates how many pages across the site share each problem.

Scan your whole site, free

Sources

Frequently asked questions

What does URL blocked by robots.txt mean?

A Disallow rule in your robots.txt stops Google from crawling the page, so Google can't read or index its content. If the URL is something like an admin page, API endpoint or internal search, that's intended. If it's a page you want indexed, narrow or remove the rule.

What does indexed, though blocked by robots.txt mean?

Google indexed the URL without crawling it, because other pages link to it. robots.txt stops crawling, not indexing, so such results usually show without a description. Unblock the page so Google can read it, and add noindex if you want it out of search.

Can robots.txt remove a page from Google?

No. Google says robots.txt is not a mechanism for keeping a page out of Google. Use a noindex meta tag or X-Robots-Tag header, and make sure the page is not blocked in robots.txt so Google can see that rule.

How long does Google take to notice a robots.txt change?

Google generally caches robots.txt for up to 24 hours. You can request a recrawl of the file in Search Console's robots.txt report after a critical change, then request indexing for the important pages.

Does Google support crawl-delay or noindex in robots.txt?

No. Google supports only the user-agent, allow, disallow and sitemap fields. crawl-delay is ignored, and noindex must go in a robots meta tag or an X-Robots-Tag header instead.

Check your own site with the Robots.txt Checker.

Open Robots.txt Checker

Want every check at once?

The free Full Audit runs 33 checks on any URL, most of them in seconds. Add your email afterwards and we send a detailed one-page report; the full-site report covers up to 1,000 pages.

More from the blog

We use cookies to analyze site usage and improve your experience. You can decline non-essential cookies. Privacy Policy