How to Check if robots.txt Blocks AI Crawlers, Rule by Rule

To check if robots.txt blocks AI crawlers, open the file on your exact site address, find the group of rules that names the crawler, and read the rule that matches your homepage. If no group names it, the wildcard group applies, and a single blanket rule there blocks every crawler that has no group of its own. One qualification matters: robots.txt is a request that crawlers are asked to honor and not a lock, and a firewall or CDN setting can block a crawler that robots.txt allows.

Key points

  • A crawler obeys one group only: the group that names it most specifically, or the wildcard group if none does.
  • Most accidental blocks are a blanket rule in the wildcard group, a pasted block list or a file that returns an error.
  • A group that names a crawler is not combined with the wildcard group, so copy across any rule you still want.
  • robots.txt is a request and not a lock, and a firewall or CDN can block a crawler that robots.txt allows.
  • Whether to block is a separate decision from whether you blocked by accident.

A robots.txt rule meant for one bot can quietly block AI crawlers too

A robots.txt rule written for one purpose can quietly block AI crawlers too, because each crawler follows whichever group of rules matches it and falls back to the wildcard group when none does. A blanket Disallow in that wildcard group, copied from a staging site or an old template, shuts out every crawler without its own group, including the ones you may want.

The fix starts with a diagnosis, and the diagnosis is a reading exercise. This page shows how to read the file, test one crawler against it, and repair a rule without opening everything. Whether you should block AI crawlers on purpose is a different question, and the decision framework for blocking AI crawlers answers it.

How are robots.txt rules read, line by line?

A crawler reads robots.txt as a set of groups, each starting with a user-agent line and followed by Allow and Disallow rules, and it obeys only one group. Google Search Central says the file must sit at the top level of a site and applies only to the host, protocol and port that serve it.

The lines you will meet in a robots.txt file. The crawler name examplebot is invented for illustration.
LineWhat it does
User-agent: examplebotStarts a group. The rules below it apply to the crawler with this name, and the name is not case-sensitive.
User-agent: *Starts the wildcard group. It applies to every crawler that has no group of its own.
Disallow: /Asks the crawler to stay away from every address on the site.
Disallow: /private/Asks it to stay away from addresses that start with /private/.
Allow: /blog/Lets it in to addresses that start with /blog/, even if a wider Disallow also matches.

Four rules decide the outcome, and Google documents all of them. A crawler uses the group with the most specific match to its name, and the order of groups in the file does not matter. Groups for a named crawler and the wildcard group are not combined.

Within a group, the most specific rule, by path length, applies, and when rules conflict Google uses the least restrictive one. The symbol * matches any run of characters and $ marks the end of an address. User-agent names are not case-sensitive, but paths are.

What are the common accidental blocks?

The common accidental blocks are a blanket rule left over from a staging site, a block list pasted from a plugin or template, a file served from the wrong address, and a file that returns an error. Match what you see to the table before you edit anything.

Symptoms, likely causes and first moves for an accidental block. The mapping is Kanso's own judgement.
What you seeLikely causeFirst move
Every crawler is blocked, search crawlers includedA staging rule, a wildcard group with a blanket Disallow, left in place at launchRemove the blanket rule, or give the crawlers you want their own group
Only some AI crawlers are blocked and you did not choose thatA block list pasted from a plugin, a host setting or an old templateCompare the list with the crawlers you want, and remove the rest
The file looks right but nothing changesA different host or protocol, such as www versus the bare domain, serves a different fileOpen /robots.txt on the exact address the crawler uses
The file used to be fine and now blocksA redesign, a migration or a plugin update rewrote itCheck it after every change to templates, hosting or plugins
Crawling stops although the rules allow itThe file returns an errorFix the error first, because a server error is read as a block

The error case deserves a second look. Google treats a missing robots.txt (a 4xx error) as no restrictions, but for a server error it stops crawling for the first 12 hours and then uses the last good copy. The standard goes further and tells crawlers to assume a complete disallow when the file is unreachable.

How do you check if robots.txt blocks one AI crawler?

You check one crawler by finding the group it obeys and then reading the rule in that group that matches the address you care about. It takes five steps and needs only a browser.

  1. Open /robots.txt on the exact address your site is served from, with the same protocol and the same www or bare domain.
  2. Find the crawler's name in the documentation of the company that runs it. Each company documents its crawlers and what each one is for.
  3. Look for a group that names it. If there is none, the wildcard group applies, and if there is no wildcard group either, nothing applies.
  4. Inside that group, find the rule that matches your homepage address, which is /. The most specific rule wins, and an Allow beats a Disallow of the same length.
  5. Write down the result: allowed or disallowed.

Here is a worked example, using the invented crawler examplebot. The file below blocks every crawler except one.

User-agent: *
Disallow: /

User-agent: examplebot
Allow: /
Reading the file above for two crawlers. Illustrative.
CrawlerGroup it obeysResult for the homepage
examplebotThe examplebot groupAllowed: the group allows the homepage
Any other crawlerThe wildcard groupBlocked: the wildcard group disallows everything

Notice what the example shows. A crawler you never named is blocked by the wildcard group, and that is how a rule meant for one bot ends up catching others.

What is the difference between homepage access and section access?

A homepage can be allowed while a whole section is not, so passing the homepage test does not prove the pages you care about are open. A rule such as Disallow: /blog/ leaves the homepage alone and shuts out every address that starts with /blog/.

