Originally published on Sitecheckly.

Common robots.txt mistakes include selecting the wrong crawler group, blocking a broader path than intended, and treating Disallow as a noindex instruction. In Sitecheckly audits, 2% of 122 sites audited in the last 90 days had a robots.txt rule blocking all crawlers. Before changing the file, check the affected URL against the applicable crawler group and its longest matching rule.

Indexing mistakes deserve a separate check. The October 2026 Sitecheckly survey of the Tranco top 10,000 (Tranco list 7462X) found a page-level noindex issue on 1.2% of the sites we analyzed. That is a different problem from a crawl block, and it needs a different fix.

How do crawlers choose a robots.txt group?

Start with the crawler, not the first Disallow line you see.

Under RFC 9309's group-selection rules, crawlers select groups that match their product token. Matching is case-insensitive for the crawler name. If several groups match that token, their rules are combined. The wildcard group, User-agent: *, is the fallback when no specific group matches.

A crawler-specific group does not automatically inherit the wildcard group's rules. Consider this file:

User-agent: * Disallow: /private/ User-agent: Googlebot Disallow: /staging/ 

Here, Googlebot uses its specific group. That group blocks /staging/, but it does not also block /private/ just because the wildcard group does.

If you want both paths blocked for Googlebot, include both rules in its group:

User-agent: * Disallow: /private/ User-agent: Googlebot Disallow: /private/ Disallow: /staging/ 

Before editing, check:

  • Which crawler is affected?
  • Does the live file contain a group for that crawler?
  • Does the same crawler name appear in another group?
  • Are you mistakenly reading the wildcard group as an extra set of restrictions?

This is a common source of confusing test results. You can edit the right path in the wrong group and leave the crawler's actual instructions unchanged.

Which rule wins when Allow and Disallow overlap?

The rule that appears last is not automatically the winner. Under RFC 9309's path-matching rules, the most specific matching path wins, measured in octets. If equivalent Allow and Disallow rules match, the RFC recommends using Allow.

For example:

User-agent: * Disallow: /private/ Allow: /private/public/ 

For a crawler using this group:

Requested path Result Reason
/private/report.html Disallowed The /private/ rule matches.
/private/public/guide.html Allowed The longer /private/public/ rule wins.
/about/ Allowed Neither restriction matches.

This is the practical meaning of robots.txt longest match. A narrow exception can allow a public section inside a blocked directory.

Check for rules that match too broadly

A path rule does not have to name an entire page. It can match the beginning of a longer path. For example, Disallow: /shop is broader than Disallow: /shop/: the former can also match a path such as /shopping-guide/.

If you intend to restrict a directory, test the directory path and similarly named paths outside it. Do not assume the crawler knows which section you meant.

Also inspect any blanket restriction:

User-agent: * Disallow: / 

For crawlers using this group, the slash matches every path. If this was left over from staging, replace it with the restrictions you actually need. Do not remove legitimate restrictions without checking their purpose.

Test the exact URL casing

RFC 9309 says path matching should be case-sensitive. That means /Private/ and /private/ should not be treated as interchangeable.

Keep these checks separate:

  • Crawler name: matched case-insensitively when selecting a group.
  • URL path: should be matched case-sensitively.

Copy the affected URL rather than retyping it from memory. A test against a lowercase version does not establish whether the actual mixed-case URL is allowed.

Can blocking CSS or JavaScript hurt Google Search?

Yes. Blocking resources Google needs to render a page can prevent it from understanding that page correctly. Google's JavaScript SEO documentation explains why required JavaScript and other rendering resources need to be accessible.

A page URL can be allowed while its supporting files are blocked. For example, a broad restriction on /assets/ may also cover the stylesheets and scripts the page needs.

Check the page and its resources separately:

  • Open the affected page and identify the CSS and JavaScript it loads.
  • Copy the actual resource URLs, including their host and path.
  • Test those URLs against the relevant robots.txt rules.
  • Narrow or remove restrictions that block resources needed for rendering.

