Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Blocked by robots.txt in Search Console: how to find and fix it

SEO-286High impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

The robots.txt file sits at yourdomain.com/robots.txt. It gives crawlers (such as Googlebot) rules about which paths they may visit. A line like Disallow: / or Disallow: /products/ tells them to stay out.

In Google Search Console, the Page indexing report (under Indexing > Pages) lists the reason Blocked by robots.txt for URLs Google found but was not allowed to crawl. Google cannot see the content, so it usually cannot rank the page properly.

Why it costs you leads or sales

If Google cannot crawl a page, it cannot read its content, so the page rarely ranks for the words people search. A blocked service page, product page or lead-generation landing page means no organic visitors reach it. AI search tools that rely on search indexes may also miss it.

A common cause is a staging rule (Disallow: /) that was carried over to the live site at launch. It can hide a whole site for weeks before anyone notices.

Where a robots.txt block cuts the funnel
  1. Google finds URLVia sitemap or links
  2. Reads robots.txtDisallow rule matches
  3. Page crawled and rankedNot possible
  4. Visitor from searchNo clicks
  5. Lead or saleNever starts

The block happens before the visitor ever arrives, so later steps never get traffic.

How to check if your site has it

Find blocked URLs and the rule behind them
  1. Open the Page indexing report

    In Search Console choose Indexing > Pages. Scroll to 'Why pages aren't indexed' and click 'Blocked by robots.txt'.

  2. Review the URL list

    Check whether any are pages you want to rank: services, products, articles, landing pages.

  3. Open your robots.txt

    Visit yourdomain.com/robots.txt in a browser and read the Disallow lines.

  4. Test a specific URL

    Use the URL Inspection tool on one blocked URL. It shows 'Crawl allowed? No: blocked by robots.txt'. Also try the robots.txt report under Settings > Crawling, which shows the file Google last fetched.

  5. Match URL to rule

    Find the Disallow line whose path is the start of the URL. Remember * and $ wildcards, and that rules are case sensitive.

Common robots.txt lines and what they do
LineEffect
Disallow: /Blocks the whole site
Disallow: /blogBlocks every path starting with /blog, including /blog-tips
Disallow: /*?Blocks every URL with a query string
Disallow:Blocks nothing (empty value)
Allow: /blog/Re-allows a path inside a blocked area

How to fix it

Decide first whether each blocked URL should be in search. If yes, remove or narrow the rule. If no, leave it blocked. How you edit the file depends on your platform.

Edit robots.txt by platform
  1. Check the visibility setting

    Go to Settings > Reading and untick 'Discourage search engines from indexing this site'. This setting makes WordPress output a blocking rule.

  2. Edit via your SEO plugin

    In Yoast SEO use Tools > File editor; in Rank Math use General Settings > Edit robots.txt. Otherwise edit the physical robots.txt file in your site root over SFTP.

  3. Remove the offending Disallow line

    Save, then reload /robots.txt to confirm the change.

Example of a safe robots.txttext
User-agent: *
Disallow: /cart
Disallow: /checkout
Disallow: /search
Allow: /

Sitemap: https://www.example.com/sitemap.xml

How to confirm it's fixed

Verify and ask Google to recheck
  1. Reload robots.txt

    Open yourdomain.com/robots.txt and confirm the rule is gone. Clear any cache or CDN copy.

  2. Inspect a URL live

    In URL Inspection, enter the page and click Test live URL. It should say crawl allowed.

  3. Validate the fix

    Open the Blocked by robots.txt issue in the Page indexing report and click Validate fix.

  4. Request indexing for key pages

    Use Request indexing in URL Inspection for your most important pages. Validation can take days to a few weeks.

How to prevent it happening again

Keep robots.txt safe
  • Add a launch checklist step: open /robots.txt on the live site after every go-live or migration.
  • Keep staging and live robots.txt files separate in your deploy process.
  • Review the Page indexing report monthly.
  • Keep Search Console email notifications on.
  • Record who may edit robots.txt and why each Disallow rule exists.
  • Re-check after theme, plugin or platform changes.

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs your customer journeys (forms, checkouts, booking and chat buttons), tracking hits and lead delivery on a schedule. It does not read your robots.txt or the Search Console Page indexing report.

The kind of tool that fits is Google Search Console (with its email notifications) together with an SEO crawler or site-audit tool that tests URLs against robots.txt. Use FunnelGuard alongside them to confirm that, once visitors do arrive, your forms and tracking work.

Questions people ask

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

It means a Disallow rule in your robots.txt file tells Googlebot not to crawl that URL. Google found the URL, for example through a sitemap or a link, but did not fetch the page. Because it cannot read the content, it usually cannot rank it well.

How do I fix 'Blocked by robots.txt' in the Page indexing report?

Open your robots.txt, find the Disallow line matching the blocked URLs and remove or narrow it. Then test the URL in URL Inspection and click Validate fix on the issue in the Page indexing report. Google then rechecks the pages.

Why is my whole site blocked by robots.txt?

The file probably contains Disallow: / under User-agent: *. Common causes are a staging rule copied to the live site, or WordPress's 'Discourage search engines from indexing this site' setting being ticked. Remove the rule or untick the setting.

Is 'Blocked by robots.txt' bad for SEO?

It is only bad when the blocked pages should rank. Blocking cart, checkout, admin and internal search pages is normal and healthy. Blocking service, product or content pages loses organic traffic.

Does robots.txt stop a page from appearing in Google?

Not completely. A blocked URL can still be listed if other pages link to it, usually without a description. To keep a page out of results, let Google crawl it and add a noindex tag, or put it behind a password.

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

Google usually refetches robots.txt within about a day. Revalidation of the affected pages in Search Console can take from a few days to a few weeks. Use Request indexing for your most important URLs.

Can I edit robots.txt on Shopify or Squarespace?

On Shopify you can customise it by adding a robots.txt.liquid template in your theme. Squarespace generates the file automatically and does not let you edit it, so you need to adjust page settings or contact support.

Does FunnelGuard check robots.txt?

No. FunnelGuard monitors customer journeys, tracking hits and lead delivery, not search indexing. Use Google Search Console and an SEO crawler for robots.txt problems.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.