SEO ToolsA little help for every day

Search by name or task, such as JSON or percentage.

SEO Tools

Robots.txt Rule Tester

Paste robots.txt rules and test paths or URLs for any crawler. See Allowed or Blocked, the deciding rule and its line, using Google's longest-match logic.

View all tools
ResultUpdates as you type
PathResultDeciding ruleLine
/admin/settingsBlockedDisallow: /admin/2
/admin/help/faqAllowedAllow: /admin/help/3
/products?sessionid=123BlockedDisallow: /*?sessionid=4
/files/report.pdfBlockedDisallow: /*.pdf$5
/files/report.pdf?v=2AllowedNo rule matches (allowed by default)
/photos/cat.jpgAllowedNo rule matches (allowed by default)

3 of 6 paths blocked, 3 allowed.

There's no group for Googlebot, so the User-agent: * group applies.

Sitemap: https://example.com/sitemap.xml

Matched the way Google does: the longest (most specific) matching rule wins and Allow wins a tie; * matches any characters and $ marks the end of the URL. robots.txt controls crawling only – use noindex to keep a page out of results.

How to use Robots.txt Rule Tester

Paste your robots.txt, list the paths or URLs to test one per line and enter the crawler's user agent. Each path shows Allowed or Blocked with the deciding rule and line number, updated as you type.

  1. Paste robots.txtCopy the contents of your live robots.txt, or paste a draft you want to try before publishing.
  2. List paths to testEnter paths such as /admin/settings or full URLs, one per line; the domain part is ignored.
  3. Set the crawlerType a token such as Googlebot, Bingbot or GPTBot, or a full user-agent string, then read the results.

How Google decides between Allow and Disallow

Google follows RFC 9309: a crawler uses the group whose User-agent matches it most specifically, and within that group the longest matching rule wins, with Allow winning a tie. * matches any run of characters and $ anchors the end of the URL. In the sample file, /admin/help/faq is allowed because Allow: /admin/help/ is longer than Disallow: /admin/, and /files/report.pdf is blocked by Disallow: /*.pdf$, while /files/report.pdf?v=2 is allowed because $ requires the URL to end there. Rules are case-sensitive and match from the start of the path.

Crawler groups: the most common surprise

Once a crawler has its own group, it ignores everything in the User-agent: * group. In the sample, Googlebot-Image has a group containing only Disallow: /photos/, so for that crawler /admin/settings is allowed even though * blocks /admin/. With no exact group, Google's crawlers fall back to a broader one – Googlebot-News uses a Googlebot group – while other crawlers go straight to *. The tester shows which group was used, picks out tokens from full user-agent strings and lists lines it ignores, such as Crawl-delay, which Google doesn't support. robots.txt controls crawling, not indexing.

Accuracy and data handling

Generated tags and rules must match the real page content and the site's deployment environment. The calculation runs in your current browser; the tool code does not send the input to a processing API.

Often Used Together

Next step

FAQ

How do I test if a URL is blocked by robots.txt?

Paste the robots.txt contents, enter the path or full URL and the crawler name, such as Googlebot. The result shows Allowed or Blocked, the deciding rule and its line number.

Which rule wins when Allow and Disallow both match?

The longest, most specific pattern wins. If an Allow and a Disallow pattern are the same length, Allow wins. That is how Google and RFC 9309 resolve conflicts.

Does Disallow stop a page from being indexed?

No, it only stops crawling. A blocked URL can still be indexed from links, usually without a snippet. To keep a page out of results, allow crawling and add a noindex tag.

Does it fetch my live robots.txt?

No. It tests only the text you paste, so you can try changes before publishing. Paths are matched as Google would match them, including percent-encoding of non-ASCII characters.

More SEO Tools

Related tools