Skip to main content
6NN6C SEO & GEO research
Web tool Free No sign-in requiredMobile friendly

robots.txt Rule Tester

Test before you change the rules

Paste a robots.txt, enter a path and a crawler user-agent, and see whether that …

Needs
Your robots.txt and the path to test
You get
Allowed or blocked, and which rule matched

Start here

Why you need it

robots.txt matching is more complicated than most people assume: it is not "the first rule from the top wins", but "longest match wins, and Allow wins a tie", plus * wildcards and the $ end-of-line anchor. A typical accidental block: wanting to block /wp-admin/, someone writes Disallow: /wp, and every image under /wp-content/ is blocked too.

Common crawlers are preset: Googlebot, Baiduspider, and AI crawlers such as GPTBot / ClaudeBot / PerplexityBot. To check whether you’ve shut AI engines out, pick one and test /.

How to use it

  1. Open your-domain/robots.txt and paste the whole file into the input box
  2. Enter the path to test (e.g. /category/page/) and choose a crawler UA
  3. Click "Test rules" — the result tells you allowed or blocked, and which rule in which group matched

Basis and limits

  • Matching follows Google’s REP specification: pick the most specific group for the UA (fall back to * if none), longest path match wins, Allow wins a tie, * and $ supported
  • Engines implement the standard with small differences (e.g. Baidu’s historical wildcard support); this tool follows Google’s interpretation
  • robots.txt blocks "crawling", not "indexing" — adding Disallow to an already indexed page won’t remove it from the index; that needs noindex
  • Blocking at the CDN layer can’t be tested here: Cloudflare’s AI crawler blocking happens outside robots.txt; check real reachability with the quick check

Related reading

Frequently asked questions

Are the results exactly what Google does?

Matching follows the robots standard (longest path first, Allow wins a tie), which covers the vast majority of cases. Some engines have private extensions that may differ, so double-check critical rules with that engine's official tool.

Why test GPTBot, ClaudeBot and similar UAs separately?

AI engines crawl with their own bots. Many sites' robots.txt only has Googlebot rules, so whether AI crawlers are allowed or blocked often isn't what the site owner expects — and that directly affects whether content can be cited by AI.

What's the difference between "Fetch from site" and pasting by hand?

Fetching gets the real live file, so you don't end up testing an old version; pasting by hand suits testing draft rules that aren't live yet.