Pay Only After You Rank

100% USA-Based

30 Keywords In 30 Days

No Contract Required

why choose us?

Pay Only After You Rank

30 Keywords In 30 Days

100% USA-Based

No Contract Required

Robots.txt Blocking Google? How to Find and Fix It

A service page can look perfect, load quickly, and still bring in no search traffic because Google can’t crawl it. When robots.txt blocking Google is the cause, the problem often hides behind a small line of code that was added during a redesign, migration, or plugin update.

The good news is that you can test the issue with clear evidence instead of guessing. Start with the exact page that should appear in search, then work back to the rule that controls access.

Why a robots.txt block can cost your business leads

Robots.txt is a plain-text file that gives search crawlers instructions about which URLs they can request. Google uses Googlebot to discover and crawl web pages, as explained in Google’s Googlebot documentation.

For a small business, an accidental block can affect the pages that create calls and form fills. That could mean a service page, a location page, a pricing page, or an updated landing page after a redesign.

Crawling and indexing are separate actions

Crawling means Googlebot can request and read a URL. Indexing means Google may store the page and consider it for search results. A robots.txt directive controls crawling access, while other signals affect indexing.

Google’s crawling and indexing overview makes this distinction clear. A blocked URL might still appear in search if Google found it through links or an old sitemap. However, Google often can’t see the page content well enough to show a useful title or snippet.

That creates a frustrating situation: the URL exists in Google, yet it doesn’t rank for the service you sell.

Redesigns and staging settings cause common mistakes

Developers often block search bots while building a staging site. Trouble starts when the same setting moves to the live domain. A WordPress plugin, security tool, hosting migration, or copied robots.txt file can create the same issue.

Check crawl settings after every major site launch. If rankings dropped after new pages or a redesign went live, diagnosing indexing drops in Google Search Console can help you separate a crawl block from noindex tags, missing redirects, and sitemap errors.

How to test robots.txt blocking Google on one page

Start with the full URL you want Google to rank. Don’t test a similar page or the home page and assume the answer applies elsewhere. A single directory can be blocked while the rest of the site remains crawlable.

For example, a site may allow /services/ but disallow /locations/. That leaves location-based pages invisible to Googlebot even when the main service pages rank.

Inspect the version Google should index

Check every part of the address:

  • The hostname, such as www.example.com versus example.com
  • The protocol, HTTP or HTTPS
  • The path, including folders, capitals, and trailing slashes
  • Any subdomain, such as shop.example.com or locations.example.com

Robots.txt lives at the root of each host. Therefore, the file for www.example.com doesn’t automatically control example.com or a separate subdomain. A business with an old non-www domain, a new www site, and a booking subdomain may have several files to review.

Use the canonical URL when possible. If Google prefers a different version of the page, inspect both versions before changing anything.

Open the live robots.txt file

In a browser, open your site’s root robots.txt file by adding /robots.txt after the domain. You should see plain text, not a login page, redirect loop, server error, or a branded 404 page.

A missing robots.txt file usually doesn’t block Google. Google can crawl URLs by default when no valid disallow rule applies. Still, a file that returns an error can create crawl problems, especially after hosting changes.

Write down the page path you are testing. You need it when you compare the URL against rules such as Disallow: /locations/ or Disallow: /service-area/.

Use Search Console to confirm Google’s access

Your browser only shows the file currently available to visitors. Google Search Console shows whether Googlebot could access a specific URL and what Google saw during its crawl.

Open URL Inspection in the verified property that contains the page. Then paste the exact canonical URL, including the correct hostname and protocol.

Compare the indexed result with the live test

First, review the indexed inspection result. This reflects information from Google’s most recent crawl. Look for crawl status and any message that says “Blocked by robots.txt.”

Next, run the live test. The live result checks the URL’s current accessibility. That matters when you recently removed a disallow rule or changed a plugin setting.

If the live test says Google can access the page but the indexed result shows a block, Google may not have re-crawled it since the fix. If both results show a block, the current robots.txt rule still prevents access.

Google’s technical requirements for Search also cover other conditions that can stop a page from appearing. Crawl access is only the first technical checkpoint.

Check the site-level robots.txt report

Search Console’s robots.txt report helps you review the file Google found, its last crawl time, and file-level warnings. It is useful after a sitewide block, especially when multiple pages show the same exclusion.

The URL Inspection tool gives the stronger answer for one page. The robots.txt report helps you spot patterns across the domain and request a robots.txt recrawl when an urgent fix needs Google’s attention.

A robots.txt issue often appears in the Page indexing report as a group of excluded pages. Filter the list by directory. A spike in blocked URLs under one folder usually points to a broad rule rather than a page-level accident.

Read robots.txt rules without changing the wrong line

A robots.txt file can look harmless until you match a directive to the URL path. Google’s robots.txt guide explains the basic syntax, including the User-agent, Allow, and Disallow directives.

Rules apply to paths after the domain. A directive such as Disallow: /private/ blocks URLs that begin with that path. Meanwhile, Disallow: / tells the targeted crawler not to request any page on the site.

