robots.txt Tester (Check Whether a URL Can Be Crawled / See Which AI Crawlers Like GPTBot and ClaudeBot Are Blocked)
Completely free, with no extra charges. You may freely use the output commercially.
About this tool
This tool is for people who publish and run websites and want to know, before changing robots.txt, whether a URL will be blocked for Googlebot or for AI crawlers. Paste your robots.txt and list the URLs you want to check, and it builds a table showing, for Googlebot and Bingbot as well as AI crawlers such as GPTBot, ClaudeBot, PerplexityBot and Google-Extended, whether each URL is allowed or blocked and which line decided it.
Matching follows RFC 9309 (Robots Exclusion Protocol) and Google's robots.txt specification, including the “*” and “$” wildcards, longest-match precedence and how groups with the same crawler name are merged. It also points out misspellings and directives Google ignores (Crawl-delay, Noindex and so on) with line numbers, and it can generate the lines that block AI crawlers. You can test an unpublished draft as is. All processing happens entirely in your browser (no data is sent).
Enter your robots.txt
Syntax check
Check whether URLs can be crawled
Labels such as “L5” in a cell are the robots.txt line number that decided the result. Click a line number to select that line in the input.
Generate lines that block AI crawlers
Select the crawlers you want to block and the tool writes the lines to add to robots.txt. Search engines (Googlebot, Bingbot) are not in this list, so how you appear in search results is not affected.
How to use it and how matching works
When to use it
A single wrong line in robots.txt can hide an entire site from search engines, yet the robots.txt Tester in Google Search Console was retired in 2023, and the current robots.txt report only shows how the published file was fetched. It cannot check individual URLs or test a draft. Use this tool to paste a draft before you change anything and confirm, before publishing, things like “Is the admin area blocked?”, “Did I accidentally block product pages?” and “I blocked GPTBot, but will I still show up in ChatGPT search (OAI-SearchBot)?”
Steps
- Paste the contents of robots.txt (or load it with “Open file”). For a live file, open
https://(your site)/robots.txtin your browser and copy it. - Enter the URLs you want to check, one per line. A full URL or a path such as
/admin/both work. - Choose the crawlers to check. Each cell in the table shows “Allowed” or “Blocked” and the line that decided it (L number and rule). The “Group used” column tells you whether the crawler followed a group that names it or the “*” group.
- The table updates as soon as you edit robots.txt. When you are done, save it with “Save robots.txt” and place it at the root of your server (
/robots.txt).
Matching rules (Google and RFC 9309)
- Choosing a group: A crawler follows only the group that lists its own name (case-insensitive), and falls back to the
User-agent: *group only if there is none. When a named group exists, none of the “*” rules apply, so a path you blocked under “*” can become open to GPTBot the moment you add a GPTBot group. Multiple groups with the same name are merged into one set of rules. - Rule precedence: Among the rules that match the URL path (including the query after ?), the one with the longest pattern wins. If an Allow and a Disallow of the same length conflict, Allow wins. The order of the rules does not matter.
- Wildcards:
*matches any sequence of characters and a trailing$marks the end of the URL.Disallow: /*.pdf$blocks only PDFs, andDisallow: /*?blocks every URL with a query. Paths are case-sensitive. - Empty Disallow:
Disallow:with no value blocks nothing./robots.txtitself can always be fetched. - Scope: robots.txt only applies to URLs on the host, protocol and port where it is placed.
www.example.comandexample.com, orhttpandhttps, each need their own file.
Types of AI crawlers and what blocking them does
AI companies use different crawler names for different purposes, even within the same company. By blocking only the training crawlers, you can keep appearing in AI search results and as a cited source in answers.
- AI training (GPTBot, ClaudeBot, CCBot, meta-externalagent, Bytespider, Amazonbot): Collect data used to train models. Blocking them has no effect on search engine rankings.
- AI search and answer index (OAI-SearchBot, Claude-SearchBot, PerplexityBot): Collect pages shown as sources in ChatGPT search and in Claude and Perplexity answers. Blocking them makes your pages less likely to be linked in those answers.
- Fetched on user request (ChatGPT-User, Claude-User, Perplexity-User): Visit a page each time a user asks for it in a conversation. According to the companies, robots.txt may not apply to fetches triggered by a user.
- AI training opt-out (control token) (Google-Extended, Applebot-Extended): No separate crawler visits. These names only state whether pages collected by Googlebot or Applebot may be used to train Gemini or Apple's AI. Blocking them does not affect Google Search or Apple's search features.
Things to keep in mind
- robots.txt stops crawling (fetching); it does not remove pages from search results. A blocked page can still appear in results as a bare URL if other sites link to it. To keep a page out of results, leave it fetchable and use
noindex(a meta robots tag or the X-Robots-Tag header). - robots.txt is a request. It cannot stop crawlers that ignore it or malicious access. Protect information you do not want public with authentication.
- This tool follows the interpretation of the major search engines and RFC 9309. Some crawlers interpret robots.txt in their own way (no wildcard support, different handling of Crawl-delay and so on).
- The crawler names and purposes in the list are based on each company's public documentation as of November 2026.
Sources
- RFC 9309: Robots Exclusion Protocol (checked 2026-11-30)
- Google Search Central: How Google interprets the robots.txt specification (rule precedence, 500 KiB limit)
- OpenAI: Overview of OpenAI Crawlers (GPTBot, OAI-SearchBot, ChatGPT-User)
- Anthropic: Crawlers and how site owners can block them (ClaudeBot, Claude-SearchBot, Claude-User)