🎁 Get $100 FREE on your first $500 recharge·Limited-time bonus for new users·Sign up & claim your $100 instantly·$100 bonus on $500+ first deposits·Apply once, instant credit on signup·
* T&C apply
2026 AI-bot presets, validated, free

Robots.txt generator with 2026 AI-bot presets, block or allow GPTBot, ClaudeBot, and PerplexityBot in one click

Pick a preset for AI crawlers, scope path rules per bot, append your sitemap, and copy a validated robots.txt. Runs entirely in your browser. No signup, no backend, no logging.

Free No signup Spec-validated Copy-ready
Used to auto-build the Sitemap directive when the field below is empty.
Leave blank to auto-use https://yourdomain.com/sitemap.xml.
AI-bot preset
Classic search engines
Crawlers that build traditional search indices. Almost every site allows these in full.
Googlebot
Google - Google web search index
Bingbot
Microsoft - Bing web search index
DuckDuckBot
DuckDuckGo - DuckDuckGo web search index
YandexBot
Yandex - Yandex web search index
AI retrieval bots
Fetch live to answer a user prompt and may cite your URL in the response. Blocking these kills your AI-citation channel.
OAI-SearchBot
OpenAI - Fetches live for ChatGPT Search citations
ChatGPT-User
OpenAI - On-demand user-triggered fetch from ChatGPT
PerplexityBot
Perplexity - Fetches live for Perplexity answers and citations
ClaudeBot
Anthropic - Anthropic web fetch (retrieval and training mixed)
Claude-SearchBot
Anthropic - Live retrieval for Claude search-style answers
Applebot-Extended
Apple - Apple Intelligence / on-device AI features
AI training / ingestion bots
Ingest your content into model weights for future model generations. Block if you do not want your content used to train models.
GPTBot
OpenAI - Trains GPT models on web content
Google-Extended
Google - Opt-out token for Gemini and Vertex AI training
CCBot
Common Crawl - Common Crawl corpus, widely used as LLM training data
Amazonbot
Amazon - Powers Alexa and Amazon AI features
Meta-ExternalAgent
Meta - Meta AI training crawler
Diffbot
Diffbot - Structured-data extraction sold as training corpus
Scrapers and archivers
SEO crawlers, internet archivers, and aggressive scrapers. Block whatever you do not want competitors mining.
Bytespider
ByteDance - ByteDance / TikTok content ingestion
AhrefsBot
Ahrefs - Ahrefs SEO backlink index
SemrushBot
Semrush - Semrush SEO backlink index
ia_archiver
Internet Archive - Wayback Machine snapshotting
MJ12bot
Majestic - Majestic backlink index
Custom path rules
Crawl-delay (optional)
seconds between requests
Heads up: Google ignores Crawl-delay. Bing deprecated it (use Bing Webmaster Tools crawl control). Yandex still respects it.
robots.txt
  • At least one User-agent block
  • No accidental "Disallow: /" on *
  • Sitemaps are absolute https://
  • No duplicate User-agent groups
  • Under 500 KB (Googlebot limit)(1.05 KB)
# robots.txt
# Generated by Serpbays robots.txt generator
# https://serpbays.com/tools/robots-txt-generator
# Site: https://yourdomain.com

# Classic search engines
User-agent: Googlebot
Disallow:

User-agent: Bingbot
Disallow:

User-agent: DuckDuckBot
Disallow:

User-agent: YandexBot
Disallow:

# AI retrieval bots
User-agent: OAI-SearchBot
Disallow:

User-agent: ChatGPT-User
Disallow:

User-agent: PerplexityBot
Disallow:

User-agent: ClaudeBot
Disallow:

User-agent: Claude-SearchBot
Disallow:

User-agent: Applebot-Extended
Disallow:

# AI training / ingestion bots
User-agent: GPTBot
Disallow:

User-agent: Google-Extended
Disallow:

User-agent: CCBot
Disallow:

User-agent: Amazonbot
Disallow:

