# Robots.txt Checker: Validate and Test Crawler Access

Fetch a site's robots.txt (or take a pasted one up to 500 KB) and validate it with Google-compatible matching (RFC 9309: the longest match wins, Allow wins a tie, * and $). Returns a verdict (readable, warnings, errors, missing, empty, not-robots, server-error, blocked-fetch), what crawlers do about the file, groups and rules with line numbers, sitemaps and Content-Signal. For each crawler named (default Googlebot, Bingbot, GPTBot, ClaudeBot; preset ai: all AI crawlers) and each test path: allowed or not, which group applied (its own or *), and every matching rule with its length and which one decides. Only robots.txt is fetched.

**Not for:** Telling whether a page is indexed, or blocking crawlers: a robots.txt is a request, not a lock.

- Tool id: `robots-txt-check`
- Category: web
- Execution: network
- MCP tool `robots_txt_check` at https://lookupowl.com/mcp
- REST `GET https://lookupowl.com/api/v1/tools/robots-txt-check` (or POST a JSON body)
- OpenAPI: https://lookupowl.com/api/openapi.json

## Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `url` | string | no | `""` | A site or page address such as example.com/blog/. We read its robots.txt and also test the page. Optional with `robots`. max length 2048 |
| `robots` | string | no | `""` | A robots.txt to test instead of fetching one, up to 500 KB. Never stored or put in an address. max length 512000 |
| `paths` | string[] | no | `[]` | Paths on this site to test, up to 50, such as /blog/. Default: the home page and the page typed. max 50 items |
| `agents` | string[] | no | `[]` | Crawler tokens to test, up to 20, such as GPTBot. Default: Googlebot, Bingbot, GPTBot, ClaudeBot (every AI crawler on the ai preset). max 20 items |
| `preset` | "validator" \| "ai" | no | `"validator"` | validator, or ai: the AI crawler view. |

## Output

Results are wrapped in an envelope: `tool`, `version`, `requestId`, `data`, `summary`, `meta` (cache status, timing), `permalink`. `data` has these fields:

| Field | Type | Description |
|---|---|---|
| `target` | string | The host that was read, or "pasted" for a pasted file. |
| `mode` | "site" \| "paste" |  |
| `preset` | "validator" \| "ai" |  |
| `asOf` | string |  |
| `fetch` | object | null for a pasted file. |
| `verdict` | "readable" \| "warnings" \| "errors" \| "missing" \| "empty" \| "not-robots" \| "server-error" \| "unreachable" \| "blocked-fetch" |  |
| `effect` | "rules-apply" \| "allow-all" \| "pause" \| "unknown" | rules-apply, allow-all (no file or 4xx), pause (5xx) or unknown. |
| `counts` | object |  |
| `groups` | object[] |  |
| `contentSignal` | object |  |
| `leadingComments` | object[] | Comment lines before the first group. |
| `sitemaps` | object[] |  |
| `paths` | string[] |  |
| `ignored` | object[] |  |
| `bots` | object[] |  |
| `test` | object |  |
| `lines` | object[] | The first 120 lines, and the deciding rule's neighbours. |
| `issues` | object[] |  |
| `summary` | object | AI crawlers allowed on the first address, by use. |
| `excerpt` | string \| null | UNTRUSTED. First 200 characters of a page served instead of a robots.txt. |

## Examples

### A shared group with a crawl delay: github.com

```json
{"url":"github.com","robots":"","paths":[],"agents":[],"preset":"validator"}
```

```bash
curl 'https://lookupowl.com/api/v1/tools/robots-txt-check?preset=validator&robots=&url=github.com'
```

Web page: https://lookupowl.com/robots-txt-validator?q=github.com

### A long file with named crawlers: wikipedia.org

```json
{"url":"wikipedia.org","robots":"","paths":["/wiki/Special:Random"],"agents":["Googlebot","GPTBot"],"preset":"validator"}
```

```bash
curl 'https://lookupowl.com/api/v1/tools/robots-txt-check?agents=Googlebot&agents=GPTBot&paths=%2Fwiki%2FSpecial%3ARandom&preset=validator&robots=&url=wikipedia.org'
```

