Blocked by robots.txt: What It Means and How to Fix It

"Blocked by robots.txt" in Search Console means a Disallow rule in your robots.txt stops Googlebot from crawling the page. If you want the page in Google, find the rule and remove or narrow it. If you do not, the status is harmless.

In this guide
  1. 01Is the block intentional?
  2. 02Find the rule that blocks the page
  3. 03The most common culprits
  4. 04How to fix it
  5. 05"Indexed, though blocked by robots.txt"
  6. 06How Vistobi helps
  7. 07Takeaways

"Blocked by robots.txt" in the Pages report of Google Search Console means Google found the URL, but a rule in your robots.txt file told Googlebot not to crawl it. Google respects the rule, so it never reads the page.

That is either exactly what you wanted, or one of the most expensive mistakes a website can make. The first job is to tell which one it is.

Is the block intentional?

Go through the example URLs in the report and sort them:

URL typeUsually blocked on purpose?What to do
Cart, checkout, my account, loginYesNothing, the status is fine
Internal search results (?s=, /search/)YesNothing
Filter and sort parameters in a shopOftenFine, as long as the main category pages are crawlable
Product, category, service or blog pagesNoFind the rule and fix it
The home page or every URL of the siteNoUrgent: a site-wide block

If only private and duplicate pages are listed, you can ignore the report. Google shows it for information, it is not a penalty.

Find the rule that blocks the page

  1. Open yourwebsite.com/robots.txt in your browser and read the Disallow lines.
  2. Or paste the URL into our free robots.txt checker. It applies Google's matching rules and shows the exact line that blocks the page.
  3. In Search Console, URL Inspection on the address also says "Blocked by robots.txt" under crawl status.

Google uses the most specific rule. Allow: /shop/ beats Disallow: / for /shop/ pages, because it is longer. A * matches any characters and a $ marks the end of the URL, so Disallow: /*.pdf$ blocks every PDF but nothing else.

The most common culprits

  • Disallow: / left over from development. Staging sites block everything, and the rule gets copied to the live site at launch. WordPress has a related switch: Settings > Reading > Discourage search engines from indexing this site. Make sure it is off.
  • A rule that is broader than intended. Disallow: /p blocks /privacy, but also /products/ and /pricing/. Add the closing slash: Disallow: /private/.
  • Blocked theme and plugin folders. Rules such as Disallow: /wp-content/ stop Google from loading your CSS and JavaScript, so it cannot render the page properly.
  • Plugins and hosting templates. Some security, SEO and staging plugins write their own rules. If the file changed and nobody edited it, check those first.

A robots.txt file with one blocking rule that stops a crawler from reaching the pages behind it

How to fix it

  1. Edit robots.txt. In WordPress, Yoast SEO (Tools > File editor) and Rank Math (General Settings > Edit robots.txt) can edit it. In Shopify, edit the robots.txt.liquid template.
  2. Remove the rule, or narrow it so it only matches the pages you really want to hide.
  3. Test the URL again in the robots.txt checker.
  4. In Search Console, open the issue in the Pages report and click Validate fix. Google rechecks the URLs over the following days or weeks.

"Indexed, though blocked by robots.txt"

This is a different status. Google could not crawl the page, but it indexed the URL anyway because other pages link to it. It then shows in results without a proper description.

  • If the page should be in Google: remove the block, as above.
  • If it should not: allow crawling and add a noindex meta tag. This sounds backwards, but Google can only see noindex on a page it is allowed to read. robots.txt controls crawling, noindex controls indexing.

How Vistobi helps

  • Free, no account: the robots.txt checker tests any URL against your rules and also shows whether AI crawlers such as GPTBot and Google-Extended may read your site. The free SEO checker reads robots.txt together with titles, descriptions, headings, the sitemap and HTTPS.
  • In the 7-day free trial (no card needed): connect Google Search Console and get every fix in priority order with exact steps, re-checked after you change something.

Takeaways

  • "Blocked by robots.txt" means a Disallow rule stops Googlebot from crawling the URL.
  • Private, cart and search pages: fine. Products, services, articles or the home page: fix it.
  • The longest matching rule wins. A missing slash or a leftover Disallow: / causes most problems.
  • To keep a page out of Google, use noindex and let it be crawled.
  • If your sitemap is also failing, read Couldn't fetch sitemap. If the site does not appear at all, start with why your website is not showing on Google.

Frequently asked questions

Not always. Search Console lists it under pages that are not indexed, but for carts, accounts and internal search results it is the expected result. It is a problem only when pages you want in Google are blocked.

Google rereads robots.txt about once a day. After that, the page is crawled on Google's normal schedule. Requesting indexing in URL Inspection can speed up important pages.

No. robots.txt stops crawling, not indexing. To remove a page, let Google crawl it and add a noindex meta tag, or delete it so it returns 404 or 410.

About the author
Balint Somos
Balint Somos

Balint Somos is the founder and project lead of Somos Media. He has built websites and run SEO for more than ten years, and leads the development of Melini's international stores.

Back to all resources