Check the rules Googlebot actually follows

Look first for a User-agent: Googlebot section, then review the broader User-agent: * section. A Googlebot-specific group can take precedence over general crawler instructions.

Pay close attention to these patterns:

  • Disallow: / can stop Googlebot from crawling the entire site.
  • Disallow: /services/ can block all pages within that directory.
  • Disallow: /*? can block URLs with parameters, which may be intentional but needs review.
  • Wildcards and end markers can catch more URLs than expected.

Google generally uses the most specific matching rule. That means a narrow rule can override a broad one when both apply. Don’t delete a whole file because you found one questionable directive. Identify the exact rule and the URLs it affects.

A single Disallow: / placed inside a Googlebot group can remove crawl access for every public page, even if other crawlers can still reach the site.

Watch for copied platform rules

Some CMS templates include valid blocks for admin pages, internal search results, staging folders, or duplicate filter URLs. Those rules may protect crawl budget without affecting your customer-facing pages.

Problems arise when a developer copies a restrictive template into the live site without updating it. Compare every blocked folder against your XML sitemap and menu structure. If an important service, city, or product page sits inside that folder, the rule needs attention.

Rule out noindex, canonicals, and server errors

Robots.txt isn’t the only reason a page fails to rank. Search Console can show several exclusion statuses, and each one has a different fix.

Search Console signalWhat it usually meansFirst action
Blocked by robots.txtGooglebot can’t request the URLFind the matching disallow rule
Excluded by noindexGoogle can crawl the page but is told not to index itRemove the noindex directive
Duplicate, Google chose different canonicalGoogle prefers another URLReview canonical and internal links
Crawled, currently not indexedGoogle saw the page but hasn’t indexed itReview quality, uniqueness, and relevance

Don’t block a page that needs a noindex check

A noindex meta tag or HTTP header tells Google not to include a page in search results. Google’s robots meta tag documentation covers the supported directives.

Google must crawl a page to see its noindex instruction. Therefore, blocking the same URL in robots.txt can prevent Google from processing the tag. If you need an already indexed page removed, allow crawling long enough for Googlebot to see the noindex directive.

This often affects old campaign pages, thin location pages, and retired service URLs.

Confirm Google’s selected canonical

A page may be crawlable and indexable, yet Google can rank another URL instead. URL Inspection shows both the user-declared canonical and Google’s selected canonical.

Check the page’s canonical tag, internal links, redirects, and sitemap entry. If the signals disagree, Google may choose a different version. Use this guide to resolve canonicalization issues in Search Console when Google indexes the wrong page.

Fix the block and verify the recovery

Edit robots.txt only after you identify the exact rule and affected URL. A rushed sitewide change can expose private areas or create duplicate crawling issues.

If a public page needs to rank, remove the matching Disallow directive or narrow it so it no longer includes that page path. Keep legitimate blocks for admin panels, private account pages, internal search results, and staging environments.

Make a controlled change

Follow a simple sequence after changing the file:

  1. Save the updated robots.txt file on the live production domain.
  2. Open the file in a browser and confirm the old directive is gone.
  3. Run URL Inspection’s live test for an affected page.
  4. Check the robots.txt report and request a recrawl if the issue is urgent.
  5. Monitor Page indexing and impressions over the following weeks.

If a plugin manages robots.txt, make the edit inside the plugin or its settings. Editing a server file alone may not work when the CMS generates the file dynamically.

Measure the effect on qualified traffic

Google still needs time to recrawl the page, process the change, and decide where it belongs in results. Avoid judging the repair after a few hours.

Instead, watch the affected URLs in Search Console. Check whether crawl access changes, pages return to the index, impressions recover, and qualified visitors start reaching your service pages.

Performance-focused SEO ties technical fixes to business outcomes. A crawlable page only matters when it can attract the searches that turn into calls, bookings, quote requests, or sales.

Final thoughts

Robots.txt blocking Google can hide valuable pages behind a single misplaced directive. Inspect the exact URL, test the live page, read the relevant rule, and verify the fix in Search Console.

A clean crawl path gives Google access to the pages that earn your business visibility. Clear technical signals make it easier for your strongest pages to compete for the searches that bring real leads.

Need Help? Get In Touch!

If you have questions about anything, please do not hesitate to contact us. All messages are responded to within 24 business hours (most within 1 business hour).

ANY QUESTIONS

Ready to Speak With a Marketing Expert

Contact Us

Our internet marketing experts are always available to assist you with any of your issues, needs or requests.

Launch Targeted Campaign

Our goal is to help clients plan, build, and execute their digital advertising campaigns using the best of human expertise

Achieve Lasting Growth

When you work with us, we want to be able to provide you with a unique service that helps your business grow, without having to invest a lot upfront.

Results-Based

We only start billing once we get you on page 1 of Google.

Affordable

Our monthly fees are made for small businesses.

Fast Results

Almost all of our clients get ranking within 1-2 months.

No Contract

We don't lock you in. All services are month-to-month.