Web page: https://lookupowl.com/robots-txt-validator?q=wikipedia.org&agents=Googlebot&agents=GPTBot&paths=%2Fwiki%2FSpecial%3ARandom

### Which AI crawlers does cloudflare.com let in?

```json
{"url":"cloudflare.com","robots":"","paths":[],"agents":[],"preset":"ai"}
```

```bash
curl 'https://lookupowl.com/api/v1/tools/robots-txt-check?preset=ai&robots=&url=cloudflare.com'
```

Web page: https://lookupowl.com/ai-crawler-checker?q=cloudflare.com

### A pasted file with a mistake

```json
{"url":"","robots":"User-agent: *\nDisallow: /private/\nAllow: /private/public/\n\nUser-agent: GPTBot\nDisallow: /\n\nSitemap: https://example.com/sitemap.xml\n","paths":["/private/public/page","/blog/"],"agents":["Googlebot","GPTBot"],"preset":"validator"}
```

```bash
curl 'https://lookupowl.com/api/v1/tools/robots-txt-check?agents=Googlebot&agents=GPTBot&paths=%2Fprivate%2Fpublic%2Fpage&paths=%2Fblog%2F&preset=validator&robots=User-agent%3A+*%0ADisallow%3A+%2Fprivate%2F%0AAllow%3A+%2Fprivate%2Fpublic%2F%0A%0AUser-agent%3A+GPTBot%0ADisallow%3A+%2F%0A%0ASitemap%3A+https%3A%2F%2Fexample.com%2Fsitemap.xml%0A&url='
```

Web page: https://lookupowl.com/robots-txt-validator?agents=Googlebot&agents=GPTBot&paths=%2Fprivate%2Fpublic%2Fpage&paths=%2Fblog%2F

## Web pages

- https://lookupowl.com/robots-txt-validator
- https://lookupowl.com/ai-crawler-checker

## Limits and caching

- Cost: 4 units for a live lookup, 1 unit for a cached one. Budgets are per network and published in the `RateLimit` response headers.
- Cache: the lifetime follows the data (for DNS, the record TTL, within a few minutes).
- Timeout: 30 s.

## Related tools

