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.
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.
- LaunchStaging robots.txt copied to live site
- CrawlGooglebot reads Disallow: / and stops
- Search resultsPages stop ranking or lose snippets
- VisitFewer organic visitors arrive
- Lead or saleFewer form fills and orders
The break happens before a visitor ever arrives.
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
Open the file in a browser
Go to https://yourdomain.com/robots.txt. Check the exact host people use, with and without www.
Look for Disallow: /
A line that is just a slash, under
User-agent: *orUser-agent: Googlebot, blocks everything.Disallow:with nothing after it blocks nothing.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.
Check the Pages report
In Indexing, then Pages, look for the reason 'Blocked by robots.txt' with a large number of URLs.
Check from the command line
Run the command below and read the output.
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.
User-agent: *
Disallow:
Sitemap: https://example.com/sitemap.xmlTurn 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.
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.
Clear caches
Purge your caching plugin and CDN so the new file is served.
Check for a custom template
Shopify generates robots.txt itself. In the theme code editor, look for a
robots.txt.liquidtemplate under Templates.Remove the blanket rule
Delete the
Disallow: /line, or delete the template to return to the default file.Check password protection
In Online Store, then Preferences, make sure the storefront password is off. A password page also stops crawlers reaching your store.
Open SEO settings
Go to Site settings, then SEO, and find the robots.txt field.
Replace the contents
Remove
Disallow: /, add the allow-all version, and save.Check indexing and publish
Make sure the 'Disable Webflow subdomain indexing' option is not confusing your results, then publish to your live domain.
Open the robots.txt editor
In the dashboard go to Marketing & SEO, then SEO tools, then Robots.txt Editor.
Remove the Disallow rule
Delete the blanket rule, save, and check the live file.
Check SEO visibility settings
Squarespace builds robots.txt for you. In Settings, then Developer tools or SEO (the name varies by version), make sure search engine indexing is not hidden.
Check site password
Remove any site-wide password under Settings, then Site availability.
Check site and funnel SEO settings
In the funnel or website settings, look for a custom robots.txt or an option that hides pages from search engines, and turn it off for pages you want found.
Check the custom domain
Open your live domain's /robots.txt to confirm what is served.
Edit the file in the web root
Open
robots.txtin the document root of the live site and replace the rule with the allow-all version.Fix your deploy process
If the file is generated per environment, make sure production uses the production version, not the staging one. Also check server config for an
X-Robots-Tag: noindexheader.
Ask Google to refetch
In Search Console, open Settings, then the robots.txt report, and request a recrawl of the file.
Submit your sitemap
In Sitemaps, submit your sitemap URL again.
Inspect key pages
Use URL Inspection on your home page and top landing pages, then choose Request indexing.
How to confirm it's fixed
- 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
noindexmeta 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
- 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: /
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
fiHow 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.
Related issues
- SEO-002robots.txt blocks a money page or landing page directoryFix guide
- SEO-005robots.txt returns 404 or HTML instead of plain textFix guide
- SEO-006robots.txt syntax errors or unsupported directives (noindex in robots.txt)Fix guide
- SEO-010robots.txt missing Sitemap: lineFix guide
- SEO-011Different robots.txt on www and non-www or http and https hostsFix guide
- SEO-012WAF or CDN bot protection blocks or challenges GooglebotFix guide