Technical
Warning

Page blocked by robots.txt

This error appears when your robots.txt file prevents crawling of a URL that looks like a regular content page. Here's what it means and how to fix it depending on whether or not you want that page to appear on Google.

What this error means

The robots.txt is a text file at the root of your domain that tells Google and other search engines which URLs they can crawl. Each Disallow rule closes off a path, and everything that starts with that path is left out of crawling. Crawling and indexing are different steps. Crawling means downloading the page to read it, and indexing means storing it so it can be shown in search results. Ruk Audit flags the URLs that its crawler couldn't visit because of a Disallow rule and that look like content pages, such as an article, a product page or a service page. The homepage and the sitemap aren't included, because they have their own warning. Neither are URLs with parameters, such as filters or sorting, nor system paths and login, cart, checkout or my account pages, which are usually blocked on purpose. If you have a group for Googlebot or Bingbot that lets that URL through, it doesn't flag it either, and if the file blocks the whole site, you'll see the "Whole site blocked by robots.txt" error instead of this one. Robots.txt blocks crawling, but not indexing. If other pages link to that URL, Google may show it in search results without a description, because it knows the address but hasn't been able to read the content. And since it can't download it, it doesn't see a noindex tag you've added to it either. In Search Console this case appears as "Indexed, though blocked by robots.txt". This error usually shows up when a Disallow rule is broader than intended, when rules are left over from a staging version or a migration, or when a plugin adds blocks to the file without anyone reviewing them.

Why fixing a page blocked by robots.txt matters

Ruk Audit flags it as a warning because sometimes the block is intentional. If the page should rank, the block is costing you traffic. If it shouldn't, there's a better way to keep it out of Google, which you'll find in the steps.

Impact on SEO rankings

Google can't assess the content of a page it hasn't read, so it's unlikely to show it in searches on its topic, however much work you've put into that text.

Crawling and indexing obstacles

With the URL blocked, Google doesn't follow the links from it either. If it's a page that links to others on your website, such as a category or an article with internal links, those pages lose a route for Google to discover them.

Negative signals for site quality

Several blocked content pages are usually a sign of a robots.txt that nobody has reviewed in a long time. If those URLs are also in your sitemap or menu, you're giving Google contradictory instructions. You're asking it to take them into account while preventing it from reading them.

How to fix it step by step

If this error showed up in your audit, here are the steps to leave it behind.

Step 1

Find the rule that blocks each URL

Ruk Audit shows you all the affected pages in the "Blocked URL" column. Open your file at yourdomain.com/robots.txt and look for the Disallow rule whose path matches the start of each URL. For example, "Disallow: /blog" also blocks /blog-news, because the rule works by prefix.

Step 2

Decide whether the page should appear on Google

If it should rank, you need to adjust the rule. If the block is intentional and you don't mind the URL possibly showing up in search results, you can leave it as it is. If what you want is for it not to appear, remove the block and add a noindex tag. Blocking it and adding noindex at the same time doesn't work, because Google never gets to read the tag.

Step 3

Adjust the rule in your robots.txt

Delete the rule if it no longer makes sense, make it more specific or add an Allow rule for the path you want to open. In WordPress you can edit it from Yoast, under Tools and then File editor. In Rank Math it's in General Settings, with advanced mode turned on. Outside WordPress, or if the file was uploaded manually to the root and the plugin can't edit it, change it via FTP or from your hosting's file manager.

Step 4

Validate the change in Google Search Console

Paste the affected URL into URL Inspection and click "Test live URL". Under "Crawl allowed?" it should say yes. Once you've confirmed it, you can request indexing, although Google doesn't guarantee any timeframe. If the test still says crawling is blocked, open the robots.txt report in Search Console. There you can see which version of the file Google has and ask it to fetch it again. If Google still has the old version after that, check your server's or CDN's cache, which may be serving the previous file.

Does your site have this problem?

Audit your website for free and discover if this and other SEO errors are affecting your ranking.

Get a free audit. Over 3033 reports delivered.
Hey, wait a moment
To analyze a website, you first need to create an account in the application. Click the button below to go to the registration screen.
Create account