# robots.txt checker

> Read allow and disallow rules, sitemap links, and the mistakes that make a robots.txt file lie.

Fetch a public robots.txt, list Allow and Disallow rules and sitemap links, and flag common mistakes. Private addresses are blocked.

- Page: https://benchline.fabwaseem.com/t/robots-txt-checker
- Runs: in the browser, plus one server fetch of the public URL you give it.
- Price: free, no account
- Input: A public domain, a robots.txt URL, or a pasted robots.txt file.
- Output: User-agent groups, sitemap links, and pass, warn, or fail rows for common mistakes.
- Keywords: robots.txt checker, robots.txt, sitemap, disallow, crawler rules
- Updated: 2026-10-16
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Enter a domain or a robots.txt URL.** A bare domain is fetched at /robots.txt. A URL that already ends in robots.txt is fetched as written.
2. **Read the groups.** Each User-agent lists Allow and Disallow paths. Sitemap lines are listed separately. You can also paste a file and audit it locally.
3. **Fix the flagged rows.** Start with fails: a file that is HTML, a User-agent * that disallows the whole site, and a Sitemap that is not an absolute URL.

## Use it from an AI agent

MCP tool name: `check_robots_txt`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/robots-txt-checker with the input as the JSON body
This call fetches a public URL on the server. Private addresses are refused.

Fetch a public robots.txt and report whether the wildcard group blocks the site and whether Sitemap lines are absolute. Use this when you have a URL, not a pasted file.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "A public page or a robots.txt URL. A page URL is resolved to /robots.txt on that origin."
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "check_robots_txt",
    "arguments": {
      "url": "https://example.com/file"
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Does a Disallow hide a page?

No. robots.txt asks a polite crawler not to fetch a path. The URL can still be linked, shared, and indexed. Do not use it as a lock on private content.

### What if robots.txt is missing?

A 404 means there is no file. Crawlers treat that as allow all. Add a file if you want a Sitemap line or a rule for a specific agent.

### Why flag a relative Sitemap?

The robots.txt spec requires each Sitemap value to be an absolute URL. A path such as /sitemap.xml is not a valid Sitemap line.

### Which mistakes matter most?

A response that is HTML instead of a robots file, User-agent * with Disallow /, and a Sitemap value that is not absolute. Those three change what crawlers are allowed to fetch or find.

## Related tools

- [AI SEO checker](https://benchline.fabwaseem.com/t/ai-seo-checker): Score crawler access, llms.txt, structured data, and the on-page signals AI search uses.
- [llms.txt generator](https://benchline.fabwaseem.com/t/llms-txt-generator): Read a public sitemap and write an llms.txt index, plus an optional llms-full.txt.
- [Meta tags inspector](https://benchline.fabwaseem.com/t/meta-tags-inspector): Read title, description, canonical, robots, Open Graph, Twitter, and JSON-LD types from one public URL.
- [JSON-LD schema generator](https://benchline.fabwaseem.com/t/schema-generator): Fill a form, get valid schema.org JSON-LD for Article, FAQ, Product, Organization, and more.
