Build a valid robots.txt file visually, or paste an existing one to validate rules and test if a specific URL is blocked.
Site Settings
Rules
Your robots.txt
robots.txt
Paste Your robots.txt
Syntax Check
What Is a Robots.txt File?
A robots.txt file is a plain-text file placed at the root of your domain that tells web crawlers which pages they can access and which to skip. It follows the Robots Exclusion Protocol and is read by Google, Bing, and most major AI crawlers before they begin fetching your site.
A correctly configured robots.txt file prevents crawl budget waste on low-value pages such as admin directories, internal search results, and duplicate pagination, while making sure your important content is crawled efficiently. In 2026 it also plays a second role: controlling which AI systems can access your content for training and for live citation.
AI Crawlers Are Not All the Same
Most major AI providers run two separate bots: a training crawler that feeds future model updates, and a search or retrieval crawler used at query time to answer a live question. Blocking the training bot does not stop the search bot, and blocking the search bot removes you from that engine's cited answers immediately.
| User-agent | Owner | Purpose | Blocking it means |
|---|---|---|---|
| GPTBot | OpenAI | Training | Opt out of training only |
| OAI-SearchBot | OpenAI | ChatGPT Search | Lose ChatGPT citations |
| ChatGPT-User | OpenAI | User-triggered browsing | Lose ChatGPT citations |
| ClaudeBot / anthropic-ai | Anthropic | Training | Opt out of training only |
| Claude-Web / Claude-SearchBot | Anthropic | Claude citations | Lose Claude citations |
| PerplexityBot | Perplexity | Search index | Lose Perplexity citations |
| Google-Extended | Gemini training only | No effect on Search ranking | |
| CCBot | Common Crawl | Dataset used by many models | Opt out of training only |
A common and reasonable posture in 2026 is to block the training-only bots (GPTBot, anthropic-ai, Google-Extended, CCBot) while leaving the search and citation bots (OAI-SearchBot, ChatGPT-User, Claude-Web, PerplexityBot) allowed, so you stop feeding future models without losing today's AI search visibility.
A caveat on Perplexity: Cloudflare reported in August 2025 that Perplexity was running undeclared crawlers that rotate user agents, IPs, and ASNs to bypass robots.txt disallow rules. robots.txt is a voluntary convention, not enforcement, so if a crawler chooses not to honour it, blocking it there will not stop that specific bot. Server-level or firewall blocking is the only reliable control against crawlers that do not comply.
What to Block and What to Allow
Block admin directories such as /wp-admin/, internal search result pages, login and registration paths, staging or test directories, and duplicate parameter-based URLs. Never block your XML sitemap, CSS files, or JavaScript files that affect rendering, since Google needs them to render your pages correctly for indexing.
Always add your sitemap URL at the bottom of your robots.txt using the Sitemap: directive. This helps every crawler, including AI bots, find your sitemap immediately without a manual submission in Search Console.
The most damaging robots.txt mistake: a single line Disallow: / under User-agent: * removes your entire site from every search index and every AI citation source at once. Always validate your robots.txt with the tester above after any site change, and check Google Search Console for crawl errors afterward.
Common Robots.txt Mistakes
Blocking CSS and JavaScript. Google needs these files to render your pages correctly. Blocking them degrades Core Web Vitals assessment and can make pages appear broken in Search Console's rendering tool.
Missing the Sitemap directive. Without Sitemap: https://yourdomain.com/sitemap.xml in your robots.txt, crawlers must discover your sitemap through a manual submission or by following links.
Misspelled or outdated user-agent names. User-agent names in robots.txt are case-sensitive. Always use the exact, current string from the crawler's official documentation rather than a name copied from an old blog post, since these tokens do change over time.
Frequently Asked Questions
Complete Your Crawler Control Setup
Guide AI crawlers to your best content. Pair with robots.txt for complete crawler control.
Open Tool → 🗺SEOXML Sitemap GeneratorDeclare your sitemap inside robots.txt for instant discovery by all crawlers.
Open Tool → 🧩Technical SEOSchema Markup GeneratorAdd structured data so search engines and AI systems understand your pages.
Open Tool → 🌐SEOHreflang GeneratorBuild multilingual SEO tags for international sites alongside your crawler rules.
Open Tool → 🎯AI SearchAEO Readiness CheckerScore your content against 15 AI citation signals to see if it is likely to be cited.
Open Tool → 🔍SEOGoogle SERP SimulatorPreview your title and meta description in Google results before you publish.
Open Tool →