AI Ranked
Explainer

Blocked by robots.txt: what the Search Console status means and how to fix it

Search Console shows two robots.txt statuses, and they need opposite fixes. We read Google's documentation, the platform docs for WordPress, Shopify, Webflow and Cloudflare, and the robots.txt files of 251 major websites to show what each status means, which blocks are deliberate and how to clear the rest.

Short answer"Blocked by robots.txt" in Google Search Console means a rule in your robots.txt file stops Googlebot from crawling that URL, so Google left it out of the index. "Indexed, though blocked by robots.txt" means Google indexed the URL anyway, usually because other pages link to it. Fix the first by removing or narrowing the Disallow rule if the page should rank. Fix the second with a noindex tag on a crawlable page, never with robots.txt.
Key takeaways
  • robots.txt controls crawling, not indexing. Google's own docs say a disallowed URL can still be indexed if it's linked from elsewhere, and the result then shows no description.
  • A blocked page can't show Google its noindex tag. To remove a page from Google, unblock it first, let Google see the noindex, and only then decide whether to block it again.
  • Most "Blocked by robots.txt" rows are deliberate. In our panel of 251 major websites, 125 disallow internal search paths and 123 disallow query-string URLs for every crawler that falls back to the general rules.
  • The rule that blocks Googlebot can block AI crawlers too. Only 1 of the 251 sites blocks Googlebot from the whole site, but 81 block at least one AI agent, and Search Console reports none of those.
  • After a fix, Google can take up to 24 hours to pick up the new robots.txt, and Search Console's Validate fix typically takes up to about two weeks.

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

It means Googlebot found the URL but a Disallow rule in your robots.txt file told it not to fetch the page, so Google didn't crawl it and didn't index it. The status lives in the Page indexing report under the reasons a page isn't indexed. Google's Page indexing help lists it as "URL blocked by robots.txt" and says, plainly, "This page was blocked by your site's robots.txt file."

Google found the URL somewhere first. That could be an internal link, an external backlink, your XML sitemap or a redirect. Then, before requesting the page, it read your robots.txt, matched the path against the rules in the group that applies to Googlebot, and stopped. Nothing on the page was read: not the title, not the content, not the canonical tag, not a noindex tag.

That last point is the source of most confusion about this status. Site owners often add both a Disallow rule and a noindex tag to the same page and expect Google to obey both. It can only obey the first one. We come back to this in the noindex section, because getting the order wrong is the most common reason a page refuses to leave Google.

The status on its own isn't an error. Google's help says URLs blocked by robots.txt "are probably intentionally blocked" and asks you to use your judgment. Your admin area, your cart, your internal search results and your faceted filter URLs all belong in this bucket on most sites. The job is to find the rows that shouldn't be there, such as a product page, a blog post or a whole folder blocked by a rule someone wrote for a staging server.

Blocked by robots.txt vs Indexed, though blocked by robots.txt

The two statuses come from the same robots.txt rule and differ only in what Google did next. "Blocked by robots.txt" means the URL is not indexed. "Indexed, though blocked by robots.txt" means Google put the URL in its index without crawling it, because links pointed there, and it shows as a warning on the indexed side of the report.

StatusWhere it appearsIs the URL in Google?What it usually meansTypical fix
Blocked by robots.txtNot indexed reasonsNo, with "a very small chance" it still is, per GoogleThe rule is doing its job, or a rule is too broadLeave it if intended; narrow or remove the rule if the page should rank
Indexed, though blocked by robots.txtIndexed pages, flagged as a warningYes, usually with a limited or missing snippetLinks point at a URL that robots.txt hidesUnblock it and add noindex if it should go; unblock it if it should rank

Google's help describes the warning in two sentences worth reading closely: "Google always respects robots.txt, but this doesn't necessarily prevent indexing if someone else links to your page." And, on the search result itself, "any snippet shown in Google Search results for the page will probably be very limited." So the indexed version is usually a bare title (often guessed from anchor text), a URL and no description.