User-agent: Meta-ExternalAgent
Disallow:

User-agent: Diffbot
Disallow:

# Scrapers and archivers
User-agent: Bytespider
Disallow: /

User-agent: AhrefsBot
Disallow:

User-agent: SemrushBot
Disallow:

User-agent: ia_archiver
Disallow:

User-agent: MJ12bot
Disallow:

# Custom rules
User-agent: *
Disallow: /admin/

# Sitemaps
Sitemap: https://yourdomain.com/sitemap.xml
Where do I put this file?
  • Next.js: save to public/robots.txt or build dynamically with app/robots.ts. Served at /robots.txt.
  • WordPress: use Yoast or RankMath's robots.txt editor, or upload to the document root via FTP.
  • Vercel / Cloudflare Pages / Netlify: drop in the /public folder.
  • nginx: add an alias inside your server block pointing to the file.
  • Apache: place at DocumentRoot.
  • Verify: curl -I https://yourdomain.com/robots.txt - expect HTTP 200 with Content-Type text/plain.
Preview before you ship. A misconfigured robots.txt can de-index your site overnight. After deploy, confirm Googlebot's read in Search Console's robots.txt report.
What you get

Six things this generator does that a generic robots.txt template does not

AI-bot presets

Three radio cards: allow all AI bots, allow retrieval only and block training, or block every AI bot. Customizable per row after you pick.

Scoped path rules

Allow or block any bot on a specific path. Block GPTBot from /pricing/ while leaving Googlebot full access.

Sitemap auto-append

Type your site URL and the Sitemap directive populates with the conventional /sitemap.xml. Paste explicit URLs for multi-sitemap setups.

Live validation

Five invariants check on every keystroke: at least one User-agent, no accidental Disallow: / on *, absolute https Sitemap lines, no duplicate groups, under Googlebot 500 KB hard limit.

Deploy instructions

One-line install steps for Next.js (public or app/robots.ts), WordPress (Yoast and RankMath), Vercel, nginx, Apache. No copy-pasting from documentation.

Preview before ship

Output includes a curl verification command and a direct deeplink to the Google Search Console robots.txt report so you can confirm Googlebot reads it as intended.

Why this is different

The robots.txt generator built for the 2026 AI-crawler landscape

Ours
Serpbays
Other
Generic generator
Plugin
Yoast or RankMath
  • AI-bot category awareness
    Yes (4 categories)
    Rare
    Limited
  • Retrieval vs training split
    Explicit preset
    No
    No
  • Live validation
    Five invariants
    Rarely
    Limited
  • Deploy guidance per stack
    Five stacks covered
    Generic only
    WordPress only
  • Custom path rules
    Per-bot + common patterns
    Sometimes
    Sometimes
  • Price
    Free
    Free, light
    Bundled in paid plugin

What robots.txt does and does not do

Robots.txt is the crawler-enforcement file you serve at yourdomain.com/robots.txt to tell well-behaved bots which paths they may fetch. It is permission, not appearance. It controls whether a bot retrieves a URL at all. It does not control how a URL renders in a SERP once retrieved - for that, you need structured data in the page head.

A clean read on the four limits worth naming up front:

  1. Not a Google ranking factor. Robots.txt does not move you up or down in search results on its own. It only changes what Googlebot reads.
  2. Will not de-index already-indexed pages without noindex. If a URL is already in Google's index and you Disallow it, Google keeps the URL in the index (often with a "no information available" snippet) because it can no longer crawl the page to see a noindex tag.
  3. Will not stop bots that ignore the standard. The Robots Exclusion Protocol is voluntary. Scrapers, content-theft bots, and some AI training crawlers ignore it entirely; for those, you need IP-level blocking via your CDN or WAF.
  4. Will not influence how the page renders in SERPs. Rich results, breadcrumbs, FAQ accordions in the result snippet - those come from JSON-LD schema, not robots.txt.

The 2026 AI-bot map: retrieval vs training

