Robots.txt Checker
Free robots.txt checker: fetch or paste a file, validate syntax, test any path against Googlebot, and see which AI crawlers (GPTBot, ClaudeBot, Google-Extended, and more) are allowed on / — no signup.
Results appear once you fetch a URL or paste a robots.txt body.
Check a robots.txt file (URL fetch or paste)
A robots.txt checker answers three questions before you ship: is the file syntactically sane, which paths does each User-agent allow or block, and did you accidentally Disallow Googlebot or an AI crawler you still want? Paste the body, or fetch https://{host}/robots.txt through the form above. Google's robots.txt introduction is clear: the file manages crawl access — it is not a reliable way to keep a URL out of search results.
Test URLs against user-agents (Googlebot and others)
Path matching is case-sensitive and prefix-based. Use the path + User-agent fields to ask “Can Googlebot fetch /pricing/?” or “Is /api/ open to GPTBot?” Per How Google interprets robots.txt, longer paths beat shorter ones; equal length prefers Allow. Empty Disallow: means allow-all for that line.
| Rule setup | Path tested | Googlebot result | Why |
|---|---|---|---|
Disallow: /admin/Allow: /admin/public/ | /admin/public/x | Allow | /admin/public/ is longer than /admin/ |
Disallow: / under GPTBot only | / | Allow (Googlebot) | Named GPTBot group does not apply to Googlebot; * (if open) does |
Disallow: (empty) under * | /anything | Allow | Empty Disallow is ignored as a block — treat as allow-all |
| No matching rule for that agent | /blog/ | Allow | Default is crawlable when no Disallow matches |
AI crawlers in robots.txt (GPTBot, ClaudeBot, and friends)
This page also covers the merged “AI crawler checker” job: show whether common AI User-agent tokens can fetch /. Tokens such as GPTBot, ChatGPT-User, OAI-SearchBot, ClaudeBot, Google-Extended, Bytespider, and PerplexityBot appear in the matrix. Matching is by the token string publishers document — serpvi does not IP-validate crawler identity (first-party bot scoring elsewhere is UA-based too). Vendor docs change; always confirm the current token name before you ship a block.
| Token (examples) | Typical product intent | Common robots pattern | Check in this tool |
|---|---|---|---|
GPTBot | OpenAI training / browsing crawl | Disallow: / to opt out of sitewide crawl | “Is GPTBot blocked?” banner + matrix row |
ChatGPT-User / OAI-SearchBot | User-initiated fetch / search features | Often left allowed while GPTBot is blocked | Separate matrix rows — do not conflate with GPTBot |
ClaudeBot | Anthropic crawler | Named group Allow/Disallow | Matrix + path tester |
Google-Extended | Google AI / Gemini training control (separate from Googlebot) | Block Extended while leaving Googlebot open | Matrix row — verify Googlebot still allows |
Bytespider | ByteDance crawler | Named Disallow if you want to opt out | Matrix row |
Worked example — block training crawl, keep search crawl, leave Googlebot on * rules:
User-agent: GPTBot
Disallow: /
User-agent: ChatGPT-User
Allow: /
User-agent: OAI-SearchBot
Allow: /
User-agent: *
Disallow: /admin/
Allow: /admin/public/
Sitemap: https://example.com/sitemap.xmlCommon syntax errors and Allow vs Disallow
Most production incidents are boring: a typo in User-agent, a path missing the leading /, a relative Sitemap URL, or Disallow: / copied under * during a staging lock-down and never reverted. The checker lists unknown directives and path-shape issues with line context. Google documents only User-agent, Allow, Disallow, and Sitemap as supported fields — Crawl-delay is widely ignored by Googlebot.
How to check robots.txt (step-by-step)
- Fetch or paste the live file for the exact host users hit (www vs apex often diverge).
- Scan syntax notes, then run path tests for your money pages under Googlebot.
- Read the AI matrix for
/— confirm GPTBot / Google-Extended match your policy, not a leftover staging block. - Confirm Sitemap lines are absolute
https://…URLs, then spot-check those sitemaps in the sitemap checker. - After deploy, re-fetch once — CDNs and multi-region origins can serve different robots.txt bodies.
Pre-launch diagnostic checklist
- Staging leak:
Disallow: /under*still live on production. - Wrong host: apex allows crawl; www (the canonical) blocks it — or the reverse.
- AI vs search mix-up: Google-Extended blocked and Googlebot accidentally grouped with it.
- Soft 404 factory: parameter URLs crawlable while thin; tighten Disallow or fix canonicals (see redirect checker for hop mistakes after migrations).
- False security: Disallow used instead of auth on private apps — scrapers ignore robots.txt.
Where this fits next to search traffic
Crawl access and click quality are related but not the same signal. Use this checker for file-level allow/block decisions; use how serpvi works and your connected data sources when you want Search Console coverage next to session drops on sites you connect. First-party human/bot quality scoring needs the serpvi script installed on that site — it is not inferred from robots.txt alone.
Browse other free SEO tools, including the SERP preview, CTR calculator, and today's llms.txt generator (different job: LLM-oriented summary file, not crawl rules).
Related tools
- Sitemap Checker — Free sitemap checker: find sitemap.xml, validate urlset or sitemap index, count URLs, and flag missing lastmod or malformed XML — no signup.
Questions
- How to check robots.txt file?
- Open https://your-domain/robots.txt in a browser, or paste the file into this robots.txt checker (or fetch the origin URL). Confirm User-agent groups, Allow/Disallow paths, Sitemap lines, then test the exact paths you care about for Googlebot and any AI crawlers you named.
- Is robots.txt legal?
- The Robots Exclusion Protocol is a voluntary convention, not a statute that forces crawlers to obey. Respectable bots (Googlebot, Bingbot, and many AI crawlers that publish a token) honor it; scrapers may ignore it. For secrets, use authentication — not Disallow alone.
- Is robots.txt good for SEO?
- Yes when you use it to manage crawl budget and keep soft URLs out of the crawl queue. It is a poor way to hide pages from search results: Google can still index a disallowed URL if other sites link to it, usually without a snippet. Prefer noindex or access control when you need the URL out of results.
- Does robots.txt still work?
- Yes. Google still fetches and caches robots.txt (documented refresh behavior is on the order of a day, faster when it notices changes). Named AI crawlers that publish a User-agent token also read it. Always re-test after deploys — a single Disallow: / under the wrong agent can blank crawl access.
- How do I block GPTBot in robots.txt?
- Add a group that names GPTBot and Disallow the paths you want blocked (Disallow: / blocks the whole site for that agent). Load the sample above or paste your file and read the “Is GPTBot blocked?” row. Also decide separately for ChatGPT-User and OAI-SearchBot — OpenAI documents them as different products.
- What are the limits of this checker?
- Live URL mode is one robots.txt fetch via the public check API with SSRF guards, a modest per-IP rate limit (~20/minute), and no sitewide crawl. Paste mode is unlimited and offline. Matching is User-agent token + path prefix — not IP-validated crawler identity.
- How are Allow and Disallow conflicts resolved?
- Google’s documented rule: the most specific (longest) matching path wins; on a tie, the least restrictive rule wins (Allow beats Disallow). An empty Disallow line means allow-all for that rule. Bots without a named group fall back to *.