Which Search Console status a URL ends up withGoogle finds the URL(link, sitemap or redirect)Does robots.txt disallow itfor Googlebot?NoYesGoogle crawls the pageand reads noindex,canonical and contentNo crawl. Google knowsonly the URL and thelinks pointing to itIndexed, or excludedfor a reason Googlecould see on the pageDo other pages link to itstrongly enough toindex it anyway?NoYesNot indexed:Blocked byrobots.txtIndexed,thoughblocked byrobots.txt
Figure 3. How the two statuses come about. robots.txt controls crawling, not indexing, so a blocked URL that collects links can still be indexed, with little or no snippet. Built from Google's robots.txt introduction and the Page indexing report help.

Both statuses only appear for URLs Google has discovered. If a path is blocked and nothing links to it or lists it in a sitemap, Search Console won't show it at all. That is why the counts in the report jump after a site migration or a new internal linking module: Google didn't change its mind about your rules, it found more URLs that hit them.

Why Google indexes a page it can't crawl, and what to do about it

Google indexes a blocked URL when enough signals point to it that the URL itself looks useful, even with no content to read. Google's robots.txt introduction says Google "might still find and index a disallowed URL if it is linked from other places on the web," and that such a result "won't have a description." The fix depends on whether you want that URL in Google.

Three situations account for nearly every case we see in the wild:

  • The page should rank and the block is a mistake. A rule like Disallow: /blog written to hide a single draft also matches every post under /blog/. Remove or narrow the rule. Once Google recrawls, the URL moves to a normal indexed status with a proper snippet.
  • The page should not be in Google, and it's a real page. A thank-you page, a login screen or a gated PDF that partners link to. Take it out of robots.txt, serve noindex in a meta robots tag or an X-Robots-Tag HTTP header, and let Google crawl it. When it drops out, you can leave it as is.
  • The URL is crawl noise. Sort orders, session IDs, tracking parameters and internal search results. These are blocked to save crawl effort, and a few of them leak into the index through links. For most sites the right move is to accept the warning, keep the block, and stop linking to those URL variants internally.

Shopify, which blocks cart, checkout and filter URLs by default, takes the same relaxed view of the third case. Its robots.txt help page calls "indexed, though blocked by robots.txt" "normal behavior and usually not a cause for concern."

Our takeTreat "Indexed, though blocked" as a question about specific URLs, not a site health score. Export the list, group it by folder or parameter, and act only on groups that contain pages you'd be unhappy to see in Google or pages you want to rank. A warning count of 40,000 sort-order URLs with empty snippets costs you very little. Ten indexed URLs under /internal/ deserve attention today, and robots.txt was never the right tool for hiding them.

That last point matters because robots.txt is public. Anyone can open /robots.txt on your domain and read the paths you'd rather nobody visited. If a URL holds something private, it needs authentication or a password, not a Disallow line. Google's help on blocking indexing makes the same distinction between keeping crawlers off a page and keeping it out of results.

How do I find which robots.txt rule blocks a URL?

Run the URL through Search Console's URL Inspection tool, which reports whether crawling is allowed, then open the robots.txt report to see the exact file Google fetched for that host. Match the URL's path against the group for Googlebot (or the * group if Googlebot has none): the longest matching rule wins, and on a tie Google uses the least restrictive one.

Step by step:

  • Inspect the URL. Paste it into the bar at the top of Search Console. The URL Inspection help describes the "Crawl allowed?" line as showing whether your site allowed Google to crawl the page "or blocked it with a robots.txt rule". Google's unblocking guide puts it simply: "If it says Blocked by robots.txt, then you've confirmed the problem." Click Test live URL to check against your current file rather than the last crawl.
  • Open the robots.txt report. It sits under Settings. Google's report help says it "shows which robots.txt files Google found for the top 20 hosts on your site, the last time they were crawled, and any warnings or errors encountered." This is the file Google acted on, which isn't always the file you see in your CMS (more on CDNs below).
  • Find the group that applies. Google's robots.txt specification is blunt here: "Only one group is valid for a particular crawler." Googlebot uses the group with the most specific matching user agent and ignores the rest. If your file has a User-agent: Googlebot group, the rules under User-agent: * don't apply to Googlebot at all.
  • Match the path. Rules are prefix matches on the path, they're case-sensitive, * matches any run of characters and $ anchors the end. The longest rule that matches wins. When an Allow and a Disallow are equally specific, Google uses the least restrictive rule, so Allow wins.

A worked example. Say your file reads:

