How to use it
- To check your robots.txt, enter the site URL to fetch the live file, or paste the version you plan to publish into the editor.
- Enter one URL or path per line under Test URLs, choose a crawler, and see Allowed or Blocked with the exact line that decided it.
- Review the crawler overview and syntax check, add snippets if needed, then download the new robots.txt and upload it to the site root.
How Google decides whether a URL may be crawled
- Fetch /robots.txtOne file per protocol, host and port; up to 500 KiB is read.
- Check the status code2xx: apply the rules; 4xx: no restrictions; 5xx/429: pause or use the cached copy.
- Pick the groupUse the group whose User-agent matches the crawler; otherwise User-agent: *; groups with the same name merge.
- Find the longest matchAmong matching Allow / Disallow rules the longest path (counting * and $) wins; on a tie Allow wins.
- VerdictNo matching rule means allowed. Allowed to crawl does not mean indexed.
Which rule wins?
Google first picks the group with the most specific matching User-agent (Googlebot-Image beats Googlebot, which beats *); groups with the same name are merged. Among the matching rules in that group, the longest path wins, and on a tie Allow wins. * matches any characters, $ anchors the end, and paths are case sensitive.
| Rule | URL | Result |
|---|---|---|
| Allow: /p · Disallow: / | /page | Allowed (/p is longer) |
| Allow: /folder · Disallow: /folder | /folder/page | Allowed (a tie goes to Allow) |
| Allow: /page · Disallow: /*.htm | /page.htm | Disallowed (/*.htm is longer) |
| Allow: /$ · Disallow: / | / | Allowed ($ anchors the end) |
| Allow: /page · Disallow: /page$ | /page | Disallowed (/page$ is longer; $ counts) |
| Disallow: /docs/ · Allow: /docs/index.html | /docs/ | Allowed (Google treats index.html as /docs/$) |
| Disallow: /*.php$ | /index.php?x=1 | Allowed (with a query it no longer ends in .php) |
How Google treats the robots.txt response
| Response | What Google does |
|---|---|
| 200 | Crawls by the rules in the file |
| 301 / 302 | Follows up to 5 redirects and uses the final file |
| 404 / 410 | Treated as no restrictions: everything may be crawled |
| 429 / 5xx | Pause for 12 hours, then use the last good copy for up to 30 days. Without a cached copy there are no restrictions; persistent failure also depends on site availability. |
| Over 500 KiB | Only the first 500 KiB is read; later rules are ignored |
AI crawlers: block or allow?
If you want ChatGPT, Perplexity and Gemini to recommend your site, do not block AI search crawlers (OAI-SearchBot, PerplexityBot). To keep content out of training only, block training crawlers (GPTBot, Google-Extended, CCBot). Blocking Google-Extended does not affect Google Search rankings.
| User-agent | Company | Purpose |
|---|---|---|
| GPTBot | OpenAI | Model training |
| OAI-SearchBot | OpenAI | ChatGPT search |
| ChatGPT-User | OpenAI | When a user asks ChatGPT to open a page |
| ClaudeBot | Anthropic | Training and improving models |
| PerplexityBot | Perplexity | AI search index |
| Google-Extended | Gemini training and grounding (does not affect Google Search) | |
| Applebot-Extended | Apple | Apple Intelligence training |
| CCBot | Common Crawl | Open web dataset used by many models |
| Bytespider | ByteDance | ByteDance model training |
Frequently asked questions
How do I check my robots.txt?
Enter the site URL above and the tool fetches /robots.txt from the site root. Then list one URL or path per line under Test URLs and pick a crawler to see Allowed or Blocked and the exact line that decided it. You can also paste a robots.txt that is not live yet and test it first.
Is this robots.txt checker free to use online?
Yes. It is a free online robots checker that runs in the browser with nothing to install. Fetching a live file requests only the public robots.txt at the site root, plus the declared sitemaps when you check them; URL tests are evaluated in your browser, and a page is requested only when you click the live access test.
Does Disallow keep a page out of Google?
Not reliably. Disallow stops crawling, but if other sites link to the URL Google may still index it without a snippet. To keep it out, allow crawling and add a noindex tag or an X-Robots-Tag: noindex header.
Why might results differ from Search Console?
This browser tool simulates Google's published robots.txt matching rules; it is not Google's official parser or a live crawl result. Google usually caches robots.txt for up to about 24 hours and may keep it longer after timeouts or server errors. File versions, crawler identity, access restrictions and crawler implementations can change the result.
Can I test a custom user-agent?
Yes. Choose "Custom user-agent" in the crawler list and enter a crawler name such as MyBot or a full user-agent string. The tool extracts the product token, picks the group it obeys and shows whether that is its own group or the User-agent: * group.
Can I preview the effect of an edit before publishing it?
Yes. Fetch the live file, then edit it. The test table adds a Live file column and flags every URL whose result changes. When it looks right, download the new file and upload it to the site root.
Do subdomains and http/https share one robots.txt?
No. A robots.txt applies only to its own protocol, host and port: www.example.com, shop.example.com, http and https each need their own file.
What is wrong with blocking CSS and JS?
Google renders pages like a browser. With CSS and JS blocked it may see a blank or broken page and cannot judge mobile layout or main content, which hurts rankings. On WordPress, do not block /wp-content/ or /wp-includes/.