Test robots.txt and see which URLs are blocked.

Fetch any site's live robots.txt, or paste your own, then check whether Googlebot, GPTBot or any crawler may fetch a URL. It shows the exact rule and line that decides.

Live fetchEdit and re-testGoogle matching rulesAI crawlers included
  • /Allowed

    No rule matches in the * group, so it's allowed.

  • /admin/settingsBlocked

    Line 2: Disallow: /admin/ (group: *)

  • /admin/public/logo.pngAllowed

    Line 3: Allow: /admin/public/ (group: *)

  • /blog/post?ref=homeAllowed

    No rule matches in the * group, so it's allowed.

  • Note

    Sitemap declared

    https://example.com/sitemap.xml

Matching follows Google's rules: most specific user-agent group, longest matching path, Allow wins ties.

Why use it

Know what a crawler sees before it's a problem.

A single Disallow line can hide a whole section from Google or an AI assistant. Testing takes seconds and catches it before traffic drops.

The rule that decides

Each URL gets an Allowed or Blocked verdict with the line number and rule that caused it, so you know exactly what to change.

Test edits before you publish

The file loads into an editor. Change a rule and every result updates instantly, without touching your live site.

Search and AI crawlers

Test Googlebot and Bingbot alongside GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot and others, or type any user-agent you like.

How it works

Fetch, pick a crawler, test URLs.

One fetch, then as many tests as you like.

  1. 1

    Load the file

    Enter a domain to fetch its robots.txt, or paste the contents of a file you're working on.

  2. 2

    Choose a crawler

    Pick a user-agent from the list or enter a custom one.

  3. 3

    List URLs

    Enter full URLs or paths, one per line. Each shows Allowed or Blocked with the rule that matched.

Guide

How crawlers read your robots.txt.

The tester applies the matching rules Google documents. Knowing them explains why a URL you thought was blocked isn't, and the other way round.

How to test a robots.txt file

Testing is worth doing after every change, and whenever pages unexpectedly drop out of search.

  1. 1Enter your domain and press Fetch to load the live file
  2. 2Pick the crawler you care about, such as Googlebot
  3. 3Paste the URLs that matter most: your homepage, key category pages, recent posts
  4. 4Check each verdict and the rule that caused it
  5. 5Edit the file in the box to try a fix, then copy it back to your site

Which group does a crawler follow?

A crawler obeys exactly one group of rules: the one whose User-agent line matches its name most specifically. If Googlebot has its own group, it ignores the * group entirely, even rules you meant for everyone.

Sub-crawlers fall back to their parent. Googlebot-Image with no group of its own follows the Googlebot group, and only uses * if neither exists. If a crawler matches no group at all, it may crawl everything.

How Allow and Disallow conflicts are resolved

Within the chosen group, the rule with the longest matching path wins, whatever order the lines are in. With Disallow: /admin/ and Allow: /admin/public/, the URL /admin/public/logo.png is allowed because the Allow rule is longer.

If an Allow and a Disallow match with the same length, Allow wins. An empty Disallow: line means nothing is blocked.

Wildcards and end-of-URL matching

Rules match from the start of the path, including the query string.

/blog
Matches /blog, /blog/, /blog/post and also /blogging, because rules are prefixes.
/blog/
Matches everything inside the folder but not /blog itself.
/*?
Matches any URL with a query string, such as /shop?sort=price.
/*.pdf$
Matches URLs that end in .pdf. Without the $, /file.pdf?download=1 would match too.

Allowed doesn't mean indexed, blocked doesn't mean hidden

Robots.txt controls crawling only. An allowed URL can still be left out of Google for quality or duplicate reasons. A blocked URL can still appear in results, without a description, if other sites link to it.

To keep a page out of search, allow it to be crawled and add a noindex tag. Our Canonical Tag Checker shows a page's robots meta tags alongside its canonical.

What the HTTP status of robots.txt means

Google reacts to the status code the file returns, not just its contents.

200 OK
The rules in the file apply.
404 or other 4xx
Treated as if there is no robots.txt, so everything may be crawled. 429 (too many requests) is the exception and is treated like a server error.
5xx server error
Google treats the site as fully blocked for a while and may fall back to a cached copy, so a broken robots.txt can stop crawling across the whole site.

Testing AI crawlers

Most AI companies run more than one crawler. OpenAI uses GPTBot for training and OAI-SearchBot for ChatGPT search, Anthropic uses ClaudeBot for training and Claude-SearchBot for search, and Perplexity uses PerplexityBot. Test each one separately, because a rule for one doesn't cover the others.

If you want to be cited in AI answers, make sure the search crawlers are allowed on the pages you want cited. Our AI Readiness Test checks this and several other AI-search signals for a whole site.

Your AI SEO agent

Or let your agent do it for you

This tool is one check. SEOLadders is an AI SEO agent that runs the whole job on your site, every day.

A site audit with fix steps

It audits your site and lists what to fix, with steps written for the platform your site runs on. Content Radar spots pages losing clicks.

Keyword research and topic clusters

It finds what your customers search for, groups it into topic clusters around pillar keywords, and plans the articles that cover them.

30 articles a month, published

It writes and publishes 30 articles a month to your site, with images, citations and links. Auto-publish is on once your CMS is connected; turn on Review mode to approve each one.

Backlink outreach, drafted

It finds link targets and drafts the outreach for you to send from your own inbox. The link exchange places links inside members' articles.

Tracked on six AI engines

It tracks whether ChatGPT, Perplexity, Gemini, Claude, Google AI Overview and Google AI Mode recommend you, rechecked throughout the week.

Start free

3-day free trial. Cancel anytime, no charge, no questions.

Robots.txt Tester, answered.

What it does, what it runs on, and how it fits the platform.

See the full platform →

It reads a robots.txt file and tells you whether a given crawler is allowed to fetch a given URL, and which rule decided it. This one can fetch a live file or test one you paste.

Your move

Rank on Google and get cited
by AI on autopilot

Connect your site once and the work runs in the background, it finds the topics, builds the content and authority behind them, then tracks where you land on Google and how often AI platforms recommend you.

3-day free trialNo SEO experience neededCancel anytime