User-agent: *
Disallow: /products
Allow: /products/
Disallow: /*?sort=

Then /products/blue-mug is allowed, because Allow: /products/ (10 characters) is longer than Disallow: /products (9 characters). /products-sale is blocked, because only the shorter Disallow matches it. The surprise is /products/blue-mug?sort=price. Most people expect the sort rule to block it, but Disallow: /*?sort= is only 8 characters long, so the 10-character Allow wins and the sorted URL stays crawlable. To block sort URLs inside that folder, write the longer Disallow: /products/*?sort=, which beats the Allow on length. When a pattern surprises you, run the URL through the live test in URL Inspection before you publish the change.

The old robots.txt Tester in Search Console is gone. Google retired it when it launched the robots.txt report, as Search Engine Roundtable reported from Google's announcement ("we're sunsetting the robots.txt tester"). Some Google help pages still link to it. For a quick check outside Search Console, paste your file into our robots.txt checker, which reads the groups the same way and also shows how the major AI crawlers are treated.

When is "Blocked by robots.txt" intentional?

It's intentional when the blocked URLs are pages nobody should land on from Google: admin and login areas, carts and checkouts, internal search results, filtered and sorted listing pages, staging copies and web apps that live behind a login. Leave those rows alone. It's a mistake when the list includes pages you want to rank, or the CSS and JavaScript files those pages need to render.

Blocked URL patternCommon sourceVerdict
/wp-admin/, /adminWordPress default file, Shopify default fileIntentional, leave it
/cart, /checkout, /account, /ordersShopify default rulesIntentional, leave it
/search, /*?q=Most CMS themes and hand-written filesIntentional; also remove internal links to search URLs
/collections/*sort_by*, /*?filter=E-commerce faceted navigationIntentional unless a filter page targets a real search term
Everything on an app or staging subdomainDisallow: / on that hostIntentional, check it never reaches the main domain
Product, blog or landing pagesAn over-broad prefix rule or a leftover staging fileMistake, fix now
/assets/, /*.js$, /*.css$Old advice to save crawl budgetMistake if pages need those files to render

App subdomains are the cleanest example of a block that should stay. Our own product dashboard runs on its own host, monitor.airanked.ai, and its robots.txt is two lines long:

User-agent: *
Disallow: /

Every page there sits behind a sign-in, so there's nothing for a search engine or an AI assistant to show. Because robots.txt applies only to the host, protocol and port it's served from, that file has no effect on airanked.ai itself. If your app or docs live on a subdomain, check each host separately: the robots.txt report lists every host Google found, up to 20, so you can see whether a blanket rule meant for app. has ended up on www..

What the User-agent: * group disallows on 251 major websitesAt least one Disallow rule229 of 251 sites (91.2%)91.2%A pattern with a * wildcard166 of 251 sites (66.1%)66.1%A path containing "search"125 of 251 sites (49.8%)49.8%A URL with a ? query string123 of 251 sites (49.0%)49.0%Login, account or auth paths103 of 251 sites (41.0%)41.0%An /api path67 of 251 sites (26.7%)26.7%An admin path51 of 251 sites (20.3%)20.3%Cart or checkout paths25 of 251 sites (10.0%)10.0%
Figure 1. Share of the 251 sites whose general group (the rules every crawler without its own group falls back to) disallows each kind of path. Internal search and query-string URLs are the most common targets, which is why so many "Blocked by robots.txt" rows in Search Console are search and filter pages. Data: AI Ranked robots.txt panel of 251 major websites, one fetch of each live file, parsed to RFC 9309.
What the * group disallowsSitesShare of 251
At least one Disallow rule22991.2%
A pattern with a * wildcard16666.1%
A path containing "search"12549.8%
A URL with a ? query string12349.0%
Login, account or auth paths10341.0%
An /api path6726.7%
An admin path5120.3%
Cart or checkout paths2510.0%

We parsed the live robots.txt files of 251 major websites (news, SaaS, retail, social, reference and government sites; the same panel behind our AI crawler access report) and looked at the general group, the one any crawler without its own group falls back to. The median file in that group carries 16 Disallow lines, and the largest carries 1,650. Half the panel blocks internal search, and almost half blocks query strings. On any of those sites, Search Console would fill up with "Blocked by robots.txt" rows the moment Google found a few hundred search or filter links, and every one of those rows would be correct.

Thirteen of the 251 go further and give the general group a single rule, Disallow: /. Twelve of them then add named groups that let Googlebot and other chosen crawlers in; Facebook, LinkedIn, Pinterest, Netflix, IMDb, Yelp, Reuters and The Wall Street Journal all run that allowlist model. Reddit's file stops at the two lines. It's a legitimate design, and it has one side effect we'll come back to: every crawler that isn't on the list, including any new AI agent, is blocked by default.

noindex vs robots.txt: which one removes a page from Google?

noindex removes a page from Google's results; robots.txt only stops crawling. And the two don't stack. Google's guide to blocking indexing says that for noindex "to be effective, the page or resource must not be blocked by a robots.txt file," because otherwise "the crawler will never see the noindex rule." Use one or the other, depending on the goal.

GoalUseWhy
Keep a page out of Google's resultsnoindex (meta tag or X-Robots-Tag header), page crawlableGoogle has to fetch the page to see the instruction
Save crawl effort on endless URL variantsrobots.txt DisallowStops the fetch; a few variants may still be indexed from links
Keep private content privateLogin or password protectionrobots.txt is public and only a request to well-behaved bots
Remove a URL from results fastSearch Console Removals, then noindexThe removal is temporary; noindex makes it stick
Keep a PDF or image out of resultsX-Robots-Tag: noindex headerFiles have no HTML head for a meta tag

The URL Inspection help spells out what this looks like in the tool. If a page is blocked by robots.txt, "Indexing allowed? will always be 'Yes' because Google can't see and respect any noindex directives." That "Yes" fools people into thinking the noindex is broken. It isn't broken, it's unread.

The safe order for taking an indexed, blocked URL out of Google:

  • Add the noindex tag or header to the page.
  • Remove the Disallow rule that covers it (or add a more specific Allow for that path).
  • Request indexing for the URL in URL Inspection so Google fetches it soon, or wait for the next crawl.
  • Watch the URL move to "Excluded by 'noindex' tag" in the Page indexing report.
  • Only if crawl volume matters, put the Disallow back after the page has dropped. If outside links keep pointing at it, expect it to reappear as "Indexed, though blocked" one day, which is the reason to usually leave it crawlable.

WordPress is a good illustration of why the distinction matters. Before version 5.3, ticking "Discourage search engines from indexing this site" wrote Disallow: / into the virtual robots.txt. Since 5.3, the WordPress code reference says that output was removed "in favor of robots meta HTML tag". So a modern WordPress site with that box ticked shows up as "Excluded by 'noindex' tag" rather than "Blocked by robots.txt", which is the behaviour you want when a site is still being built.

How to fix "Blocked by robots.txt" on WordPress, Shopify, Webflow and Cloudflare

Find where your robots.txt is generated, edit the rule there, and confirm the live file at yourdomain.com/robots.txt matches. On WordPress that's usually an SEO plugin's file editor or a physical file in the web root; on Shopify the robots.txt.liquid theme template; on Webflow the robots.txt field in Site settings; behind Cloudflare, also check whether the CDN adds rules of its own.

WordPress (core, Yoast SEO, Rank Math)

Core WordPress serves a virtual robots.txt when there's no physical file. Its default is three lines:

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

If your live file looks different, something else is writing it. Check in this order:

  • A physical robots.txt file in the site root, uploaded by a developer or a migration tool. The web server serves it before WordPress gets a chance, and it overrides every plugin setting. Edit or delete it over SFTP or your host's file manager.
  • Yoast SEO. Yoast's help sends you to Yoast SEO, then Tools, then File editor. The menu "will not appear if your WordPress install has disabled file editing", which some hosts do by default.
  • Rank Math. Rank Math's guide says to make sure Advanced Mode is enabled, then open General Settings and click Edit robots.txt.
  • The Reading setting. Under Settings, then Reading, the "Discourage search engines" box adds a noindex, nofollow meta tag on current versions. It won't cause a robots.txt block, but it will empty your index, so untick it on any site that should rank.

Shopify

Shopify generates robots.txt for every store. Its help page says the default file is "optimal for Search Engine Optimization (SEO)" and lists what it blocks, including /admin, /cart, /checkout, /checkouts/, /account, /orders and filtered collection URLs such as /collections/*sort_by*. Those rules produce most of the "Blocked by robots.txt" rows on a Shopify store, and they should stay.

To change the file, go to Online Store, then Themes, then Edit code, click Add a new template and choose robots. That creates robots.txt.liquid. Shopify's developer docs warn that "Adding the robots.txt.liquid template replaces Shopify's generated robots.txt output", so build on the default Liquid objects in the template and add or remove single rules, rather than pasting a hand-written file over the top. If a product or collection URL shows as blocked, check whether it matches one of the default filter patterns before touching anything; a collection URL with a + in it, for example, matches /collections/*+*.

Shopify's help also adds a note for the AI era: robots rules "are directional and advisory", and blocking crawlers "doesn't stop your product data from being sent by Shopify Catalog to the agentic storefronts". A robots.txt edit is one control among several on Shopify, not a full off switch.

Webflow

In Webflow the file lives in Site settings. Webflow's robots.txt help says to go to Site settings, then SEO, then Indexing, add your rules, click Save and publish the site. Nothing changes until you publish, which catches people who edit the field and then wonder why Search Console still shows the old block.

Two Webflow settings generate rules for you. "Staging indexing", when turned off, publishes a separate robots.txt that blocks crawlers on the webflow.io staging subdomain only, which is the correct place for a Disallow: /. And the newer Traffic control toggles, described in Webflow's indexing help, "auto-generate robots.txt rules for a group of known bots", with one group for search engine crawlers and one for AI bots (GPTBot, ClaudeBot, PerplexityBot and Claude-User among them). Webflow allows both groups by default and puts OAI-SearchBot with the search engines. If a page on a Webflow site is blocked and you didn't write the rule, look at those toggles first.

Cloudflare and other CDNs

A CDN can change your robots.txt after it leaves your CMS, so the file Google reads isn't always the one you edited. Cloudflare's robots.txt setting, now called Bot Preference Sync, is the common case. Cloudflare's docs say it "prepends managed directives and the Content Signals Policy" to your file when the feature is on and at least one bot policy is set to block, and it creates a file if your site has none.

Cloudflare's example output disallows the whole site for named AI agents, including Amazonbot, Applebot-Extended, Bytespider, CCBot, ClaudeBot, Google-Extended, GPTBot and meta-externalagent, and adds a Content-signal: search=yes, ai-train=no line. Googlebot isn't on that list, so the managed block shouldn't create a "Blocked by robots.txt" status for Google Search. What it can do is change which AI systems can read you without anyone touching the CMS. If you're behind Cloudflare and a Search Console block makes no sense, check for a Worker, a transform rule or a cached copy that serves a different file, and compare the version in Search Console's robots.txt report with what you see in a browser.

Our takeBefore editing anything, fetch the live file the way a crawler would, from a terminal or a private browser window, and paste it somewhere safe. On every platform above, the robots.txt you see in an admin screen is one input among several: a physical file, a theme template, a toggle or a CDN rule can all win. Fixing the wrong layer is the main reason a block "comes back" after it was fixed.

Can the same robots.txt rule block AI crawlers like GPTBot and ClaudeBot?

Yes. OpenAI, Anthropic and Perplexity all document robots.txt as the way to control their crawlers, and any of them without a named group in your file falls back to the User-agent: * group. So a broad Disallow under * blocks GPTBot, ClaudeBot and PerplexityBot as well as Googlebot, and Search Console will only ever tell you about Google.

The vendors' own wording, briefly:

  • OpenAI. Its crawler docs say a webmaster "can allow OAI-SearchBot in order to appear in search results while disallowing GPTBot", that disallowing GPTBot means content "should not be used in training", and that a robots.txt change takes about 24 hours to apply. Our GPTBot guide covers all three OpenAI agents.
  • Anthropic. Its help center says Anthropic's bots honor "industry standard directives in robots.txt" and that disabling Claude-SearchBot "may reduce your site's visibility and accuracy in user search results."
  • Perplexity. Its crawler docs describe PerplexityBot as the crawler that surfaces and links websites in Perplexity's results, and say Perplexity-User, which fetches pages for live questions, "generally ignores robots.txt rules."
Share of 251 major websites whose robots.txt blocks each crawler from the whole siteGooglebot (Google Search)Googlebot: 1 of 251 (0.4%)0.4%Bingbot (Microsoft Bing)Bingbot: 2 of 251 (0.8%)0.8%OAI-SearchBot (ChatGPT search)OAI-SearchBot: 28 of 251 (11.2%)11.2%PerplexityBot (Perplexity search)PerplexityBot: 50 of 251 (19.9%)19.9%Google-Extended (Gemini use, not Search)Google-Extended: 53 of 251 (21.1%)21.1%GPTBot (OpenAI training)GPTBot: 59 of 251 (23.5%)23.5%ClaudeBot (Anthropic training)ClaudeBot: 66 of 251 (26.3%)26.3%CCBot (Common Crawl)CCBot: 73 of 251 (29.1%)29.1%
Figure 2. A crawler counts as blocked when its group, or the * group it falls back to, disallows the home page. Search Console only reports on Google's own crawlers, so the AI rows here never show up as a Page indexing status. Data: the same 251-site panel.
CrawlerBlocked from the whole siteShare of 251Shows in Search Console?
Googlebot10.4%Yes
Bingbot20.8%No (Bing Webmaster Tools)
OAI-SearchBot2811.2%No
PerplexityBot5019.9%No
Google-Extended5321.1%No (not a Search crawler)
GPTBot5923.5%No
ClaudeBot6626.3%No
CCBot7329.1%No

The gap in that table is the point. In our panel, Reddit is the only site whose file blocks Googlebot from the root. Yet 81 of the 251 sites block at least one of the ten AI crawler tokens we track (OpenAI's three, Anthropic's three, Perplexity's two, Google-Extended and CCBot), and 80 of those 81 leave Googlebot open. Every one of those 80 sites has a clean Search Console report for robots.txt while shutting out one or more AI crawlers. Most of those blocks are deliberate and named: GPTBot is blocked through its own group on 53 sites and only through the * fallback on 6. The fallback cases are the allowlist files described above, where nobody wrote a rule about GPTBot at all.

One Google token causes particular confusion. Google-Extended controls whether Google can use your content for Gemini models, and blocking it is not a Search problem. On Google's list of common crawlers, the token is described as having no effect on "a site's inclusion in Google Search", and Google adds that it isn't a ranking signal there either. A Google-Extended Disallow will never produce "Blocked by robots.txt" in the Page indexing report.

Because Search Console is blind to AI crawlers, check them separately whenever you touch robots.txt. The quick way is the free checker mentioned above, which lists a verdict per bot. If the file changes often, or a CDN or plugin can change it without a deploy, a daily check such as AI Ranked Monitor reads the rules for 18 AI user agents and alerts by Slack or email when one of them flips to blocked. Our AI crawlers robots.txt guide has copy-ready groups for each bot.

Our takeWrite named groups for the crawlers you care about, Googlebot and the AI search agents included, rather than relying on the * group to do the right thing. A named group is explicit, it survives someone adding a broad rule under * later, and it makes the file readable for the next person. The one trap: once Googlebot has its own group, it ignores the * group completely, so copy across any shared Disallow lines you still want it to follow.

How long does it take Google to clear the error after a fix?

Google generally refreshes its cached robots.txt within 24 hours, then recrawls affected URLs on its normal schedule. Search Console's Validate fix typically takes up to about two weeks to confirm. You can speed up the first step by requesting a recrawl of robots.txt in the robots.txt report, and the second by requesting indexing for your most important URLs.

The robots.txt specification says Google "generally caches the contents of robots.txt file for up to 24 hours", and the report help says you can "request a recrawl of a robots.txt file for emergency situations." A rule that blocked your whole site counts as an emergency. A rule blocking three old blog posts doesn't.

Then work through the report. Open the "Blocked by robots.txt" or "Indexed, though blocked by robots.txt" row and click Validate fix. Google's help asks you not to click it again "until validation has succeeded or failed", and says validation "typically takes up to about two weeks". Restarting it resets the clock. For a handful of high-value pages, use URL Inspection's Request indexing button instead of waiting; it doesn't guarantee indexing, but it moves the URL up the crawl queue.

Expect the "Indexed, though blocked" count to fall slowly even after a correct fix. A URL only changes status when Google next crawls it, and low-value URLs get crawled rarely. If the count is falling week over week, the fix is working.

Eight robots.txt mistakes behind the error

Most unwanted blocks trace back to a handful of patterns. Each one below shows up in real files, and each has a quick test.

  • A staging file shipped to production. User-agent: * plus Disallow: / on a staging server, copied across at launch. The whole site drops into "Blocked by robots.txt" within days. Test: open /robots.txt on the live domain after every launch or migration.
  • A prefix rule that matches more than intended. Disallow: /blog also blocks /blog/, /blogging-tips and /blog-archive. End folder rules with a slash, and anchor single files with $.
  • A new Googlebot group that silently drops the * rules. Someone adds User-agent: Googlebot with one Disallow for a test, and Googlebot stops following every rule in the general group. Copy the shared rules into the named group, or don't create it.
  • Case mismatches. Paths are case-sensitive, so Disallow: /Private/ doesn't block /private/, and a rule written for /Products/ leaves /products/ open.
  • Blocking the files pages need to render. A Disallow: /assets/ written years ago to save crawl budget can stop Google from loading the CSS and JavaScript a page depends on. URL Inspection's live test shows which resources couldn't be loaded.
  • A robots.txt that returns a server error. Google treats a 4xx response, other than 429, as if no file exists and crawls everything. A 5xx is worse: "For the first 12 hours, Google stops crawling the site", and after that it falls back to the last good copy for up to 30 days. Watch the robots.txt report for fetch errors.
  • Disallow and noindex on the same URL. The page stays indexed because Google can't read the noindex. Pick one, as the noindex table above shows.
  • A file over the size limit. Google enforces a 500 KiB limit, and "Content which is after the maximum file size is ignored." Large sites that generate a rule per URL can cross it, and rules after the cut-off stop applying.

For the record format itself, RFC 9309 is the published robots.txt standard, and it's short enough to read in one sitting. Most of the mistakes above come from treating robots.txt as a list of folders rather than a set of prefix patterns, matched per crawler, per host.

FAQ

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

It means a Disallow rule in your robots.txt file stopped Googlebot from crawling the URL, so Google didn't index it. Google's help lists it among the reasons a page isn't indexed and says such URLs are probably blocked on purpose. Fix it only if the URL is a page you want in Google, by removing or narrowing the rule.

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

Google indexed the URL without crawling it, usually because other pages link to it, even though robots.txt blocks it. Search Console shows it as a warning on the indexed side of the report. The search result usually has little or no snippet. If the page should rank, remove the block; if it should go, remove the block and add noindex.

How do I fix "Indexed, though blocked by robots.txt"?

Decide whether the URL belongs in Google. If it does, remove the Disallow rule and let Google recrawl it. If it doesn't, remove the rule, add a noindex meta tag or X-Robots-Tag header, and wait for Google to see it. For crawl noise such as sort and filter parameters, you can usually leave the warning as it is.

Does robots.txt stop a page from being indexed?

No. robots.txt stops crawling, not indexing. Google says it may still index a disallowed URL if other sites link to it, and the result then shows no description. To keep a page out of Google's results, let Google crawl it and serve a noindex directive, or put the content behind a login.

Can Google see a noindex tag on a page blocked by robots.txt?

No. Google has to crawl a page to read its noindex tag, and a Disallow rule stops the crawl, so the tag is never seen. Google's documentation says noindex only works if the page is not blocked by robots.txt. Remove the block first, let Google recrawl and drop the page, then decide whether to block it again.

How long does it take Google to update after I fix robots.txt?

Google generally refreshes its cached copy of robots.txt within 24 hours, and you can request a faster recrawl in the robots.txt report. Affected URLs then change status as Google recrawls them. Search Console's Validate fix typically takes up to about two weeks to finish.

Does blocking GPTBot or Google-Extended affect Google Search?

No. GPTBot is OpenAI's crawler, and Google says Google-Extended does not affect inclusion or ranking in Google Search. Neither creates a "Blocked by robots.txt" status. A broad Disallow under User-agent: * does affect both Google and AI crawlers that have no group of their own, so check AI access separately.

Cite this page Marksman, Robin. "Blocked by robots.txt: what the Search Console status means and how to fix it." AI Ranked. https://airanked.ai/guides/blocked-by-robots-txt