The 2026 AI-crawler landscape splits into two functional buckets that classic robots.txt advice does not distinguish. Training bots ingest your content into model weights. Retrieval bots fetch live when a user asks a question and may cite your URL in the response. Blocking training does not stop retrieval; blocking retrieval kills the AI-citation channel entirely.

User-agentOperatorPurposeDefault
GPTBotOpenAITraining (GPT models)Allow for reach
OAI-SearchBotOpenAIRetrieval for ChatGPT Search citationsAllow
ChatGPT-UserOpenAIOn-demand fetch from a user promptAllow
ClaudeBotAnthropicAnthropic web fetch (retrieval and training)Allow
PerplexityBotPerplexityRetrieval for Perplexity citationsAllow
Google-ExtendedGoogleOpt-out for Gemini and Vertex AI trainingAllow for reach
CCBotCommon CrawlOpen corpus (used widely as LLM training data)Allow
Applebot-ExtendedAppleApple Intelligence and on-device AIAllow
BytespiderByteDanceByteDance and TikTok ingestionOften blocked
AmazonbotAmazonPowers Alexa and Amazon AI featuresAllow
Meta-ExternalAgentMetaMeta AI training crawlerAllow

The strategic trade-off: blocking training bots protects your content from being baked into model weights, but the model can still cite you via retrieval. Blocking retrieval bots is the move that severs the AI-citation channel. If you allow AI crawlers, pair this with an llms.txt file to guide them to your best content - robots.txt is the permission layer, llms.txt is the curation layer. The broader citation-side playbook for ChatGPT, including the corpus-vs-search distinction, is documented here.

Common robots.txt mistakes that de-index sites

Most robots.txt accidents are simple. A single character on a single line can pull an entire site out of Google's index by morning. These are the patterns that cause real damage:

  1. Disallow: / on production. The classic post-launch oops. A staging robots.txt that blocks everything ships to prod with the deploy. Within 48 hours, Googlebot reads it and starts deprioritizing your URLs.
  2. Blocking /wp-admin/admin-ajax.php. Some WordPress security plugins write this rule. It breaks JavaScript on the front-end, which can hurt Core Web Vitals and mobile-friendly scoring.
  3. Disallow on a path you also try to noindex via meta tag. Google cannot see the noindex tag if it cannot crawl the page. Use one or the other - not both - per URL.
  4. Blocking JS or CSS folders. Modern Googlebot renders pages with full JavaScript. Blocking script or stylesheet directories kills mobile-friendly evaluation.
  5. Trusting User-agent: * to cover named bots. Bots that target their own user-agent (GPTBot, ClaudeBot, AhrefsBot) read their own block first and ignore the wildcard rule. To block them, write rules with their specific UA.

How to deploy this robots.txt

Five steps. Under five minutes once you have the file.

  1. Copy or download the file using the buttons above the output panel.
  2. Place it at your site root. Next.js: public/robots.txt or build dynamically with app/robots.ts. WordPress: Yoast or RankMath robots.txt editor, or FTP to document root. Vercel and Cloudflare Pages: /public folder. nginx: alias inside the server block. Apache: DocumentRoot.
  3. Deploy. Ship the change. The file becomes reachable at https://yourdomain.com/robots.txt.
  4. Verify with curl. Run curl -I https://yourdomain.com/robots.txt and confirm a 200 response with Content-Type text/plain.
  5. Test in Search Console. Open the robots.txt report in Google Search Console to confirm Googlebot's read of the file matches what you intended.

Where this fits in the AI-search file stack

Robots.txt is the enforcement layer. llms.txt is the curation layer above it - the file that tells LLMs which of your canonical URLs to prioritize once they have permission to fetch.JSON-LD schema is the entity-resolution layer that decides whether you get cited once a bot reaches you. All three are necessary; none of them alone is sufficient. The deeper read on file-stack interaction lives in the llms.txt complete guide. And the heaviest AI-citation lever, despite what the file-format discourse suggests, is still off-site: the link-building side of crawl velocity earns the inbound signals that pull crawlers in faster. The full free SEO tools index lives at /tools.

