LaunchRanked

robots.txt tester

Pick a user-agent and a URL. We fetch the live robots.txt, apply the RFC 9309 rules and show whether it's allowed, and which line decided.

The path of a full URL is tested unless you fill in Path below.

How the decision is made

robots.txt is a list of groups. Each group starts with one or more User-agent lines, followed by Allow and Disallow rules. The tester follows RFC 9309, the standard Google and Bing implement:

  1. Pick the group. The crawler looks for groups naming its product token (Googlebot, GPTBot…), case insensitive. If several groups name it, their rules are merged. If none do, it uses the User-agent: * group. If there’s no * group either, everything is allowed.
  2. Find the longest match. Among that group’s rules, the one whose path matches the most characters of the URL wins. * matches any run of characters and a trailing $ anchors the end.
  3. Break ties with Allow. If an Allow and a Disallow match with the same length, Allow wins.

The result shows the verdict, the group that applied and the exact line that decided, highlighted in the file. You can paste a full user-agent string: like Google, we match on its product token.

Things that trip people up

  • Disallow: /blog also blocks /blog-post and /blogroll. Use /blog/ to block the folder only.
  • Paths are case sensitive: /Admin and /admin are different rules.
  • Query strings count. Disallow: /*? blocks every URL with a query string, including tracking parameters.
  • An empty Disallow: allows everything; Disallow: / blocks everything.
  • Google reads only the first 500 KiB of the file.

Test the URLs that matter before you ship a new robots.txt: your homepage, a product page, a blog post, your sitemap, and any CSS or JavaScript files pages need to render. Blocking resources Google needs to render a page can hurt how it understands the page.

To see every AI crawler’s status in one go, use the AI crawler checker. To write a new file, start from the robots.txt generator.

Questions

If robots.txt blocks a page, is it out of Google?

Not always. robots.txt stops crawling, not indexing. A blocked URL can still appear in results (usually without a description) if other pages link to it. To keep a page out of the index, allow crawling and add a noindex meta tag or X-Robots-Tag header instead.

Why does my Googlebot group ignore the rules under User-agent: *?

Because a crawler follows only the most specific group that names it. If there's a Googlebot group, Googlebot ignores the * group entirely, so any rule you want for both has to be repeated in each.

What happens if robots.txt returns a 404 or a 500?

Google treats a 4xx (other than 429) as "no robots.txt": everything is allowed. A 5xx or 429 makes Google stop crawling the site for a while and fall back to a cached copy; after about 30 days of errors it treats the site as having no robots.txt. The tester shows which case applies.

Free launch

Launching something? Get a page that ranks.

Launch free on LaunchRanked: a permanent, SEO-ready product page, a weekly leaderboard slot and a followed link after human review. No badge required.

Related free tools

See all free tools