Skip to content
FunnelGuard

Fix guide by FunnelsGuard

robots.txt blocking a landing page directory: how to fix it

SEO-002High impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Your robots.txt file sits at the root of your domain (for example example.com/robots.txt). It tells crawlers such as Googlebot, Bingbot and AI search bots which URL paths they may fetch. A Disallow line blocks a path and everything under it.

This issue happens when a rule is broader than intended. Typical causes: a folder like /lp/, /offers/, /pricing/ or /services/ was blocked to hide test pages, a plugin or theme added a rule, or a short prefix such as Disallow: /p also matches /pricing, /plans and /product. Rules match from the start of the path, so a short prefix catches more than you expect.

Why it costs you leads or sales

If crawlers cannot fetch a page, Google cannot read its content, so it ranks poorly or only shows as a URL with no snippet. AI assistants that rely on search indexes or their own crawlers also cannot quote the page. Your best-converting pages are then invisible to people searching for exactly what you sell.

The damage is quiet. The page still loads for visitors, your forms work and your ads can still send traffic to it, so nothing looks broken. You only notice when organic traffic to those pages slowly fades.

Where the blocked landing page loses visitors
  1. Page publishedLanding page is live and loads fine
  2. Crawler requests itrobots.txt says Disallow for the directory
  3. Indexed with contentGoogle cannot read the page
  4. Ranks for searchesNo snippet, weak or no ranking
  5. Lead or saleOrganic visitors never arrive

The page works for people, but the crawler step fails, so the later steps never happen.

Organic visits to a landing directory after a bad ruleExample numbers
Organic visits to a landing directory after a bad rule (example)Week 0: 400 visits per week; Week 2: 380 visits per week; Week 4: 250 visits per week; Week 6: 120 visits per week; Week 8: 60 visits per week015330740038025012060Week 0Week 2Week 4Week 6Week 8visits per week

Example: illustrative numbers showing traffic fading over several weeks after a Disallow rule goes live.

How to check if your site has it

Check whether a key page is blocked
  1. Open your robots.txt

    Visit yourdomain.com/robots.txt in a browser and read every Disallow line. Compare each path with your landing page and money page URLs.

  2. Inspect the URL in Google Search Console

    Paste the page URL into the search bar at the top (URL Inspection). If it says 'Blocked by robots.txt' under Crawl allowed, you have the issue.

  3. Check the robots.txt report

    In Search Console go to Settings, then Crawling, then robots.txt. Confirm Google fetched the latest version of the file and has no errors.

  4. Check the Pages report

    Under Indexing, then Pages, look for the reason 'Blocked by robots.txt' or 'Indexed, though blocked by robots.txt' and open the example URLs.

  5. Crawl the site with a desktop crawler

    Tools such as Screaming Frog SEO Spider report URLs it could not crawl because of robots.txt, so you can list every affected page at once.

