Robots.txt tester: check rules for any URL and bot
A robots.txt tester reads the robots.txt file of a website and shows which crawlers may fetch which URLs. Enter a domain and an optional path: the tool checks the path for Googlebot, Bingbot and the main AI crawlers, lists every group and flags syntax errors that can hurt SEO. The robots.txt generator below builds a new file in your browser. Use the result to keep crawlers away from the parts of the site you do not want crawled while the public content of the site stays open to them; private data needs a login, not robots.txt.
Your recent checks are kept only in this browser.
Test whether a crawler can access your URL
The test answers one question for each crawler: given the live robots.txt file of this site, may this crawler fetch this URL? It runs in two steps, and the result shows the decision together with the line that made it.
Enter a URL and choose a crawler
Enter the domain of the website, for example example.com, without a path. In the path field, add the page you want to test, such as /blog/post or a full URL on the same site; if you leave it empty, the tester checks the home page of the website. The test always covers Googlebot, Bingbot, GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot and Google-Extended. To test another crawler, type its name, for example AhrefsBot or Applebot, in the optional field: letters, digits, dots, dashes and underscores are accepted.
Select the robots.txt source and run the test
The tester has one source: it fetches the live robots.txt from /robots.txt on the domain you entered, the same address every crawler uses, and reads it as plain text. It never reuses an earlier copy, so every run reads the current version. To test rules before you publish them, build the robots.txt with the generator below, upload it to a staging website with a public address and start testing there. Then press “Test robots.txt”: the result will list the decisions for each crawler and the groups.
Understand your robots.txt test results
The result has three parts: findings about robots.txt, the URL table and the list of user-agent groups. The key step is to read the findings first, because a file that cannot be fetched changes the meaning of every rule.
Read the access result and matching rule
In the URL test table, each row is one crawler. “Allowed” means that nothing blocks the path for that crawler, or that an Allow line wins. “Blocked” means that a Disallow line applies. The Rule column shows the exact line, such as Disallow: /private/, and the Line column its number, so you can open robots.txt and change that line. An empty cell means that nothing matches and the crawler may fetch the URL.
Separate rule decisions from fetch errors
If robots.txt cannot be fetched, there is nothing to check. A missing file (404 or 410) means that crawlers may fetch everything. A server error (5xx) is different: Google treats the whole site as blocked while the error lasts. An HTML page instead of a text file, a redirect to another host or a file larger than 500 KiB are reported as findings, because Google reads only the first 500 KiB and an HTML page contains no valid rules.
How robots.txt rules control crawler access
A robots.txt file is a list of groups. Each group starts with one or more User-agent lines and contains Allow and Disallow lines for paths. The Sitemap directive applies to the whole website.
- Google Search Central: How Google interprets the robots.txt specification
User-agent groups and crawler selection
A crawler looks for the group whose user-agent name matches its own name most specifically and follows only that group. If there is none, it uses the * group. Google combines several groups with the same name into one. A crawler never mixes its own group with the * group, so a User-agent: Googlebot group with one line replaces everything in the * group for Googlebot. The tester applies the same selection, so you can see which group each crawler uses.
Path matching, rule precedence and file scope
A rule matches when the path of the URL starts with its value. * matches any characters and $ marks the end of the URL. When several rules match, Google follows the most specific one, which is the longest path, and Allow wins over Disallow when both are equally long. Paths are case sensitive: /Private/ and /private/ are two different paths.
A file is valid only for its own host, protocol and port. The file on example.com does not apply to shop.example.com or to http:// if the site also answers there, so every subdomain needs its own file.
Check Google and AI crawler access
Search crawlers and AI crawlers, including AI search bots, read the same data but serve different purposes, so you may want different rules for them. The result shows all of them side by side for the same path, which is the key view when you decide what your website allows.
Test Googlebot and other search crawlers
Googlebot crawls pages for Google Search, and Bingbot for Bing search. If either is blocked for a page you want in search results, the page will not be crawled and its content will not be read. Other search engines use their own crawlers, and you can test any of them with the optional field of the tool; the right name is in their search documentation. A common case to check first is a Disallow: / left from a staging site, which blocks the whole website. The tester shows that as a red finding, both for all crawlers and for Googlebot alone, because this common mistake keeps the whole website out of search crawling.
Review GPTBot, ClaudeBot and other AI agents
GPTBot collects data for training OpenAI models, while OAI-SearchBot will fetch pages for ChatGPT search answers. ClaudeBot is the crawler of Anthropic and PerplexityBot that of Perplexity. Google-Extended is not a separate crawler but a product token: blocking it tells Google not to use your content for training its AI models, while Googlebot still crawls for search. To allow AI search but block training data collection, give each name its own group; the key is one group per crawler. The AI bots in robots.txt check lists more AI crawlers and what your file allows for each.
Find and fix common robots.txt problems
Most common robots.txt testing problems come from a line that is broader than intended or from a file the server does not deliver correctly. The findings in the report point to the line or the response that causes each one, so you can change the right thing first on the site.
Diagnose blocked URLs and file retrieval issues
- Whole site blocked: remove
Disallow: /from the*group, or add the paths you want crawled withAllow. - An important page is blocked: find the line in the Rule column and make it more specific, for example
Disallow: /searchinstead ofDisallow: /s. - Server error: make sure
/robots.txtanswers 200 without a login, a firewall challenge or a redirect to another host. - HTML instead of text: serve robots.txt as
text/plain, not as a page of your CMS.
Validate directives and retest changes
Allow,DisalloworCrawl-delaylines before the firstUser-agentline: move them into a group, because crawlers ignore them there.- Paths that do not start with
/or*: correct the path. - Unknown directives and typos, such as
Dissalow: fix the spelling; crawlers skip lines they do not know. - Relative Sitemap line: write the full URL, for example
Sitemap: https://example.com/sitemap.xml, then check it with the XML validator tool. - After each change, repeat the robots.txt testing. Google caches robots.txt for up to 24 hours, so a change may take a day to apply to crawling of the website by Google Search.
Know what a robots.txt tester cannot prove
The tester reads your file exactly as written. It cannot show how every crawler will behave, and some common questions need another tool, such as the search engine’s own data about your website.
Crawling restrictions versus indexing controls
Blocking a URL stops crawling, not indexing. A blocked page can still appear in search results with its address only, if other pages link to it. To keep a page out of the index, let it be crawled and add noindex – the indexability checker shows both signals for one URL, and the guide to controlling crawlers explains when to use which.
Public rules versus private content protection
A robots.txt file is public: anyone can open it in a browser and read the list of paths you do not want crawled. It is a request to well-behaved crawlers, not a lock. Private data and private pages need a login or server configuration, and naming private paths in robots.txt can even point people to them. Treat the file as a public list of what you ask search engines and AI tools not to crawl, and keep private data off the website or behind a login.
Why live behavior can differ from the test
A crawler may follow an older cached copy of robots.txt, may not follow the rules at all, or may use a different name than the one you test. A firewall may also answer crawlers and our tester differently. Check the server log of the website for the real requests of each crawler, and review it after every change.
Review the tool, related tools, access and next steps
The robots.txt tester is a free tool and needs no registration; like the other search tools on this website, it keeps the data it reads to what the result needs. Each run reads one domain and one path, and you can share the result with a link.
Compare supported features and access conditions
- URL test for seven crawlers and one user agent of your choice, with the matching line.
- Syntax checks: unknown directives, lines before the first group and paths without
/or*. - The other directives in the file, with a note when
Crawl-delayis set: Google ignores it, Bing follows it. - Only public domains: local and private network addresses are refused. Every run fetches the file again; a share link to a result works for 7 days.
Run your next test and verify live behavior
After the URL test, review the pages you want in search with the indexability tool. Other free tools on this website check redirects, links and speed, and each tool shows the right next step. For the whole site, the full audit compares robots.txt testing results with every crawled page and reports pages that are blocked but linked, so crawling and indexing match your intent. Monitoring repeats the full audit, robots.txt checks included, once a month and reports the problems that are new since the previous check.
Create a robots.txt file with the generator
If your website has no robots.txt file, or you want to create a new one, the generator below builds it in your browser. Nothing is sent to our server.
Add rules, AI bots and your XML sitemap
Enter the paths to block, one per line: each becomes a disallow rule for all crawlers, such as Disallow: /admin/ for a directory. Then choose whether to block AI training bots and, as an optional step, AI search bots; each choice adds a disallow rule in its own user-agent group. Finally add the sitemap URL of your XML sitemap, so every search engine can find it. Without any disallow rule, the generator creates a robots.txt file that allows everyone to crawl the whole site.
Publish and check the generated robots.txt file
Copy the generated robots.txt and upload it as a plain text file to the root of the host, so that it answers at https://example.com/robots.txt; a robots.txt file in a directory below the root is ignored. Then run the tester above on the live domain: the generated robots.txt should show the expected disallow rule for each path and crawler, and the XML sitemap line should be a full URL. Keep a copy of the previous robots.txt file before you replace it, so you can restore the old robots.txt file if a rule blocks too much.
The standard behind the checks
The robots.txt checks on this page follow RFC 9309, the Robots Exclusion Protocol standard. Google reads at most 500 KiB of the file (512,000 bytes, not characters) and ignores anything after that limit; the checker warns when it is larger.
Lines are grouped by user-agent. For each robot it checks, the checker uses the group that names that robot’s agent, or else the group for *. Inside a group, the longest match decides whether a URL is allowed; when two matches have equal length, Allow wins. The * and $ wildcards are supported. Unknown directives are ignored. Our crawler honors Crawl-delay up to 120 seconds (Google ignores it); a longer value is reported as partial coverage.
A missing file (4xx) means no restrictions. A server error (5xx) or no response stops crawling of the site until the file answers again.
Robots.txt generator
Choose what to allow and block. The file is built in your browser and checked with the same rules as the tester above.
Your robots.txt
Your data
We run the check ourselves. Results stay 7 days for the share link and are not indexed. For the limits we log each check with the tool, the checked site and a keyed hash of your IP address (never the address itself), and we delete these records after 31 days. Recent checks stay only in your browser.
Frequently asked questions
- How do I test if a URL is blocked by robots.txt?
- Enter the domain and the path above and run the test. The report shows for each crawler whether the URL is allowed or blocked and which rule decides.
- Does the robots.txt tester fetch my live file?
- Yes. Every run will fetch the current robots.txt from
/robots.txton the domain; nothing is taken from an older copy. - How does a crawler pick its user-agent group?
- It uses the group with the most specific name that matches its own, and the
*group only when no other group matches. - Are robots.txt paths case sensitive?
- Yes.
/Admin/and/admin/are different paths, so a line must use the same case as the URL. - Does a Disallow line remove a page from Google?
- No. It stops crawling. A blocked URL can still appear in search results if other pages link to it. Use
noindexon a page that can be crawled instead. - How do I check whether GPTBot or ClaudeBot can crawl my site?
- Run the test: both are in the table by default. To block AI training crawling, add a group for each, for example
User-agent: GPTBotwithDisallow: /. - Does this tester check Sitemap or Crawl-delay lines?
- Yes. It lists each of those lines, flags relative ones and notes a
Crawl-delay, which Google ignores. - Why does crawler behavior differ from my test result?
- Crawlers may use a cached copy of the file, a firewall may answer them differently, and some crawlers ignore the rules. The server log shows what really happened.
Related guides
The guide Block AI crawlers: robots.txt rules for GPTBot and other bots explains the background. Related free tools: Sitemap validator and AI bots in robots.txt.
- Block AI crawlers: robots.txt rules for GPTBot and other bots
- How to run a technical SEO audit and prioritize the fixes
- Pages not indexed: why Google skips them and how to fix it
Read how to fix it in the guide “Blocking AI crawlers” and on the check page “robots.txt errors”.
More free tools
- All free tools
- Sitemap validator
- Indexability checker
- Redirect checker
- Broken link checker
- hreflang checker
- Title and description
- Heading checker
- Structured data test
- Open Graph checker
- SEO content checker
- Website speed test
- Mobile friendly test
- AI bots in robots.txt
- llms.txt checker
- AI visibility checker
- Keyword rank checker
- Backlink checker
Want to check the whole site?
The free tester checks one URL against the rules of several crawlers and shows the matching rules. The full audit also reads robots.txt together with your sitemap, canonical tags and noindex tags across the whole site, so you see which valuable pages the file blocks by mistake, with evidence for each.
Start the free pre-check