Cyber SEO: 50% off
Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

Accept all cookies

Blocked by robots.txt: What the Search Console Status Means and How to Fix It

Blocked by robots.txt in Search Console: find the rule at fault, unblock the right pages, use noindex for the others and validate the fix step by step.

Published on
25/10/2026
Updated on
25/10/2026
Reading time
8 min
Card titled 'Blocked by robots.txt' with a short robots.txt code snippet with line numbers, a red Blocked label and a green Crawled label

Tools

On this page

In short

"Blocked by robots.txt" means a rule in your robots.txt file stops Googlebot from crawling a URL, so Google cannot read the page and it usually stays out of search results. If the block is deliberate (admin, cart, internal search), leave it. If an important page is affected, find the Disallow rule that matches it, change it, test the URL, then request a recrawl. To keep a page out of Google, use noindex instead, because robots.txt controls crawling, not indexing.

Want to go further? Ask

Quick quiz

Who should fix the technical side of your site?

Question 1 of 425%
What is happening today?

The blocked by robots.txt status appears in the Page indexing report of Google Search Console, among the reasons why pages are not indexed. Google's own Page indexing report documentation describes it in one line: the page was blocked by your site's robots.txt file. Behind that line are two very different situations, a healthy block and an accidental one, plus a confusing cousin, "Indexed, though blocked by robots.txt". This guide shows how to tell them apart and fix each one without breaking anything else. If you are new to the file itself, start with our definition of robots.txt.

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

Your robots.txt file sits at the root of the host (example.com/robots.txt) and tells crawlers which paths they may fetch. When Googlebot finds a URL, through a link or a sitemap, it checks that file first. If a Disallow rule matches the path for its user agent, it does not fetch the page. Search Console then lists the URL under "Blocked by robots.txt".

Two consequences follow. Google cannot see the content, the title, the internal links or any meta tag on the page. And because it never reads the page, it cannot see a noindex tag either. The status is listed as a reason for non-indexing, so for most sites it is informational: Google itself notes that URLs blocked by robots.txt are probably blocked on purpose.

The problem starts when the list contains pages you want on Google: product pages, articles, category pages, or a whole site after a migration. In that case the block is a direct cause of a website not showing up on Google, and it is one of the fastest technical issues to fix.

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

The second status looks contradictory, and it is the one that worries site owners most. Google's introduction to robots.txt explains it: robots.txt is not a mechanism for keeping a page out of Google. If other pages link to a disallowed URL, Google can still index the URL itself, without crawling it. The result then shows the address with no description, because Google never read the text.

StatusCrawled by Google?In the index?Report categoryUsual fix
Blocked by robots.txtNoNoReason page not indexedNothing if deliberate; edit the rule if the page matters
Indexed, though blocked by robots.txtNoYes, URL only, usually without descriptionWarning (indexed pages)Unblock it if you want it in Google; unblock and add noindex if you do not

The key is to decide first what you want for each URL: indexed or not indexed. Robots.txt answers a different question (crawled or not crawled), and mixing the two is the source of most errors.

Watch out

Never block a page in robots.txt and add noindex at the same time. Google's documentation on blocking indexing with noindex is explicit: for the directive to work, the page must not be blocked by robots.txt. Otherwise Googlebot never sees the tag.

Why are your pages blocked by robots.txt?

