Blocked by robots.txt in Search Console and How to Fix It

Two technical SEO specialists discussing crawl settings at a shared screen

Blocked by robots.txt in Google Search Console means Googlebot found the URL and a rule in your robots.txt file stopped it from crawling the page. Google doesn't index a page it can't crawl in most cases. A linked URL can still slip into the index without its content. Search Console reports that case as Indexed, though blocked by robots.txt.

Both statuses are often intentional. Some aren't. This guide, part of our series on Search Console indexing statuses, shows how to tell a deliberate block from a mistake, find the exact rule responsible and fix it the right way for each goal.

What does Blocked by robots.txt mean in Search Console?

The Page indexing report lists the status as Blocked by robots.txt in the "Why pages aren't indexed" table. Google's Page indexing report documentation files it under the longer heading "URL blocked by robots.txt" and describes it in one line. The page was blocked by your site's robots.txt file. URL Inspection and Google's guide to unblocking a page use the report's shorter label.

Google adds a warning to the same entry. A block "does not guarantee that the page won't be indexed through some other means." If Google finds information about the page without loading it, there is a very small chance the URL still gets indexed.

The same documentation says it's fine for a URL to stay out of the index for the right reasons. Its first example is "an expected robots.txt rule." Cart pages, internal search results, admin paths and tracking-parameter duplicates usually belong in this bucket. The status only needs fixing when a page you want in Search shows up here.

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

This one sits in the "Improve page experience" table as a warning. Google's documentation says the page "was indexed despite being blocked by your website's robots.txt file." Google indexed the URL from information on pages that link to it, without ever requesting the page.

Google says any snippet for such a page "will probably be very limited." Its introduction to robots.txt puts it more plainly. A blocked URL can still appear in results without a description.

The warning means your robots.txt and your intent disagree. The block is either a mistake on a page you want ranking or the wrong tool for a page you want gone.

Why can a blocked page still get indexed?

robots.txt controls crawling. Indexing runs on separate signals. Google's robots.txt introduction says the file is used mainly to avoid overloading your site with requests and that "it is not a mechanism for keeping a web page out of Google."

Discovery doesn't need a crawl. Google learns about URLs from internal links, external links and sitemaps. When other pages point to a blocked URL with descriptive anchor text, Google has enough to index the address and show it for some queries. It just has no page content to work with.

The URL Inspection documentation spells out the side effect. When a page is blocked by robots.txt, "Indexing allowed?" will always read "Yes" because Google can't see any noindex directive on the page. A noindex tag behind a Disallow rule goes unread because Google never fetches the page.

How do you find the robots.txt rule that blocks a URL?

Start with the URL itself. Open URL Inspection in Search Console, inspect an affected URL from the report and look at the Page indexing section. A status of Blocked by robots.txt confirms the problem. "Crawl allowed?" will show No.

Then open the robots.txt report under Settings in Search Console. It's available only for Domain properties and for URL-prefix properties at the root of a host. Google's robots.txt report documentation says it shows which robots.txt files Google found for the top 20 hosts on your site, when each was last crawled and any warnings or errors. Each row gives the file path, fetch status, the time it was checked, file size and a count of parsing issues. Click a file to see the version Google last fetched with errors highlighted. The Versions view shows changes from the last 30 days.

The report shows the file Google read. Matching a URL against its rules takes a separate tool. Google Search Central announced the report on November 15, 2023. The same post said Google was sunsetting the old robots.txt Tester. Some Search Console help pages still link to the tester (as of December 2026). To match a URL against your rules, use one of these.

  • A third-party robots.txt validator. Google's unblocking guide tells site owners to use one to find which rule is blocking the page.
  • Google's open source robots.txt library, which the robots.txt report documentation says is also used in Google Search. Developers can build it and test URLs locally.

Read the matching rules the way Google does. Google's robots.txt specification sets two precedence rules that trip people up.

  • Googlebot follows only the most specific user-agent group that matches it. A User-agent: Googlebot group replaces the User-agent: * group entirely. Rules in the wildcard group don't carry over.
  • Within a group, the most specific rule wins by path length. When an allow and a disallow rule conflict at equal specificity, Google uses the least restrictive one.

Paths are case-sensitive. Hosts matter too. A file only governs the host, protocol and port it sits on. https://shop.example.com/robots.txt has no effect on https://example.com/.

Common causes of an unwanted block