Test the addresses that matter to you, not only the homepage: your pricing page, your articles, your documentation. Use the same steps, with the path of each page instead of /. Kanso's crawler check looks at the homepage, which is why a pass there is a starting point and not a verdict.

When is blocking the right call?

Blocking is the right call when you chose it: you decided that you do not want a kind of crawler to use your content, and you accept what that choice costs. It is a business decision and not a technical fault.

A block you chose on purpose should still show up in your check, and that is fine. The decision framework linked above weighs training crawlers against search ones for different kinds of site. This page only helps you tell a deliberate block from an accidental one.

How do you fix a rule without opening everything?

You fix a rule by giving the crawler you want its own named group, and by copying into that group every rule you still want it to follow. The second part is the step people miss, because Google says a group that names a crawler is not combined with the wildcard group.

Suppose your wildcard group keeps a private folder out of reach, and you want to let one crawler in. Adding a group for it with Allow: / alone would also let it into the private folder, because the wildcard rule no longer applies to it.

User-agent: *
Disallow: /private/

User-agent: examplebot
Disallow: /

The corrected file allows the crawler in and keeps the private folder closed to it as well.

User-agent: *
Disallow: /private/

User-agent: examplebot
Allow: /
Disallow: /private/
  1. Keep a copy of the current file before you edit it.
  2. Change one group at a time, and prefer a narrow Allow for a path over deleting a broad Disallow.
  3. Republish the file, then repeat the five-step test for the crawler and for one crawler you did not touch.
  4. Expect a delay. Google generally caches the file for up to 24 hours.

If robots.txt is a file in your repository, the Coding Agent can prepare the change as a pull request. Kanso shows the exact lines, the workspace owner confirms, and your developer reviews and merges.

How does the GEO Agent report crawler access?

The GEO Agent reports, for each of nine named AI crawlers, whether your robots.txt disallows it from your homepage. It checks the rule and not visits, so it does not show whether a crawler has actually been to your site.

It also checks that the homepage can be fetched, is not noindex and is not blocked by robots.txt, as part of its readiness analysis. A site with no robots.txt passes, because crawlers are not restricted. You can check crawler access with the GEO Agent from your dashboard, and the results are a check of readable signals and not a measure of AI visibility.

Each finding becomes a recommendation you can track as a task, and you decide what to change. Run the analysis again to see whether the signals now pass. Kanso does not edit your site, and it never calls a GEO task verified.

The robots.txt check is one part of the GEO Agent's readiness analysis, and the get found in AI search walkthrough shows the whole workflow. Another file AI systems may read is llms.txt, and the free generator among Kanso's tools writes one for you to publish.

Check if robots.txt blocks AI crawlers: frequently asked questions

Does blocking AI crawlers affect normal search?

Not by itself. A rule in a group named for one AI crawler applies only to that crawler. A wildcard group is different, because it applies to every crawler that has no group of its own, and that includes search crawlers.

Which AI crawlers should I check?

Check the crawlers of the AI products you want to reach you. Each AI company documents its crawlers and what each one is for, such as training, search or fetching a page for a user. Kanso checks nine named AI crawlers, and this page does not list them.

Does Kanso check every page or the homepage?

For crawler rules, Kanso checks whether each of the nine named AI crawlers is disallowed from your homepage. It separately checks that the homepage can be fetched, is not noindex and is not blocked by robots.txt. Other signals are read on a sample of up to 25 public pages.

Can other settings block bots outside robots.txt?

Yes. A firewall, a CDN bot setting, a host security rule or a login wall can refuse a crawler even when robots.txt allows it. Kanso checks the rule in robots.txt, not whether a crawler is let through.

How fast do changes take effect?

There is no fixed time for any one crawler. Google says it generally caches robots.txt for up to 24 hours, and the standard says crawlers should not use a cached copy for more than 24 hours unless the file is unreachable. Other crawlers follow their own schedules.

Should I allow every crawler?

No. Allow the crawlers you want and block the ones you decided against, and do not leave the file to chance. The decision framework for blocking AI crawlers helps you choose for your kind of site.

Can the Coding Agent edit robots.txt?

It can prepare a change to a file such as robots.txt as a pull request, if the file is part of your repository. Kanso shows the exact lines, the workspace owner confirms, and your developer reviews and merges. Kanso never merges or deploys.

Do crawlers have to obey robots.txt?

No. The standard says the rules are requested to be honored and are not a form of access authorization. Reputable crawlers follow them, but a crawler that ignores them is not stopped, so use authentication for anything that must stay private.

What happens if my robots.txt returns an error?

A missing file (a 4xx error) is treated by Google as if there were no restrictions, while a server error (5xx) makes Google stop crawling for the first 12 hours and then fall back to the last good copy. The standard tells crawlers to assume a complete disallow when the file is unreachable. Fix an error before anything else.

Sources

Note: What this page says about how rules are read comes from the three pages listed under Sources, read on 24 November 2026 and liable to change. The crawler examplebot is invented for illustration and is not a real crawler. This page names no AI product or crawler on purpose. It describes the GEO Agent as it works in November 2026 and contains no customer results. Kanso makes no promise that any AI system will visit, use or quote your site.

Search & AI discovery

Ready to grow?

Enter your website and let Kanso handle the rest.

Get started free. No credit card required.