Skip to main content
ToolsHub

robots.txt Tester

Enter a site URL, pick a user-agent, and test if a path is allowed — including when robots.txt is missing.

Updated

Fetches /robots.txt from the origin. A missing file is treated as allow-all, matching crawler defaults.

No robots.txt tested yet

Enter a site URL, pick a user-agent, and test whether a path is allowed.

How to use robots.txt Tester

The robots.txt Tester fetches /robots.txt from a public origin, parses User-agent groups, and tells you whether a given crawler is allowed to request a path. It is the live counterpart to the robots.txt Generator. A missing file is treated as allow-all, which is how Google and Bing behave. Sitemap directives are listed so you can jump to the Sitemap Validator next.

  1. Enter the site URL or origin. We request https://host/robots.txt.
  2. Set the user-agent (Googlebot by default) and the path to test.
  3. Click Test. The verdict shows Allowed or Disallowed plus the matching rule.
  4. Read each group’s rules and the raw file if you need to edit it.
  5. Open the generator to draft a replacement, or the Sitemap Validator for listed sitemaps.

How matching works

Crawlers pick the most specific user-agent group (Googlebot beats * when both exist). Inside that group, the longest matching path pattern wins. If two patterns have the same length, Allow wins over Disallow. An empty Disallow means “allow all” for that group. Patterns may include * (any characters) and $ (end of URL). That is the model Google documents; other bots can differ, which is why you can type any user-agent string.

Crawling is not indexing

Disallowing a path stops well-behaved crawlers from fetching it. It does not reliably keep the URL out of the index if other pages link to it — Google may still list the URL with no snippet. To keep a URL out of search results, allow the crawl and send noindex (meta robots or X-Robots-Tag) so the crawler can see the instruction. Blocking a URL that you also want to noindex is a common own-goal. Use this tester together with the Meta Tag Analyzer to confirm both layers.

Crawl vs index
GoalMechanism
Save crawl budget / hide paramsrobots.txt Disallow
Keep a URL out of the indexnoindex (and allow the crawl)
Canonicalize duplicatesrel=canonical
Discover URLsXML sitemaps

Worked examples

Googlebot vs /admin

Inputs: URL + UA Googlebot + path /admin

Result: Disallowed if a matching Disallow rule wins

Missing robots.txt

Inputs: A host that returns 404 for /robots.txt

Result: Treated as allow-all for every user-agent

Sitemap lines listed

Inputs: A file with Sitemap: URLs

Result: Each sitemap URL shown for the validator next

Glossary

User-agent group
A block of robots.txt rules that applies to one or more crawler names, or to *.
Disallow
A rule that asks matching crawlers not to request URLs under that path prefix.
Allow
A more specific exception that permits a path even when a shorter Disallow exists.
Crawl-delay
An unofficial directive some crawlers honor; Google ignores it.
Sitemap directive
A robots.txt line pointing crawlers at an XML sitemap URL.

Related reading

Free · No spam

Get weekly tool tips & updates

New tools, power-user tips, and productivity hacks — delivered free every Friday.

No spam, ever. Unsubscribe with one click.

Related Developer Tools

Explore all Developer Tools.