How it works

Three steps. Sixty seconds. Zero signup.

Step 01

Pick an AI-bot preset

Allow all, retrieval only, or block all. Customize per-bot allow and block rules with one click after the preset applies.

Step 02

Add custom path rules and sitemap

Block /wp-admin/, allow /wp-admin/admin-ajax.php, paste your sitemap URL. Common patterns drop in from a menu.

Step 03

Copy or download

Validated robots.txt in your clipboard. Drop into /public/robots.txt and ship. Verify with curl -I and Search Console.

Frequently asked

Robots.txt generator - common questions

  • At your root domain, served at https://yourdomain.com/robots.txt with Content-Type text/plain. Next.js: drop into /public/robots.txt or use app/robots.ts. WordPress: upload to document root via FTP, or use Yoast or RankMath's robots.txt editor. Vercel, Netlify, Cloudflare Pages: /public folder. After deploy, run curl -I https://yourdomain.com/robots.txt and confirm a 200 response.

  • The major operators say yes and the user-agent strings are documented (OpenAI's GPTBot, Anthropic's ClaudeBot, PerplexityBot, Google-Extended, CCBot). Server logs across 2025 and 2026 show these bots reading robots.txt before fetching content. Scrapers and lesser-known bots vary; for those, IP-level or WAF rules are more reliable than robots.txt alone.

  • Only if you genuinely do not want your content used in model training. Blocking GPTBot does not stop OAI-SearchBot from fetching your pages live for ChatGPT Search citations - those are separate user-agents with separate purposes. Most marketing and blog content benefits from allowing both; block only if proprietary or paywalled material is at stake.

  • Training bots (GPTBot, CCBot, Google-Extended, ByteSpider) ingest your content into model weights for future generations. Retrieval bots (OAI-SearchBot, PerplexityBot, ClaudeBot, Applebot-Extended) fetch live when a user asks a question and may cite your URL in the response. Blocking training does not stop retrieval; blocking retrieval kills your AI-citation channel.

  • Yes. Add a Sitemap: https://yourdomain.com/sitemap.xml line at the top or bottom of the file (location does not matter). It is independent of any User-agent block. This is one of two canonical ways search engines discover your sitemap, alongside Search Console submission. The generator includes the directive automatically when you provide a sitemap URL.

  • The directives (User-agent, Allow, Disallow, Sitemap) are not case-sensitive. The paths after Allow and Disallow are case-sensitive because URLs are case-sensitive. /Admin/ and /admin/ are treated as different paths. The user-agent strings (GPTBot, Googlebot) are matched case-insensitively by every major crawler, though the documented spelling is what bot operators publish.

  • Google enforces a 500 KB hard limit; content beyond that point is ignored. Bingbot is similar. In practice, well-organized robots.txt files run under 10 KB. If yours is growing past that, you are likely over-using path rules and should refactor with broader patterns or move enforcement to noindex meta tags or HTTP X-Robots-Tag headers instead.

  • Robots.txt is a voluntary standard. Bots that ignore it (some scrapers, content-theft bots) require IP-level blocking via your web server, CDN, or WAF (Cloudflare, AWS WAF, fail2ban). For a small site, the User-agent disallow approach handles 95% of real traffic; for high-value content, layer in WAF rules on top.

More free AI-search tools

Robots.txt is the enforcement layer. Once crawlers can read your site, the next move is curating which URLs they prioritize: the llms.txt generator handles that. Then tell engines what each page is with the JSON-LD schema generator. Audit a single URL with the AI SEO Checker. The full tool index sits at /tools.

Browse all free SEO tools

You have the enforcement file. Now earn the inbound signal.

Robots.txt controls who reads you. Inbound links control how often they come back. Pair the enforcement file with the link-building side of crawl velocity - start free on Serpbays.

Start free on Serpbays