Common rules and what they accidentally block
RuleBlocksSafer alternative
Disallow: /lp/Every page under /lp/, including live campaign pagesDisallow only the test sub-folder, e.g. /lp/test/
Disallow: /p/pricing, /plans, /product and moreUse full paths such as /private/
Disallow: /*?Every URL with a query stringBlock only specific parameters, e.g. /*?sessionid=
Disallow: /services/services and /services-pricingAdd a trailing slash and be specific

How to fix it

The fix is the same everywhere: change the rule so it no longer matches the pages you want found. Where you edit robots.txt depends on your platform.

Edit robots.txt by platform
  1. Check the Search Engine Visibility setting

    Go to Settings, then Reading, and make sure 'Discourage search engines from indexing this site' is unticked.

  2. Edit via your SEO plugin

    In Yoast SEO use Tools, then File editor. In Rank Math use General Settings, then Edit robots.txt. Remove or narrow the offending Disallow line and save.

  3. Look for a physical file

    If a real robots.txt exists in the site root (via FTP or your host's file manager), it overrides the virtual one WordPress generates. Edit that file instead.

Before and after: narrow the rule instead of blocking the foldertext
# Before: blocks every landing page
User-agent: *
Disallow: /lp/

# After: blocks only the test pages
User-agent: *
Disallow: /lp/test/

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

How to confirm it's fixed

Confirm crawlers can reach the page
  1. Reload robots.txt

    Open yourdomain.com/robots.txt in a private window and check the old rule is gone. If not, clear your CDN or plugin cache.

  2. Re-test in URL Inspection

    Inspect the page, choose Test live URL and confirm Crawl allowed shows Yes.

  3. Request indexing

    Click Request indexing for your most important pages. For many pages, submit your sitemap instead.

  4. Watch the Pages report

    Over the next days and weeks, the 'Blocked by robots.txt' count for those URLs should fall as Google recrawls.

How to prevent it happening again

Keep robots.txt safe
  • Keep a copy of robots.txt in version control and review changes like code.
  • List your money page URLs and check each one against robots.txt after every release.
  • Use full, specific paths and trailing slashes instead of short prefixes.
  • Use noindex, not Disallow, to keep pages out of search.
  • Review the Search Console robots.txt report and Pages report monthly.
  • Re-check robots.txt after theme changes, plugin updates, migrations and new campaign folders.

How FunnelGuard handles this

FunnelGuard does not check robots.txt rules yet. A check that warns when a money page is blocked from crawlers is a possible future addition, but it is not available today.

What FunnelGuard does today is run your real customer journeys with a robot visitor on a schedule: lead forms, checkouts, and booking and chat buttons. It checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. That catches problems after a visitor arrives, not whether search engines may crawl the page.

To watch for this issue yourself, use the Search Console robots.txt and Pages reports, run a periodic crawl with a tool such as Screaming Frog, and keep robots.txt in version control so changes are reviewed. A free read-only FunnelGuard website audit is also available, though it does not replace these checks.

Landing directory before and after the fix

Blocked

  • Disallow: /lp/ in robots.txt
  • URL Inspection says Blocked by robots.txt
  • Pages show no snippet or are not indexed

Crawlable

  • Rule narrowed to /lp/test/
  • URL Inspection says Crawl allowed: Yes
  • Pages are indexed with a full snippet

Questions people ask

Why is my landing page blocked by robots.txt?

A Disallow rule in your robots.txt matches the page's URL path. It may be a folder rule like /lp/, a short prefix like /p that matches many paths, or a rule left by a plugin, theme or developer. Use URL Inspection in Search Console to see the page's status, then read your robots.txt to find the matching line.

How do I unblock a page in robots.txt?

Edit robots.txt and remove or narrow the Disallow line that matches the page. Save, publish and clear any cache. Then use URL Inspection in Google Search Console to test the live URL and request indexing.

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

Not fully. robots.txt stops crawling, but Google can still list a blocked URL, without a description, if other pages link to it. To keep a page out of results, leave it crawlable and add a noindex tag, or put it behind a password.

How can I tell which robots.txt rule blocks my URL?

Compare the URL path with each Disallow and Allow line in your file. Rules match from the start of the path, and the most specific matching rule wins in Google. A crawler such as Screaming Frog also shows which URLs it could not crawl because of robots.txt.

How long does Google take to crawl a page after I unblock it?

It varies from a few days to a few weeks. Google refreshes its copy of robots.txt regularly, and you can speed things up by requesting indexing in URL Inspection and submitting your sitemap. Important, frequently linked pages tend to be recrawled sooner.

Should I use Disallow or noindex to hide test landing pages?

Use noindex if you want the page crawlable but kept out of results, since Google must fetch the page to read the tag. Use Disallow only to reduce crawling of low-value areas. For truly private pages, use a password.

Can a robots.txt block affect AI search tools?

Yes. Many AI search and answer tools obey robots.txt for their own crawlers, and others rely on search indexes. If a page is blocked, it is less likely to be read or quoted. Check any rules that name specific bots as well as the rules under User-agent: *.

Does FunnelGuard check robots.txt?

No, not yet. FunnelGuard monitors journeys such as forms and checkouts, tracking hits and lead delivery. For robots.txt, use Google Search Console and a periodic site crawl.

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.