How to test robots.txt for AI crawlers
Your robots.txt file controls which crawlers can access your site. Here's how to test it for AI bots specifically.
Method 1: Manual inspection
- Visit
https://yourdomain.com/robots.txt - Search for these user-agents:
User-agent: GPTBot
User-agent: Google-Extended
User-agent: ClaudeBot
User-agent: PerplexityBot
User-agent: ChatGPT-User
User-agent: anthropic-ai
- For each, check what follows:
Disallow: /— Blocked from all contentAllow: /— Allowed full accessDisallow: /private/— Blocked only from specific paths- (Missing) — Follows default (usually allowed)
Method 2: UltraScout automated test (fastest)
UltraScout's free AI SEO Score automatically:
- Fetches your robots.txt
- Parses all
User-agentdirectives - Identifies rules for all major AI crawlers
- Shows you at a glance which are allowed vs blocked
Common issues to watch for
| Issue | Example | Fix |
|---|---|---|
| Global block | User-agent: * then Disallow: / | Add specific allow for AI bots before global block |
| Missing AI bots | No GPTBot entry | Add User-agent: GPTBot then Allow: / |
| Overly restrictive | Disallow: / for AI | Change to Allow: / |
Example: Good robots.txt for AI
User-agent: GPTBot
Allow: /
User-agent: Google-Extended
Allow: /
User-agent: ClaudeBot
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: *
Disallow: /admin/
Disallow: /private/
Check your AI SEO Score — free, instant, no sign-up required
Get My Free AI SEO Score → View Full Audit Report