"Blocked by robots.txt" means a rule in your robots.txt file told Googlebot not to crawl that URL, so Google could not read the page. If you meant to block it, no action is needed. If you want it in search results, remove or narrow the matching Disallow rule, then request a recrawl.
What does "Blocked by robots.txt" mean?
Robots.txt is a plain text file at the top level of your site that tells crawlers which URLs they may fetch. Google's own introduction to robots.txt says it is mainly for managing crawler traffic, and that it is not a mechanism for keeping a page out of Google.
In Search Console's Page indexing report, the status "Blocked by robots.txt" lists URLs Google found but was not allowed to crawl. The status is a fact about crawling, not a penalty. Whether it is a problem depends on one question: did you want that page in search?
Is it a problem? Start with the page, not the error
Sort every listed URL into one of two groups.
- You wanted it blocked. Admin screens, internal search results, cart steps and filtered duplicates are normal entries. Leave them.
- You wanted it found. A product page, a blog post or a landing page on this list is a real bug. Something in robots.txt is stopping the crawl, and the page cannot rank for its content until that changes.
Most small sites find a short list of intended blocks and a handful of surprises. Spend your time on the surprises.
How to find the rule that is blocking a URL
- Open
yourdomain.com/robots.txtin a browser and read the whole file. Check the host too: a subdomain has its own file, and Google's robots.txt specification says rules apply only to the exact host, protocol and port that serves the file. - In Search Console, open the URL Inspection tool for the blocked URL. It reports whether crawling is allowed and, for the live test, whether robots.txt blocked the fetch.
- Look for the rule whose path matches the start of the URL. A rule like
Disallow: /blogalso blocks/blog-tips/because matching is by prefix. - Check for a blanket
Disallow: /left over from a staging site. It is the most common cause of a whole site going quiet after a launch.
Google applies the most specific rule, meaning the one with the longest matching path. When rules conflict, the less restrictive one wins. That lets you carve out an exception without deleting a broad rule:
| Goal | Rules | Result |
|---|---|---|
| Block a folder, allow one page | Disallow: /resources/ plus Allow: /resources/guide | Only /resources/guide can be crawled |
| Block a folder only | Disallow: /private/ | Everything under /private/ is blocked |
| Allow everything | Disallow: (empty) | No restrictions |
How to fix it when you want the page indexed
- Edit robots.txt to remove or narrow the rule. Prefer a narrow Allow exception over deleting a rule you need elsewhere.
- Save the file and load it in a browser to confirm the live version changed.
- Run URL Inspection on the affected URL and use the live test to confirm crawling is now allowed.
- Click "Request indexing" for the few pages that matter most. For the rest, wait.
- Return to the Page indexing report and use the validate option on the issue.
Google generally caches robots.txt for up to 24 hours, so a fix can take a day to be noticed. If the page then lands under "crawled, currently not indexed", the block is gone and the problem has changed: see crawled, currently not indexed.
The trap: "Indexed, though blocked by robots.txt"
This is a separate, related status, and it is a warning. Google's Page indexing report help explains that the page was indexed despite being blocked, because Google can index a URL from information on pages that link to it. It adds that robots.txt is not the correct way to avoid being indexed, and that snippets will likely be very limited.
The fix depends on what you want:
- Keep it out of search: remove the robots.txt block and add a noindex tag. This is the reverse of what most people try first. Google has to be allowed to crawl the page to see the noindex.
- Keep it in search: unblock it in robots.txt.
The full comparison is in robots.txt vs noindex.
Common mistakes that create this error
- Blocking CSS or JavaScript folders. Google may not render the page properly, which hides content from it. Our guide to JavaScript SEO covers why.
- Using robots.txt to hide private pages. The file is public, so it also advertises the paths you want hidden. Use a login instead.
- Copying a robots.txt from another site. Paths that made sense there can block your best content here. For a sane starting point, see what a robots.txt file should look like.
- Forgetting AI crawlers. The same file controls ChatGPT and Perplexity access. A rule meant for one bot can catch another. See allowing ChatGPT and Perplexity in robots.txt.
A five-minute weekly check
Open the Page indexing report, expand "Blocked by robots.txt", and scan the example URLs. If every one is something you meant to block, you are done. If a URL surprises you, trace the rule before it costs you a month of traffic. More checks like this live in the technical SEO topic.
Frequently Asked Questions
Does "blocked by robots.txt" hurt my rankings?
Only for the pages that are blocked. A blocked URL cannot be read, so it will not rank for its content, but the rest of your site is unaffected.
Will removing the block get my page indexed right away?
No. Googlebot must recrawl robots.txt, then the page, and then decide the page is worth indexing. Expect days, not minutes.
Why is a blocked page still showing in Google?
Other pages link to it, so Google knows the URL exists. It shows with little or no description because it could not read the page.
Should I use noindex and Disallow together?
Not on the same URL. Disallow stops Google from seeing the noindex tag, so the noindex does nothing.
Do I need to fix every blocked URL in the report?
No. Only fix the ones you want in search. Intentional blocks are the file doing its job.