Skip to content
FunnelGuard

Fix guide by FunnelsGuard

robots.txt Disallow: / blocking your whole site: how to fix it

SEO-001High impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

robots.txt is a plain text file at the root of your domain (for example https://example.com/robots.txt). It tells crawlers, such as Googlebot, which URLs they may fetch. Developers often block everything on a staging or test copy so it does not show up in search results.

The problem starts when that file is copied to the live site during launch, a migration or a theme or site restore. The rule Disallow: / means every path starting with a slash, which is every page. Your site stays online for visitors, but crawlers are told to stay away.

The leftover staging ruletext
User-agent: *
Disallow: /

Why it costs you leads or sales

Organic search, and answers from AI search tools that rely on crawled content, can only send people to pages that crawlers can read. When the whole site is blocked, new pages are not discovered and updated pages are not refreshed. Over days and weeks, listings can lose their descriptions or drop out, and traffic to your landing pages, product pages and forms falls.

The damage is silent. The site loads, forms work and paid ads still run, so nothing looks broken until organic leads dry up.

How a staging rule hides your funnel
  1. LaunchStaging robots.txt copied to live site
  2. CrawlGooglebot reads Disallow: / and stops
  3. Search resultsPages stop ranking or lose snippets
  4. VisitFewer organic visitors arrive
  5. Lead or saleFewer form fills and orders

The break happens before a visitor ever arrives.

Organic visits after launch with the block in placeExample numbers
Organic visits after launch with the block in place (example)Week 0: 1,000 visits per week; Week 1: 950 visits per week; Week 2: 700 visits per week; Week 3: 450 visits per week; Week 4: 300 visits per week03837671,000950700450300Week 0Week 1Week 2Week 3Week 4visits per week

Example: illustrative numbers showing organic visits sliding after a staging robots.txt goes live in week 1.

How to check if your site has it

Check your live robots.txt
  1. Open the file in a browser

    Go to https://yourdomain.com/robots.txt. Check the exact host people use, with and without www.

  2. Look for Disallow: /

    A line that is just a slash, under User-agent: * or User-agent: Googlebot, blocks everything. Disallow: with nothing after it blocks nothing.

  3. Test with Search Console

    In Google Search Console, open Settings, then the robots.txt report, to see the file Google fetched and any problems. Use the URL Inspection tool on your home page: it shows whether crawling is allowed.

  4. Check the Pages report

    In Indexing, then Pages, look for the reason 'Blocked by robots.txt' with a large number of URLs.

  5. Check from the command line

    Run the command below and read the output.

Fetch robots.txt and flag a full blockbash
curl -s https://example.com/robots.txt | grep -nE '^(User-agent|Disallow):'

How to fix it

The goal is a live robots.txt that allows crawling of your public pages. A safe minimal version is shown below. Keep any specific rules you actually need, such as blocking cart or admin paths, and add your sitemap URL.

Allow-all robots.txt with a sitemaptext
User-agent: *
Disallow:

Sitemap: https://example.com/sitemap.xml
Remove the block on your platform
  1. Turn off the search engine setting

    Go to Settings, then Reading, and untick 'Discourage search engines from indexing this site'. Save. WordPress then serves a normal virtual robots.txt.

  2. Check for a physical file or SEO plugin

    If a real robots.txt file exists in the site root, edit or delete it by SFTP or your host's file manager. Plugins such as Yoast SEO or Rank Math can also edit it in their tools or file editor screens.

  3. Clear caches

    Purge your caching plugin and CDN so the new file is served.

After the file is fixed
  1. Ask Google to refetch

    In Search Console, open Settings, then the robots.txt report, and request a recrawl of the file.

  2. Submit your sitemap

    In Sitemaps, submit your sitemap URL again.

  3. Inspect key pages

    Use URL Inspection on your home page and top landing pages, then choose Request indexing.

How to confirm it's fixed

Fix confirmation
  • The live /robots.txt on every host version (www, non-www, https) shows no Disallow: / under User-agent: *
  • Search Console's robots.txt report shows the new file as fetched
  • URL Inspection says crawling is allowed for your home page and main landing pages
  • The 'Blocked by robots.txt' count in the Pages report starts to fall
  • No noindex meta tag or X-Robots-Tag header is left over on live pages

Recovery is not instant. Google needs to recrawl your pages, which can take days or longer on big sites.

How to prevent it happening again

Launch and release habits
  • Add 'check live robots.txt' to your launch and migration checklist
  • Never copy robots.txt between environments; generate it per environment
  • Protect staging with a password or IP allowlist instead of relying on robots.txt alone
  • Set a Search Console email alert and review the Pages report after every major release
  • Add a simple scheduled script or uptime tool that fetches /robots.txt and alerts if it contains Disallow: /
Simple check for a CI job or cronbash
if curl -s https://example.com/robots.txt | tr -d '\r' | grep -qE '^Disallow:[[:space:]]*/[[:space:]]*$'; then
  echo "robots.txt blocks the whole site"; exit 1
fi

How FunnelGuard handles this

FunnelGuard does not check for this yet. A robots.txt check is a possible future addition. Today, its discovery step reads robots.txt only to find sitemaps, not to judge whether your site is blocked.

What FunnelGuard does cover nearby is the journey after a visitor arrives: it runs your lead forms, checkouts and booking or chat buttons on a schedule, checks the tracking hits sent to ad and analytics platforms, and confirms test leads reach your inbox and CRM. That helps you notice if a launch or migration broke the conversion path, but it will not tell you search engines are blocked.

To watch for this issue, use the Search Console robots.txt report and Pages report, plus the scheduled script above or any uptime tool that can alert on page content. The free FunnelGuard plan (1 site, 2 journeys, daily checks, no card) is a way to monitor your funnels alongside these checks.

Questions people ask

Why is my site not showing on Google after launch?

A common cause is a staging robots.txt with Disallow: / that went live with the site. Open yourdomain.com/robots.txt and check. Also look for a leftover noindex tag, a password page or a WordPress 'Discourage search engines' setting.

What does Disallow: / mean in robots.txt?

It tells the crawlers named in the User-agent line not to fetch any URL on the site, because every path begins with a slash. Under User-agent: * it applies to all compliant crawlers.

How do I remove Disallow: / from robots.txt?

Edit the live robots.txt and delete the line, or change it to an empty Disallow:. On WordPress, Shopify, Webflow and Wix this is done in settings or an editor rather than a file. Then request a recrawl in Search Console.

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

Google usually refetches robots.txt within about a day, but crawling and reindexing your pages can take days or weeks. You can speed it up by submitting your sitemap and requesting indexing for key pages.

Does robots.txt Disallow remove pages from Google?

Not directly. It stops crawling, so Google cannot refresh the page, and the URL may still be listed without a description. Pages can lose visibility over time, which is why a full block hurts.

Why does Search Console say 'Blocked by robots.txt'?

Googlebot found a rule in your robots.txt that matches the URL. If many pages show this, check for a broad rule like Disallow: /. If only a few do, a narrower rule is likely the cause.

Can I block staging without risking the live site?

Yes. Protect staging with a password or IP allowlist, and keep robots.txt separate per environment. Do not copy files from staging to production during deploys.

Does FunnelGuard detect a robots.txt that blocks my whole site?

No, not yet. It is a possible future check. FunnelGuard currently reads robots.txt only to find sitemaps, so use Search Console and a scheduled script to watch for it.

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.