Skip to content
Pricing Failed solves are free. You only pay when it works. See prices

Free tools

robots.txt tester

Paste a robots.txt, pick a user agent and test paths against it. Shows the rule that decided each answer, plus crawl delays and sitemaps.

Or paste it below. We fetch public pages only, as a plain request with no JavaScript, so a site behind a bot check may answer with its block page.

robots.txt

Test as

Results

What the file says

When to use it

Before you scrape a site, you want to know which pages it asks crawlers to leave alone. Paste the site's robots.txt, pick a crawler name and test the paths you care about.

How a crawler reads robots.txt

The rules here follow RFC 9309, the standard that Google, Bing and most well-behaved crawlers use. A crawler first picks one group. That's the group whose User-agent line names it most specifically, or the * group if none does. Rules in every other group are ignored, even the * ones.

Inside that group, the rule with the longest matching path wins. If an Allow and a Disallow match with the same length, Allow wins. A path that no rule matches is allowed.

Wildcards

  • * matches any run of characters, so /*?sort= blocks a sort parameter on every path.
  • $ at the end pins the match to the end of the URL. /*.pdf$ blocks /a.pdf but not /a.pdf?download=1.
  • Matching is case sensitive and starts at the first character of the path.

What robots.txt is not

It's a request, not a lock. Nothing stops a client from fetching a disallowed path. A site that wants to keep automated clients out uses bot protection instead. The reverse is true too: a path being allowed here doesn't mean the site's bot protection will let a scraper through. Crawl-delay is honoured by some crawlers and ignored by Google.

Questions people ask

How does a crawler decide which robots.txt rules apply?

It picks the group whose User-agent line matches its own name most specifically, and falls back to the * group if none does. Only that one group applies. Rules from other groups are ignored.

When Allow and Disallow both match, which wins?

The longest matching rule. If an Allow and a Disallow are the same length, Allow wins. The order of the lines in the file does not matter.

What do * and $ mean in a rule?

The asterisk matches any run of characters and the dollar sign anchors the rule to the end of the URL. Disallow: /*.pdf$ blocks every URL that ends in .pdf.

Is robots.txt legally binding?

It is a published request, not access control, and the law varies by country. Site terms often refer to it though, so read it before you crawl and keep to it unless you have permission to do otherwise.

Get started

Blocked by bot protection? $5 is 5,000 solves.

No subscriptionCredit never expiresFailed solves are free