Skip to main content
Premier SEO Services

SEO tools

Robots.txt Generator

Build a robots.txt file with allow and disallow rules for any crawler, block AI crawlers such as GPTBot, ClaudeBot and Google-Extended, add your sitemap and download the file.

  • Runs in your browser
  • Free, no sign-up
  • Unlimited use
  • Updated 30 September 2026

Robots.txt Generator

Set the options, then copy or download the result

How to use the Robots.txt generator

  1. 1Choose All crawlers: Allow, with exceptions below for a normal site.
  2. 2Tick WordPress defaults if you use WordPress, and add Allow and disallow rules for paths to keep out of crawling.
  3. 3Under AI crawlers, tick the bots to block; each one says what it does.
  4. 4Add your Sitemap URLs, then Download the file and upload it to your domain's root. Use Test these rules in the robots.txt tester to check URLs against it.

Example: WordPress site blocking three AI crawlers

Input
All crawlers: Allow · WordPress defaults: on
Disallow: /cart/ · Disallow: search
AI crawlers: GPTBot, CCBot, Google-Extended
Sitemap: https://www.example.com/sitemap.xml
Output
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /cart/
Disallow: /search

# AI crawlers
User-agent: GPTBot
User-agent: CCBot
User-agent: Google-Extended
Disallow: /

Sitemap: https://www.example.com/sitemap.xml

The path search was typed without a slash; the generator adds it. Several user-agent lines above one rule form a single group, as RFC 9309 allows.

User-agent groups and rules

A robots.txt file is a list of groups. Each group starts with one or more User-agent: lines naming crawlers, followed by Allow: and Disallow: rules. A crawler follows the group that names it most specifically and ignores the rest; User-agent: * covers every crawler without its own group. Within a group, the longest matching rule wins, so Allow: /wp-admin/admin-ajax.php beats Disallow: /wp-admin/. Paths are case-sensitive; * matches any characters and $ marks the end of the URL.

Blocking or allowing AI crawlers

AI companies use separate user agents for training, search and user-triggered fetches, so you can block one without the others:

TokenPurpose
GPTBot, ClaudeBot, CCBot, Meta-ExternalAgentCollect training data
OAI-SearchBot, Claude-SearchBot, PerplexityBotIndex pages for AI search answers
ChatGPT-User, Claude-UserFetch a page a user asked about
Google-Extended, Applebot-ExtendedControl tokens: not crawlers; they govern AI use of content Googlebot/Applebot already crawl

Blocking Google-Extended doesn't affect Google Search rankings or AI Overviews in Search. robots.txt is a request; well-behaved crawlers follow it, but it isn't access control.

Adding your sitemap

Sitemap: https://www.example.com/sitemap.xml can go anywhere in the file and applies to all crawlers. Use the full URL, and list several sitemaps or a sitemap index if you have more than one. It's the easiest way for crawlers other than Google and Bing (where you can also submit sitemaps directly) to find your sitemap. Need one? Use the XML sitemap generator.

Crawl-delay: who respects it

Crawl-delay: 10 asks a crawler to wait 10 seconds between requests. Bing and Yandex honor it; Google ignores it and adjusts its crawl rate automatically based on how your server responds (slow responses and 5xx/429 errors slow it down). If Googlebot really overloads your server, return 503 or 429 temporarily rather than relying on crawl-delay.

Mistakes that block a whole site

  • Disallow: / under User-agent: *, often left over from a staging site.
  • Blocking CSS and JavaScript folders, which stops Google rendering pages properly.
  • Using robots.txt to hide a page from search: a blocked URL can still be indexed (without content) if other sites link to it. Use noindex instead, and don't block the page, or crawlers will never see the noindex.
  • Typos in field names (Disalow), which crawlers silently ignore.
  • Serving robots.txt with a 5xx error, which makes Google pause crawling the whole site.

Is anything I enter stored?

This tool runs entirely in your browser. Your text is not uploaded to our servers.

Sources

Questions about the Robots.txt generator

Does robots.txt stop pages being indexed?

No. It stops crawling, not indexing. A blocked URL can still appear in results if it's linked from elsewhere. To keep a page out of search, allow crawling and add a noindex robots meta tag.

How do I block GPTBot?

Add a group with User-agent: GPTBot and Disallow: /, or tick GPTBot under AI crawlers. That stops OpenAI's training crawler; OAI-SearchBot and ChatGPT-User are separate tokens.

Does Google support crawl-delay?

No. Googlebot ignores Crawl-delay. Bing and Yandex respect it.

Learn more

Last updated 30 September 2026Maintained by Premier SEO Services

Report a problem