Do not add an Allow rule for the page and assume the problem is solved. The page's HTML and its required resources each need the appropriate crawl access.

Does Disallow remove a page from search results?

No. Disallow restricts crawling, not indexing. Google can still show a blocked URL in search results, even when it cannot crawl the page's contents. Google's robots.txt introduction makes this distinction explicit.

Use the control that matches your goal:

Goal Appropriate action
Restrict crawler access to a path Review the relevant robots.txt group and path rules.
Keep a page out of Google Search Let Google crawl it and provide a noindex directive.
Protect private information Use authentication or another access-control mechanism, not robots.txt.

For a page that should remain accessible to visitors but stay out of Google Search, put this tag in the HTML <head>:

<meta name="robots" content="noindex"> 

Google also supports a noindex directive through the X-Robots-Tag response header. In either case, Google must be able to crawl the page to see the directive.

That creates an important troubleshooting rule: do not combine a crawl block with noindex and expect Google to discover the noindex. Remove the robots.txt restriction when crawling is necessary for Google to read it.

For a public page that should appear in search, inspect both controls. Fixing an accidental Disallow does not remove an accidental noindex tag.

How do you check and fix your own rules?

Work from the live file and the exact failing URL. A local configuration file may not match what the affected host currently serves.

Fetch and test the live file

Open the relevant host's root robots.txt URL, such as:

https://example.com/robots.txt 

Then use the free Sitecheckly robots.txt tester to check the affected page with the relevant crawler user agent.

Keep a short test list:

  • The page that should be crawlable.
  • Its required CSS and JavaScript URLs.
  • A nearby path that should remain blocked.
  • Any mixed-case or similarly named path involved in the problem.

Testing only the newly allowed URL can miss an overly broad change. Check that the intended restrictions still work too.

Make the smallest useful change

Identify the applicable group first. Then find the longest matching rule for each test URL.

Change the source file or configuration that publishes robots.txt. Depending on the problem, that might mean narrowing a path, adding a specific exception, correcting casing, or repeating a necessary restriction in a crawler-specific group.

Fetch the live file again after publishing. Retest both the allowed and blocked paths against that version.

Check the affected page separately

Run the free Sitecheckly SEO audit on the affected page URL. Each audit covers the page entered, with no sign-up required. Use it as a page-level check, not as proof that every URL on the site is configured correctly.

What do these figures cover?

The survey ranking covered 2026-10-02 to 2026-10-31. Home pages were fetched on 2026-11-01. Of the listed domains, 4,934 of 10,000 could be analyzed. The rest were mostly CDN, DNS and API hosts, sites asking crawlers to stay away through robots.txt, or sites blocking automated requests.

The survey's noindex finding concerns the analyzed home pages. It does not establish whether the setting was intentional or whether other pages had the same setting.

The audit figures come from a separate sample, not the survey. In that audit sample, 5% had a missing robots.txt file reported as 404. A missing file is not a blanket crawl block: Google treats a missing robots.txt file as allowing crawling. Other server responses can be handled differently.

What to do next

  • Save the exact page URL and crawler name from the failure.
  • Test its applicable group and longest matching rule.
  • Publish the narrowest fix, then retest the page, its resources, and paths that must remain blocked.

Frequently asked questions

Where should robots.txt be located?

Place it at the root of the relevant host, such as https://example.com/robots.txt. See Google's robots.txt introduction.

Does robots.txt protect private information?

No. It is a crawler instruction, not access control. Protect private content with authentication or another access-control mechanism; see Google's robots.txt introduction.

Is a missing robots.txt file the same as blocking all crawlers?

No. Google treats a missing robots.txt file as allowing crawling, rather than as a blanket block. Other server responses can be handled differently; see Google's robots.txt documentation.

Want to see how your own site does? Run a free audit at sitecheckly.com.

Figures in this article come from Sitecheckly's own audit data; see the methodology.