Robots.txt Tester with Rule Traces for AI Crawlers
Billion Game
Book a strategy call
Free · 18 crawlers · runs in your browser

Robots.txt tester that shows which rule won

Google retired its own robots.txt tester, and most replacements give you a green tick with no explanation. A verdict you cannot audit is not much use when a single line is hiding half your catalogue.

This one implements the real matching rules — longest match wins, Allow beats Disallow on a tie, wildcards and end anchors — then shows you the group it selected, every rule that matched, and exactly why one of them decided the outcome. Including for the AI crawlers most testers ignore entirely.

⌕
Shows the winning rule
Group selected, every rule that matched, and why one won.
◈
AI crawlers included
GPTBot, PerplexityBot, ClaudeBot, Google-Extended and more.
≡
Many URLs at once
A matrix, not one URL at a time.
⚠
Linter, not just a verdict
Noindex lines, blocked CSS, relative sitemaps, typos.
⌘
Real precedence
Longest match wins, Allow beats Disallow on a tie.
▤
Presets
WordPress, Shopify, block-AI-training, and the two extremes.
1 Your robots.txt 0.2 KiB of 500
Load a preset
1 User-agent: *
2 Disallow: /wp-admin/
✕ Disallow: /wp-content/
4 Disallow: /?s=
5 Disallow: /cart
6 Allow: /wp-admin/admin-ajax.php
! Noindex: /thank-you/
8  
9 User-agent: GPTBot
10 Disallow: /
11  
! Sitemap: /sitemap.xml
13  
Path /wp-content/themes/main.css Googlebot · line 3 Blocked

The highlighted line is the one that decided this verdict for the URL selected in the matrix. Amber dots are rules that also matched but lost on specificity. Click anywhere in the file to edit it.

This example file has three real mistakes in it, deliberately, so the linter below has something to show you. Replace it with yours.

2 URLs to test 6 URLs

Homepage, sitemap, a stylesheet, a script, search, cart, login, a product, a post. Between them they catch most accidental blocks.

3 Crawlers 5 selected
Search crawlers

These decide whether your pages can be found in conventional search at all.

AI crawlers

Most robots.txt testers do not include these. Blocking one is usually accidental, and it is why a brand is invisible in AI answers.

SEO tools

Blocking these hides you from competitor research, and from your own tooling.

Results 18 of 30 blocked
URL Googlebot Bingbot GPTBot Perplexity… ClaudeBot
/
/wp-content/themes/main.css
/wp-admin/admin-ajax.php
/blog/technical-seo-audit/
/cart
/?s=audit
Allowed Blocked Tap any cell for the rule trace
Rule trace Blocked
https://example.com/wp-content/themes/main.css
as Googlebot
Step 1 · group selection

No group names Googlebot specifically, so it falls back to the catch-all User-agent: * group starting on line 1.

Step 2 · rules that matched
L3 Disallow: /wp-content/ 12 ch Wins
Step 3 · why that one won

Only one rule matches, so it decides: disallow on line 3.

Linter 3 errors, 1 warning
✕ Noindex in robots.txt does nothing Google stopped supporting this in 2019. The line is silently ignored, so the page you think is hidden is not. Use a noindex meta tag or X-Robots-Tag header on the page instead, and make sure the page is crawlable so it can be read. Line 7: Noindex: /thank-you/
✕ Sitemap URL is not absolute Sitemap declarations must be a full URL including the protocol and host. A relative path here is ignored, so the declaration does nothing. Line 12: Sitemap: /sitemap.xml
✕ Blocking CSS, JavaScript, or asset paths Google renders pages before judging them. If it cannot fetch your stylesheets and scripts, it sees an unstyled, partly broken page and assesses that instead of the real one. This is one of the most damaging robots.txt mistakes there is. Line 3: Disallow: /wp-content/
! Blocking 1 AI crawler: GPTBot A legitimate decision if you made it deliberately, and a real cost if you did not. Retrieval crawlers such as OAI-SearchBot and PerplexityBot are what produce citations and referral traffic; training crawlers such as GPTBot and CCBot are the ones publishers usually mean to restrict. They can be configured separately.
i Disallow is not noindex Blocked URLs can still be indexed and shown without a snippet if other sites link to them. To remove a page from the index it must be crawlable and carry a noindex directive.
Robots.txt does not deindex