Most accidental blocks come from a handful of causes. Check them in this order:

  • A staging rule pushed to production. Disallow: / protects a test site, then ships with the launch and blocks everything.
  • A CMS setting. WordPress has a "Discourage search engines from indexing this site" option; other platforms have equivalent toggles that edit robots.txt or add headers.
  • A rule broader than intended. Disallow: /p blocks /products/ and /pricing/ as well as /p/. Robots.txt rules match the start of the path.
  • Wildcards. * matches any sequence of characters and $ marks the end of a URL. Disallow: /*? blocks every URL with a parameter, which can include paginated or filtered pages you want indexed.
  • Blocked resources. Blocking /assets/ or /wp-includes/ hides the CSS and JavaScript Google needs to render the page, which degrades how it understands your content.
  • A migration. Paths change, the old robots.txt stays, or the new host serves its own default file.
  • The wrong host. Each subdomain and protocol has its own file: rules on www.example.com do not apply to shop.example.com.

Remember that Google follows the most specific rule (the longest matching path), and when an Allow and a Disallow are equally specific, the least restrictive one wins. A targeted Allow: /blog/ can therefore reopen a folder under a broader block.

How to fix "Blocked by robots.txt" step by step

1. Export the affected URLs

In Google Search Console, open Indexing, then Pages, and click the "Blocked by robots.txt" row. Export the list and sort it by folder. You will usually see a pattern within a minute: one directory, one parameter, one subdomain.

2. Separate deliberate blocks from mistakes

Mark each pattern as "keep blocked" or "should be on Google". Carts, checkouts, account pages, internal search results and admin areas belong in the first group. Anything that answers a search query, earns links or appears in your XML sitemap belongs in the second. A URL that is both in the sitemap and blocked is a contradiction to resolve.

3. Find the rule that matches

Open the URL Inspection tool on one example URL: it states whether crawling is allowed. Then read the live file, or paste the URL into our free robots.txt checker to see which line blocks it and for which user agent.

4. Edit the file

Remove or narrow the rule, or add a more specific Allow. Keep the change minimal and test it against both a URL you want to unblock and a URL that must stay blocked. If the file is a mess, rebuild a clean one with our robots.txt generator and compare before publishing.

5. Make Google read the new file

Google generally caches robots.txt for up to 24 hours, according to its robots.txt specification. To speed things up, open Settings, then the robots.txt report in Search Console (available for domain-level properties), and use "Request a recrawl" for the file. Then request indexing for your most important unblocked URLs in URL Inspection.

6. Validate and monitor

Click "Validate fix" on the issue page. Validation can take several days to a few weeks, and new URLs are checked as Google recrawls them. Our guide to Google indexing covers what happens after the crawl, when Google decides whether a page is worth keeping.

Tip

Before pushing a new robots.txt live, test a short list of ten key URLs (home, a category, a product, an article, the sitemap URL) against it. One copy-paste error in a Disallow line can block a whole site, and the cost appears in your traffic within days.

How to fix "Indexed, though blocked by robots.txt"

The fix depends on what you want for the page:

  1. You want the page on Google. Remove the block. Google will crawl the page, read its content and show a normal result with a title and description.
  2. You do not want the page on Google. Remove the block too, then add <meta name="robots" content="noindex"> in the head, or an X-Robots-Tag: noindex HTTP header for PDFs and other files. Once Google has recrawled the page and dropped it, you may block it again if crawl volume matters, though most sites never need to. Our noindex definition explains the options.
  3. The page should not exist publicly. Protect it with a password or remove it (404 or 410). Neither robots.txt nor noindex is a security measure.

For faceted navigation with thousands of filter URLs, a robots.txt block can remain the right tool to save crawl budget. The "Indexed, though blocked" warning on a few of those URLs is then acceptable, as long as canonical versions of your categories are crawlable and indexed.

How to check that the fix worked

Three signals confirm a successful fix. URL Inspection on the live URL shows "Crawl allowed: Yes". The count of blocked pages in the Page indexing report falls over the following weeks. And the unblocked pages start to collect impressions in the Performance report. A quick pass with our indexability checker also catches the other blockers that often travel with robots.txt mistakes: a stray noindex, a wrong canonical or a redirect.

Monitoring matters because these errors come back. A theme update, a plugin or a deployment script can rewrite robots.txt without anyone noticing. Watching pages whose clicks and impressions drop suddenly is the fastest early warning.

Sorank GEO and SEO dashboard listing the pages whose Google clicks and impressions are rising or falling
Pages gaining or losing Google traffic in the Sorank GEO and SEO dashboard: a sudden drop on a group of URLs is often the first sign of a crawl block.

The Sorank GEO and SEO dashboard connects to Search Console and shows those rising and falling pages in one view, so a block introduced by a deployment shows up as a cluster of declining URLs rather than as a slow, unexplained loss.

Robots.txt, AI crawlers and GEO

Robots.txt now has a second audience: the crawlers of AI assistants. OpenAI, Anthropic, Perplexity and Google each publish user agents (GPTBot and OAI-SearchBot, ClaudeBot, PerplexityBot, Google-Extended) that respect robots.txt. A rule meant for one of them, or a blanket User-agent: * block, decides whether ChatGPT, Claude or Perplexity can read your pages when they search the web to build an answer.

The same reasoning applies as with Google: decide per bot what you want. Blocking training crawlers while allowing search crawlers is a common compromise, and our guide to robots.txt for AI crawlers lists the user agents and the rules for each. The glossary entry on AI crawlers explains which bot does what.

Note

A page AI assistants cannot crawl can still be mentioned from third-party sources, but it can rarely be quoted directly. Our study of the sources AI platforms cite shows how much citations depend on pages the assistants can read.

To see the effect of these choices, track the prompts that matter to your business. AI mention tracking in Sorank shows whether ChatGPT, Gemini or Claude cite your site, and which competitors they cite instead.

The rule to remember

Robots.txt decides what crawlers may read; noindex decides what search results may show. Keep blocks for areas with no search value, never block a page you want indexed or de-indexed, and check the Page indexing report after every migration or deployment. Most "blocked by robots.txt" problems are fixed in minutes once the matching rule is found, and Sorank's Search Console dashboard helps you catch the next one before it costs traffic.

Frequently asked questions

How long does it take Google to recrawl a page after unblocking it in robots.txt?

Google generally refreshes its cached copy of robots.txt within 24 hours, and you can request a recrawl of the file in the Search Console robots.txt report. Recrawling the unblocked pages themselves can take from a few days to a few weeks. Requesting indexing in URL Inspection helps for a handful of important URLs.

Should I worry about the "Blocked by robots.txt" status?

Only if the list contains pages you want to appear on Google. Blocks on carts, account pages, admin areas or internal search results are normal and need no action. Export the list, group it by folder and check whether any valuable section appears.

Can a page blocked by robots.txt still rank?

Its URL can be indexed if other pages link to it, but Google cannot read its content, so the result usually appears without a description and rarely ranks for anything meaningful. If you want the page to rank, unblock it so Google can crawl and evaluate it.

Free SEO & GEO audit

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Our free SEO tools

See all our free tools

Get a free audit of your site

THEY TRIED SORANK BEFORE YOU

Testimonials from ambitious founders

Organic growthE-commerce

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.fr
Organic growthSoftware

0 to 5000 clients in 8 months

Thibault BMsorank.com
Organic growthLeisure and aviation

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.com
Organic growthLead generation for installers

x98 clicks in 2 months

LeadBolt Agencyleadbolt.online
Organic growthMusic software

x55 clicks in 5 months

Valentin Cordiertiger-sounds.com