Robots.txt Tester
Test whether a URL path is allowed or blocked for a crawler by a site's robots.txt, and see which rule decides it.
Share on Social Media:
The Robots.txt Tester fetches a site's live robots.txt file and tells you whether a particular path may be crawled. Fill in the Site URL (for example https://example.com), the Path to test (for example /blog/my-post) and, optionally, a User-agent such as Googlebot, then press Test Path. The result says allowed or blocked, names the rule that decided it, shows which user-agent group was used, and lists any sitemaps the file declares.
When to use it
- A page isn't appearing in Google and you want to rule out robots.txt before looking at other causes.
- Before you publish a robots.txt change. One misplaced
Disallow: /can block a whole site, and it happens more often than you'd think after a staging site goes live. - Checking wildcard rules such as
/*?sort=or/*.pdf$, which are easy to get subtly wrong.
Google retired the old robots.txt Tester from Search Console in 2023, so a standalone tester is now the quickest way to check a specific URL against a specific rule.
How the decision is made
The tester follows the same rules as Google's crawler:
- Pick the group. If the file has a group for the user-agent you entered (matched by name, ignoring case), that group's rules apply. Otherwise the
User-agent: *group is used. Only one group applies; rules from different groups are not combined. - Find matching rules. A rule matches when the path starts with it.
*matches any run of characters, and a$at the end means "the URL ends here". - The most specific rule wins. The longest matching rule decides. If an
Allowand aDisalloware equally long,Allowwins. If nothing matches, the path is allowed.
For example, with Disallow: /search$ the path /search is blocked but /search?q=shoes is allowed, because the $ requires the URL to end right after "search". Include query strings in the path you test if they matter.
Blocked is not the same as hidden
Robots.txt controls crawling, not indexing. A blocked URL can still appear in Google without a description if other sites link to it. To keep a page out of search results, allow crawling and add a noindex meta tag instead; Google can't see a noindex on a page it isn't allowed to fetch. And never rely on robots.txt to hide private content: the file is public, and it effectively lists the paths you'd rather people didn't look at.
The robots.txt file is fetched live by our server when you click the button. Enter the crawler's user-agent token as it appears in the file (for example Googlebot or Bingbot). Private and internal addresses can't be checked.