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.
- Google finds URLVia sitemap or links
- Reads robots.txtDisallow rule matches
- Page crawled and rankedNot possible
- Visitor from searchNo clicks
- 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
Open the Page indexing report
In Search Console choose Indexing > Pages. Scroll to 'Why pages aren't indexed' and click 'Blocked by robots.txt'.
Review the URL list
Check whether any are pages you want to rank: services, products, articles, landing pages.
Open your robots.txt
Visit yourdomain.com/robots.txt in a browser and read the Disallow lines.
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.
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.
| Line | Effect |
|---|---|
| Disallow: / | Blocks the whole site |
| Disallow: /blog | Blocks 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.
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.
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.
Remove the offending Disallow line
Save, then reload /robots.txt to confirm the change.
Open the theme code
Go to Online Store > Themes > Edit code.
Use robots.txt.liquid
Shopify generates a default file. To change it, add a robots.txt.liquid template and adjust the rules. Keep the default rules unless you know why to change them.
Save and check
Reload yourstore.com/robots.txt to confirm.
Open site settings
Go to Site settings > SEO and find the robots.txt field.
Remove the block
Delete the Disallow line, save and publish the site. Also check the 'Disable Webflow subdomain indexing' option is not mixed up with your custom domain.
Open the robots.txt editor
Go to Marketing & SEO > SEO tools (or SEO Settings) > Robots.txt Editor.
Fix the rule
Remove the Disallow line for the pages you want indexed, save and check /robots.txt.
Know the limits
Squarespace generates robots.txt automatically and you cannot edit it directly.
Check page and site settings
Make sure the pages are not hidden by search engine settings, password protection or 'Disable' site visibility. If a rule you need changed is built in, contact Squarespace support.
Edit the file in your web root
Open robots.txt in the root folder or the route that serves it, and remove or narrow the rule.
Check build and deploy scripts
Make sure your deploy does not copy a staging robots.txt over the live one.
User-agent: *
Disallow: /cart
Disallow: /checkout
Disallow: /search
Allow: /
Sitemap: https://www.example.com/sitemap.xmlHow to confirm it's fixed
Reload robots.txt
Open yourdomain.com/robots.txt and confirm the rule is gone. Clear any cache or CDN copy.
Inspect a URL live
In URL Inspection, enter the page and click Test live URL. It should say crawl allowed.
Validate the fix
Open the Blocked by robots.txt issue in the Page indexing report and click Validate fix.
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
- 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.
Related issues
- SEO-284Coverage spike in 'Excluded by noindex'Fix guide
- SEO-282Pages 'Crawled - currently not indexed' risingFix guide
- SEO-283Pages 'Discovered - currently not indexed'Fix guide
- SEO-287Duplicate without user-selected canonicalFix guide
- SEO-279Site not verified in Search ConsoleFix guide
- SEO-296Crawl stats show host problemsFix guide