Free tool · runs in your browser
AI Crawler robots.txt Generator
Decide which AI bots may read your site. The most common choice is to block model training while staying visible in AI search answers. Pick a preset, adjust individual bots, then copy the rules.
Model training
Collect content to train AI models. Blocking these sends you no traffic loss from AI search.
AI search engines
Index pages so AI answers can cite and link to you. Blocking these removes you from those answers.
User-triggered fetchers
Open a page only when a user asks. Some of these do not follow robots.txt reliably.
Your robots.txt
# AI crawler rules generated at osasai.com/free-tools/ai-crawler-robots-txt-generator # Blocked User-agent: GPTBot Disallow: / User-agent: ClaudeBot Disallow: / User-agent: Google-Extended Disallow: / User-agent: Applebot-Extended Disallow: / User-agent: CCBot Disallow: / User-agent: meta-externalagent Disallow: / User-agent: Bytespider Disallow: / # Allowed User-agent: OAI-SearchBot Allow: / User-agent: Claude-SearchBot Allow: / User-agent: PerplexityBot Allow: / User-agent: DuckAssistBot Allow: / User-agent: ChatGPT-User Allow: / User-agent: Claude-User Allow: / User-agent: Perplexity-User Allow: / # Everyone else (search engines like Googlebot and Bingbot) User-agent: * Allow: /
Frequently asked questions
Will blocking AI crawlers hurt my Google rankings?
No. Blocking Google-Extended only stops your content being used for Gemini training; Google says it does not affect inclusion in Google Search or rankings. Googlebot itself is not an AI-only crawler and should stay allowed.
What is the difference between GPTBot and OAI-SearchBot?
GPTBot collects content that may be used to train OpenAI's models. OAI-SearchBot indexes pages so they can appear and be linked in ChatGPT search results. Many sites block GPTBot but allow OAI-SearchBot to stay visible in AI search.
Do all AI bots respect robots.txt?
The major training and search crawlers say they follow robots.txt. User-triggered fetchers, which open a page when a person asks the assistant about it, are less consistent, so robots.txt is a request rather than a guarantee. Use server or firewall rules if you need a hard block.
Where do I put the robots.txt file?
At the root of your domain, so it loads at yourdomain.com/robots.txt. In Next.js, put it in the public folder or generate it with app/robots.ts.
Building with AI? See the AI API cost calculator.