Disallow stops crawling, not indexing. A blocked URL can still appear in search results if other pages link to it, listed without a snippet. To keep a page out of the index you need a noindex meta tag or header, which means the page has to be crawlable for Google to see it.

And it is not access control

It is a public file of polite requests. Well-behaved crawlers honour it; anything malicious reads it as a directory of what you would rather people did not see. Never list admin paths, staging URLs, or private directories in it. Use authentication for anything that actually matters.

The CDN caveat

A clean robots.txt does not prove a crawler can reach you. Cloudflare and similar services block AI bots above this layer, on by default in some plans. Check your edge rules and your server logs too — that side of it is covered on our answer engine optimisation page.

Under the hood

How does a crawler decide whether robots.txt blocks a URL?

A crawler picks exactly one group in robots.txt, the most specific one that names it, and applies the longest matching rule inside it; Allow beats Disallow on a tie. Most robots.txt bugs are not typos but come from assuming the file is read top to bottom like a script.

Rule What it means Example that surprises people
One group only A crawler finds the most specific group matching its name and reads only that group. A Googlebot group means every rule under User-agent: * is ignored for Googlebot
Longest match wins Not first match. The rule with the longest matching path decides, regardless of order. Disallow: /blog then Allow: /blog/seo means /blog/seo is allowed
Ties go to Allow When Allow and Disallow match with identical length, the URL is allowed. Disallow: /a and Allow: /a resolves to allowed
Case sensitive Paths are compared exactly, including case. Disallow: /Search does not block /search
Wildcards are partial Asterisk and dollar are supported by Google and Bing, not by every crawler. Disallow: /*.pdf$ works for Google, ignored by many others
Errors change everything A 404 means allow all. A 5xx means Google treats the whole site as disallowed for up to 30 days. An outage on robots.txt can quietly deindex a site
500 KiB limit Google reads the first 500 kibibytes and ignores the rest. Auto-generated files on large platforms silently drop later rules
Worked cases

Which robots.txt results do people get wrong?

The four robots.txt results people get wrong are an Allow that beats a shorter Disallow, a Googlebot group that overrides the wildcard group, a case mismatch that leaves a path unblocked, and a blocked URL that stays indexed. Run each through the tester above and check your instinct against the answer.

Allowed, despite the Disallow

The Allow rule is longer, so it wins. Order in the file makes no difference.

robots.txt
  User-agent: *
  Disallow: /blog
  Allow: /blog/seo-guide

Testing /blog/seo-guide
  => ALLOWED (longest match)

Blocked, despite the Allow

The wildcard group is ignored entirely because Googlebot has its own group.

robots.txt
  User-agent: *
  Allow: /

  User-agent: Googlebot
  Disallow: /private

Testing /private for Googlebot
  => BLOCKED (own group wins)

Not blocked, because of case

Robots.txt matching is case sensitive even when the server is not.

robots.txt
  User-agent: *
  Disallow: /Search

Testing /search?q=shoes
  => ALLOWED (case mismatch)

Blocked, and still indexed

Blocking prevents fetching, not listing. This is the single most misunderstood behaviour in the file.

robots.txt
  User-agent: *
  Disallow: /old-page

Result
  Not crawled, but can still appear
  in results as a bare URL if linked
From real audits

What are the most common robots.txt mistakes?

The most common robots.txt mistake Billion Game finds on live files is a staging Disallow: / shipped to production, followed by blocked CSS and JavaScript, Disallow used instead of noindex, and blocked URLs that hold backlinks. These are the failures that cost real traffic, roughly in the order of how often we see them.

Staging rules shipped to production Disallow: / goes live with the launch and the site drops out of search within a fortnight. Make robots.txt environment-aware rather than a file someone remembers to edit.
Blocking CSS and JavaScript Google renders before judging. Block /assets/ and it sees an unstyled skeleton, which affects both mobile usability and what it believes the page contains.
Disallow used instead of noindex The crawler never fetches the page, so it never sees the noindex tag, and the URL lingers in the index with no description.
A blocked URL that holds backlinks A disallowed URL cannot pass equity onward, so every link pointing at it is wasted.
Rules that only exist on www Robots.txt applies to one host. The bare domain, www, and every subdomain each need their own file.
AdsBot ignored the site-wide block AdsBot-Google does not follow the wildcard group, which is usually a relief, but an explicit AdsBot rule can disapprove your landing pages.
Our stack

Billion Game runs your work through the same instruments the best in-house teams use.

Licences are on us, and every export we pull from them is yours to keep.

✎

Be wary of any agency whose reporting is a tool dashboard with their logo on it. Tools measure; they do not decide what matters, and every one of these will happily generate a hundred findings that change nothing. What you are paying for is the judgement about which three of those hundred are worth your developers’ time.

FAQ

Robots.txt questions

The matching rules are genuinely counter-intuitive, so these are worth reading once properly.

If pages are not indexed and robots.txt is clean, the cause is elsewhere: rendering, canonicals, crawl budget, or quality thresholds. That is a technical SEO audit rather than a robots.txt problem.

By specificity, not by order. Every rule in the applicable group is tested against the path, and the one with the longest matching path wins, measured with wildcards removed. If an Allow and a Disallow match at exactly the same length, Allow wins. This is why Allow: /wp-admin/admin-ajax.php overrides Disallow: /wp-admin/ regardless of which line comes first.

No, and this is the most common misunderstanding. A crawler uses exactly one group: the most specific one that names it, and if none names it, the catch-all group. Rules do not stack. If you create a group for GPTBot containing one Disallow line, GPTBot ignores everything in your User-agent: * group, including any Sitemap-adjacent rules you assumed were global.

Disallow stops a crawler fetching a URL. Noindex tells it not to keep the URL in the index. They are different mechanisms and blocking is not hiding: a disallowed URL can still be indexed and displayed without a snippet if other pages link to it. To remove a page from search, allow crawling and serve a noindex meta tag or X-Robots-Tag header.

No. Google stopped supporting an unofficial noindex directive in robots.txt in 2019, and lines like that are now silently ignored. Any page you believe is hidden by one is not hidden at all. This tool flags those lines because they are still surprisingly common in files generated by older plugins.

Most businesses should allow AI retrieval crawlers in robots.txt, and the distinction that matters is training versus retrieval. Training crawlers such as GPTBot, CCBot, Google-Extended, and Applebot-Extended feed model training. Retrieval crawlers such as OAI-SearchBot and PerplexityBot fetch pages to answer a question now, and they are what produce citations and referral traffic. Publishers often restrict the first group and allow the second. Most other businesses lose more from invisibility than they gain from withholding.

Because robots.txt only controls fetching. Crawlable pages still have to be renderable, canonical to themselves, worth indexing in Google's judgement, and reachable through internal links. A clean robots.txt is a precondition rather than a cause, so if this tool says allowed and the page is still missing, the problem is elsewhere.

No. It is a set of requests that well-behaved crawlers choose to honour, and it is publicly readable by anyone. Listing your admin paths in it tells a hostile visitor exactly where to look. Anything that genuinely needs protecting needs authentication, rate limiting, or firewall rules, not a text file asking politely.

It matters more than most people expect. A 404 or 410 is treated as no restrictions, so everything is crawlable. A 5xx server error is treated as a full disallow for a period, meaning a robots.txt outage can stop crawling of your entire site. Serving 503 on your robots.txt during a deploy is a genuinely damaging accident.

Yes, by Google, Bing, and most major crawlers, though they are extensions rather than part of the original standard. An asterisk matches any sequence of characters and a dollar sign anchors the end of the URL, so Disallow: /*.pdf$ blocks PDFs. Not every crawler implements them, so avoid depending on wildcards for anything critical.

Google reads the first 500KiB and ignores everything after it. That is far more than a sensible file needs, but automatically generated files on large sites do occasionally exceed it, at which point rules you believe are active are simply never read. If your file is anywhere near that size, the real fix is pattern consolidation rather than a longer file.

A correct robots.txt is one of about forty things that have to be right.

We check this alongside rendering, canonicals, crawl budget, and AI crawler access at the edge, then hand your developers tickets rather than a list of concerns.