Free Robots.txt Tester
Check if a bot can access your URL. Get an instant Allowed or Blocked verdict with the exact rule that decided it — for any crawler, any URL, no verification needed.
Full URL, http:// or https:// only.
How to Use the Robots.txt Tester
- 1Paste your robots.txt content into the box, or load the live file from a URL.
- 2Enter the full URL you want to test — http:// or https://.
- 3Pick a crawler, or choose All defined agents to test every agent in the file at once.
- 4Click Test and read the verdict: Allowed or Blocked, with the exact rule that decided it.
How the Tester Parses robots.txt
The tester follows the robots exclusion protocol as Google and Bing apply it:
- An exact bot match beats the wildcard: a User-agent: Googlebot block applies to Googlebot, and User-agent: * is ignored for it.
- The longest, most specific path wins: Allow: /api/public beats Disallow: /api/ for /api/public/data.
- An empty Disallow: allows everything — it blocks nothing.
- Wildcards work in paths: * matches any characters and $ anchors the end of the URL.
- Lines starting with # are comments and are ignored.
Common robots.txt Testing Scenarios
| Goal | Rule in the file | Expected verdict |
|---|---|---|
| Block /admin/ for every bot | User-agent: * + Disallow: /admin/ | Blocked |
| Block one AI crawler | User-agent: GPTBot + Disallow: / | Blocked for GPTBot, allowed for others |
| Keep a staging site out of Google | User-agent: Googlebot + Disallow: / | Blocked for Googlebot |
| Allow a folder inside a blocked area | Disallow: /api/ + Allow: /api/public/ | Allowed for /api/public/… |
| Test every agent at once | Any file with several User-agent blocks | A verdict per agent in the file |
Frequently Asked Questions
If no rule matches the URL you tested, the crawler is allowed. robots.txt is a list of restrictions, so anything not disallowed is fair game. The tester says so explicitly rather than guessing.
robots.txt is only one factor. Crawling also depends on page quality, internal links, server speed and how often the page changes. Use Search Console to see how Google is actually treating the URL.
Yes. Patterns like /*.pdf$ are matched: * stands for any characters and $ pins the match to the end of the URL path. Both Google and Bing support these wildcards.
The Search Console tester only works for Googlebot, and only on your own verified property. This tester runs any crawler against any URL, including drafts and files you have not published yet.
Need a robots.txt file first?
Build one free with a default rule, sitemaps and per-bot blocks. Open the Robots.txt Generator. Working on AI access instead? See llms.txt vs robots.txt.