Robots.txt Checker & Tester

Fetch any robots.txt, see its rules and test whether a URL is blocked for Googlebot.

By Pranav Solanki15+ years in SEO & performance marketingUpdated 24 November 2026

This free robots.txt checker and tester fetches any website’s robots.txt file, lists the sitemaps it declares, and tells you whether a specific URL is allowed or blocked for Googlebot, Bingbot, GPTBot or any user-agent. It follows Google’s rule-matching logic: the most specific rule wins, and Allow wins a tie.

How to Test a URL Against robots.txt

  1. Enter the full URL you want to test, for example https://example.com/blog/my-post/.
  2. Choose the crawler (user-agent) to test as.
  3. Click Fetch & test. You’ll see ALLOWED or BLOCKED, the exact rule that decided it, and the full file.

Robots.txt Syntax in 2 Minutes

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /*?sort=
Disallow: /*.pdf$

User-agent: GPTBot
Disallow: /

Sitemap: https://example.com/sitemap.xml
Directive What it does
User-agent Which crawler the group of rules applies to. * means all crawlers without their own group.
Disallow Blocks crawling of paths that start with the value.
Allow Makes an exception inside a disallowed path.
* Wildcard: matches any sequence of characters.
$ End of URL: /*.pdf$ matches URLs ending in .pdf.
Sitemap Tells crawlers where your XML sitemap is. Can appear anywhere in the file.

Note: Google ignores Crawl-delay and Noindex lines in robots.txt.

Blocking Is Not the Same as Noindexing

This is the most misunderstood part of robots.txt. A Disallow stops Google from crawling a page, but the URL can still appear in search results (without a description) if other pages link to it. To keep a page out of Google, allow crawling and add a noindex robots meta tag or X-Robots-Tag header. If you block a page that has noindex, Google never sees the noindex.

Robots.txt Mistakes I See on Live Sites

  • Disallow: / left from staging, blocking the entire site after launch.
  • Blocking CSS and JavaScript, so Google can’t render pages and may misjudge mobile-friendliness.
  • Blocking pages that carry noindex, so the noindex is never read.
  • No Sitemap line, a missed easy win.
  • Using robots.txt to hide private content. The file is public; anyone can read it. Use authentication instead.
  • Server errors on robots.txt. If robots.txt returns 5xx, Google may pause crawling the whole site.

Should You Block AI Crawlers?

Bots like GPTBot (OpenAI), ClaudeBot (Anthropic) and Google-Extended can be allowed or blocked with their own user-agent groups. Blocking them keeps your content out of some AI training, but may also reduce how often your brand appears in AI answers. Decide based on your business, not by default, and test the result here.

Frequently Asked Questions

Where is the robots.txt file?

Always at the root of the domain: https://yourdomain.com/robots.txt. Each subdomain needs its own file.

What happens if there is no robots.txt?

If it returns 404, Google treats everything as allowed. That’s fine for many small sites.

How long does Google take to see robots.txt changes?

Google usually caches robots.txt for up to 24 hours. You can request a recrawl through Search Console’s robots.txt report.

Does robots.txt affect rankings directly?

No, but blocking important pages or resources stops Google from crawling and understanding them, which affects what can rank.

Can I block a single page?

Yes, with Disallow: /exact-path/ (add $ to match only that exact URL). But if you want it out of search results, use noindex instead.

How does Google decide between Allow and Disallow?

It uses the most specific (longest) matching rule. If an Allow and a Disallow rule are equally specific, Allow wins. This tool uses the same logic.

Related Free Tools

Built by Pranav Solanki, 15+ years in technical SEO and performance marketing. I use these same checks on real client sites.