PatternWhat to look for
Staging rules shipped to productionDisallow: / under User-agent: * on the live site, or a CMS setting that discourages search engines left on after launch
Broad wildcard patternsA rule such as Disallow: /*? that blocks every parameterized URL, including paginated or filtered pages you want indexed
Prefix collisionsDisallow: /blog also blocks /blog-post-name and /blogroll because rules match from the start of the path
A Googlebot group missing rulesA separate User-agent: Googlebot group written for one exception, which silently drops every rule from the wildcard group
Blocked resourcesCSS, JavaScript or image paths disallowed, which can stop Google from rendering pages that are themselves allowed
The wrong host's fileEditing robots.txt on www while the blocked URLs live on a subdomain with its own file

A group that lists several user agents applies its rules to all of them. Rules meant for an AI crawler catch Googlebot too when both names share a group. Our AI crawler robots.txt reference covers how to write separate groups for training and search bots without touching Google Search.

How to fix Blocked by robots.txt

The fix depends on what you want for the page. Decide that first. Do it per URL pattern in the export.

Your goalCurrent statusFix
Page should rankBlocked by robots.txtRemove or narrow the Disallow rule. Add an Allow rule for the specific path if the broader block must stay.
Page should rankIndexed, though blocked by robots.txtRemove the block. Google can then crawl the page and replace the bare URL listing with a full result.
Page should stay out of SearchIndexed, though blocked by robots.txtRemove the Disallow rule and add noindex. Keep the block off until Google has recrawled and dropped the page.
Page should stay out of SearchBlocked by robots.txtNothing to do if the URL isn't indexed. Ignore the row.
Page should only save crawlEither statusKeep the Disallow rule and remove internal links and sitemap entries that point at the URL.

Why you can't use Disallow and noindex together

Google has to crawl a page to read its noindex rule. Google's noindex documentation says that "for the noindex rule to be effective, the page or resource must not be blocked by a robots.txt file." The Page indexing documentation gives the same instruction for an unwanted indexed page. Remove the robots.txt block and use noindex.

Use the meta tag in the page head for HTML pages.

<meta name="robots" content="noindex">

Use the X-Robots-Tag HTTP header for PDFs and other files that can't carry a meta tag.

X-Robots-Tag: noindex

Our guide to the noindex tag covers both methods and the cases where each one fits. Once the URLs have dropped out, you can restore the Disallow rule if crawl load matters. Google's Removals tool documentation tells you not to use robots.txt as a blocking mechanism. A URL you disallow again can return as Indexed, though blocked by robots.txt if other pages keep linking to it.

For a page that has to disappear quickly, the Removals tool hides a URL from results for about six months. It doesn't stop Google from crawling. Pair it with noindex, a password or a 404 or 410 so the removal sticks after the block expires.

When robots.txt itself returns an error

The status code of the robots.txt file changes what Google does. The specification says Google treats a 4xx response other than 429 as if no robots.txt existed and crawls without restrictions. A 5xx or 429 response stops crawling for the first 12 hours. After that Google uses the last good copy for up to 30 days. Check the fetch status column in the robots.txt report whenever crawling drops sitewide. A 5xx on that one file can halt crawling across the whole host.

How long does a robots.txt change take to apply?

Google generally caches robots.txt for up to 24 hours, per the specification. After editing the file, open the robots.txt report, use the more settings menu next to the file and click Request a recrawl. Google's documentation lists unblocking important URLs as a reason to do this. It adds that a fresh fetch of the file doesn't guarantee an immediate recrawl of the unblocked URLs.

A page that gains a noindex rule still has to be recrawled before it drops out. Google's noindex documentation says less important pages can take months to be revisited. Request indexing on the URLs that matter most through URL Inspection.

How to validate the fix

  1. Confirm the new robots.txt is live by opening it in a browser at the root of the host.
  2. Check the robots.txt report shows a fresh fetch with the new size and no parsing errors.
  3. Run Test live URL on a few affected pages in URL Inspection. "Crawl allowed?" should read Yes for pages you unblocked.
  4. Open the Blocked by robots.txt or Indexed, though blocked by robots.txt row in the Page indexing report and click Validate fix.

Google says validation typically takes up to about two weeks and can take much longer. It stops when Google finds a single remaining instance. Fix every URL in the pattern before you start it.

Google's Page indexing documentation notes that it might not always make sense to validate a robots.txt issue. Blocked URLs are often blocked on purpose. Skip validation for the rows you meant to block. Google updates the counts on its normal crawl anyway.

Unblocking a page doesn't guarantee indexing. A page that becomes crawlable can land in other statuses next. Our guides to Crawled and Discovered currently not indexed and soft 404 errors cover the two that most often follow. If robots.txt keeps breaking with every release, our technical SEO team can audit the file and the deploy process that overwrites it.

Want this for your brand

See where your brand stands in AI answers today, benchmarked against your competitors, no pitch required.