- [AI Readiness Checker for AI Search and Agents](https://lookupowl.com/tools/ai-readiness-check.md): Check whether AI crawlers and agents can find and read a page: robots.txt, content before JavaScript, structured data, sitemaps and llms.txt.
- [HTTP Headers Checker](https://lookupowl.com/tools/http-headers.md): Fetch a URL, follow its redirects and see every response header, with a security-header grade and caching summary.
- [Open Graph Checker: Link Preview and Social Tags](https://lookupowl.com/tools/open-graph-check.md): Check how a link looks when shared in Facebook, X, LinkedIn, Slack and more: Open Graph tags, the image and what is wrong.
- [Security Headers Checker](https://lookupowl.com/tools/security-headers.md): Grade a site's HTTP security headers from A+ to F, with what each one does and the exact header to add.
- [Is It Down? Check a Website from Many Places](https://lookupowl.com/tools/http-check-global.md): Check a website from probes in many places: name lookup, connection, certificate and web server, with a plain verdict.

## Guide: Robots.txt checker

Check that a robots.txt is valid and see which crawlers may fetch a page, and which line decides.

### How a crawler reads the file

A robots.txt is a plain text file at the top of a site. It tells crawlers which paths they may fetch. It is a request, not a lock: crawlers that follow the standard stop, and others do not. The file is made of groups. A group starts with one or more `User-agent` lines and holds the rules that follow, each an `Allow` or a `Disallow` with a path.

A crawler uses the group that names it, and the group for `*` only when none does. Then it keeps every rule in the group whose path matches the address, and the longest one wins. When an `Allow` and a `Disallow` are equally long, `Allow` wins. That is the matching Google documents (RFC 9309), and this page follows it, including `*` for any run of characters and `$` for the end of the address. Nothing is fetched for the addresses you test: they are matched against the rules.

| Rule | What it matches | Not this |
|---|---|---|
| `Disallow: /private/` | `/private/` and everything under it | `/private` (no slash at the end) |
| `Disallow: /*?` | Every address with a query string | `/page` |
| `Disallow: /*.pdf$` | Addresses that end in `.pdf` | `/file.pdf?download=1` |
| `Allow: /shop/sale` | A longer rule that beats `Disallow: /shop/` | `/shop/other`, which stays blocked |
| `Disallow:` with nothing after it | Nothing: it allows everything |  |

### What the checker shows

- **A verdict on the file**: readable, with notes or warnings, or with errors. Notes never lower it, warnings do, and a line crawlers would skip is an error.
- **The rule duel**: pick an address and a crawler and see whether it is allowed, which group applied, every matching rule with its length, and the one that decided.
- **A grid of crawlers**: Googlebot, Bingbot, the AI crawlers and anything you add, for one address or several, with the deciding line under each answer.
- **The file line by line**, groups, sitemap lines, and any Content-Signal line.
- **How the server answered**: a missing file, an empty one, a web page where a file belongs, a server error and redirects are told apart, because crawlers treat each differently.

You can also paste a file and test it before you publish it. A pasted file is read for this one request, then forgotten: it is not stored, logged or put in the address.

### How to use it

1. **Enter a site or a page**: Type `example.com`, or a page such as `example.com/blog/post`. We read the robots.txt at the top of the site, and test the page you typed as well as the home page.
2. **Read the answer, then the duel**: The answer says whether the file is readable. The duel under it tests one address for one crawler. Change either box and test again; the link keeps what you tested.
3. **Fix what the checks name**: Each check says which line and gives the corrected line to write. Run it again after you publish. Crawlers keep their own copy of the file for a while, so a change can take a day to be noticed.

```bash
# The same check as JSON, for a script or an agent
curl "https://lookupowl.com/api/v1/tools/robots-txt-check?url=example.com&agents=GPTBot&paths=/blog/"
```

> **From an AI assistant** With the LookupOwl MCP server connected, ask "Can GPTBot fetch example.com/blog?" The assistant calls `robots_txt_check` and answers from the matching rule. See [using LookupOwl from AI agents](https://lookupowl.com/learn/lookupowl-mcp-ai-agents).

### When there is no file, or the server fails

Crawlers do not all treat a problem the same way, so the page says which one you have. A missing file (a 404 or 410) means there are no rules, so everything is allowed. A server that answers with an error (a 5xx, or a 429) is different: Google pauses crawling the site and may act as if it were blocked until the file comes back. A web page served where the file belongs is read as no file. A site that answers us with a bot check cannot be read from here, and we say that instead of guessing.

We fetch the file as LookupOwl. A crawler uses its own name, so a site that serves different files to different visitors can show a crawler something else. For the page itself, try the [AI readiness checker](https://lookupowl.com/ai-readiness-checker) and the [HTTP headers checker](https://lookupowl.com/http-headers-checker), which shows an `X-Robots-Tag` header.

### Frequently asked questions

**Does Disallow remove a page from Google?**

Not by itself. It stops crawlers from fetching the page, but a blocked page can still appear in results if other sites link to it. Use a noindex rule on a page that crawlers can fetch to keep it out.

**Do you fetch the pages I test?**

No. Test addresses are matched against the rules only. We fetch the robots.txt file of the site you enter, once, and nothing else.

**Which rule wins when two rules match?**

The longest one. When an Allow and a Disallow are equally long, the Allow wins. The duel shows every matching rule with its length, so you can see why.

**Is a crawler named in the file always blocked?**

No. A crawler uses the group that names it and ignores the group for all crawlers. A group that only allows something leaves everything else allowed for that crawler.

**Does Google read Crawl-delay or Noindex in robots.txt?**

No. Google ignores Crawl-delay, which Bing and some others read, and stopped supporting Noindex in robots.txt. Use a robots meta tag or an X-Robots-Tag header to keep a page out of results.

**How big can a robots.txt be?**

Google reads the first 500 KiB and ignores the rest. The page flags a longer file and tells you where it was cut.

**Is the file I paste kept?**

No. It is read for that one request, and is not stored, logged, cached or put in the page address.
