Free tool
robots.txt Generator (Free, with AI Crawler Blocking)
Create a robots.txt in your browser and block AI crawlers such as GPTBot. Learn how to write it, too.
robots.txt
User-agent: * Disallow: /admin Disallow: /api Disallow: /draft Sitemap: https://example.com/sitemap.xml
Runs entirely in your browser. Nothing you enter is uploaded.
How to use
- 1Enter the crawler name in the "User-agent" field (leave "*" for all crawlers). Put paths you don't want crawled in "Disallow (one per line)" and exceptions to allow in "Allow (one per line)". The preset Disallow values (/admin and so on) are only examples, so replace them.
- 2Fill in "Sitemap URL" (the preset is an example.com placeholder) and "Crawl-delay" if needed. To turn away AI crawlers, pick their names under "Block AI crawlers (optional)".
- 3Copy the result with the "Copy" button in the robots.txt box and save it as a UTF-8 text file named robots.txt. Upload it to your site root (for example https://example.com/robots.txt) and you're done.
When it helps
- Reducing crawler requests to URLs that don't need crawling, such as admin screens or internal search results.
- Telling crawlers where your sitemap is when you launch a new site.
- Signaling to training crawlers such as GPTBot and ClaudeBot that your articles should not be used to train AI models.
What is robots.txt? What it does and what it can't do
robots.txt is a text file at the root of your site. It tells search engine and AI crawlers which URLs they may crawl. Google describes it as mainly a way to manage crawler traffic to your site.
But robots.txt is not access control. The standard, RFC 9309, states that its rules are not a form of access authorization. Each crawler decides whether to follow them, and Google notes that robots.txt instructions cannot enforce crawler behavior.
How to write robots.txt: the basic rules
A robots.txt is a list of groups, each starting with a User-agent line. Under it you write Disallow (paths you don't want crawled) and Allow (exceptions that may be crawled) for that crawler.
Google supports four fields: user-agent, allow, disallow and sitemap. Others, such as Crawl-delay, are ignored.
- Name the file robots.txt and save it as UTF-8 text. A site can have only one.
- User-agent names the crawler (not case-sensitive). "*" means all crawlers, though Google's ad crawlers (AdsBot) must be named explicitly.
- Disallow and Allow paths start with "/". Paths are case-sensitive, so /Admin and /admin are different.
- When both Allow and Disallow match a URL, the rule with the longer, more specific path wins. On a tie, Google uses the less restrictive Allow.
- You can use * (any run of characters) and $ (end of the URL). Google, Bing and other major search engines support them.
- Sitemap takes the full URL of your sitemap, for example https://example.com/sitemap.xml.
- A crawler follows only the group whose name matches it most specifically. A crawler with its own group ignores the "User-agent: *" group.
Using the robots.txt generator: an example input and output
Here is an example for a WordPress site: ask crawlers to stay out of the admin area (/wp-admin/) but allow admin-ajax.php inside it. These are the same rules WordPress puts in its default robots.txt.
The tool writes Allow lines first, but under Google's rules and RFC 9309 the longest matching path wins regardless of line order, so the result is the same.
- Leave "User-agent" as "*".
- Clear the preset values (/admin, /api, /draft) in "Disallow (one per line)" and enter /wp-admin/.
- Enter /wp-admin/admin-ajax.php in "Allow (one per line)".
- Put the example https://example.com/sitemap.xml in "Sitemap URL" and leave "Crawl-delay" empty. The output shows the following.
User-agent: *
Allow: /wp-admin/admin-ajax.php
Disallow: /wp-admin/
Sitemap: https://example.com/sitemap.xmlMajor AI crawlers: user agent names and purposes
AI crawlers fall into three broad groups: collection for training and datasets, indexing for AI search, and fetching pages on a user's request. The main vendors use a separate user agent for each purpose (the list below follows each vendor's official documentation as of November 26, 2026).
- GPTBot (OpenAI): collects content that may be used to train its generative AI foundation models.
- ClaudeBot (Anthropic): collects web content that could contribute to training its AI models.
- Google-Extended (Google): a token that controls whether content Google crawls may be used to train the foundation models behind Google's generative AI products, and to ground answers outside Search. It has no crawler of its own.
- Applebot-Extended (Apple): controls whether data Applebot crawls may be used to train the foundation models behind Apple's generative AI features. It doesn't crawl pages itself.
- meta-externalagent (Meta): crawls for uses such as training foundation AI models and improving products by indexing content directly.
- CCBot (Common Crawl): crawls for an open repository of web crawl data that anyone can use for free.
- OAI-SearchBot (OpenAI): used to show sites in ChatGPT's search features.
- Claude-SearchBot (Anthropic): crawls the web to improve the quality of search results for users.
- PerplexityBot (Perplexity): surfaces and links sites in Perplexity search results. Perplexity says it isn't used for AI foundation models.
- ChatGPT-User (OpenAI): fetches pages for user actions in ChatGPT. OpenAI says robots.txt rules may not apply.
- Claude-User (Anthropic): fetches pages to answer users' questions. Blocking it stops these fetches.
- Perplexity-User (Perplexity): fetches pages to answer users' questions. Perplexity says it generally ignores robots.txt.
How to block AI crawlers with robots.txt
When you pick bots under "Block AI crawlers (optional)", the tool adds a group with "Disallow: /" (the whole site) for each one.
The example below is the earlier input with GPTBot, ClaudeBot and Google-Extended selected. AI search bots such as OAI-SearchBot are not selected, so they follow the "User-agent: *" rules. This blocks training bots and allows AI search bots.
Blocking AI search bots can keep your site out of that service's answers. OpenAI says sites that opt out of OAI-SearchBot are not shown in ChatGPT search answers (except as navigational links), and Anthropic says blocking Claude-SearchBot may reduce your visibility in its search results.
Google-Extended is not a switch for appearing in Google Search or AI Overviews. You manage appearance in AI Overviews and AI Mode with the Search generative AI control in Search Console.
User-agent: *
Allow: /wp-admin/admin-ajax.php
Disallow: /wp-admin/
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
Sitemap: https://example.com/sitemap.xmlCommon mistakes and cautions
A single line in robots.txt can affect your whole site. Check these points before you publish.
- Crawler-specific groups: if a "User-agent: Googlebot" group holds only "Allow: /", Googlebot stops reading the Disallow lines in the "User-agent: *" group.
- Groups with no rules: under RFC 9309, consecutive User-agent lines form one group, even with blank lines between them, and for Google, lines such as Sitemap don't split a group either. If "User-agent: *" has no rules and is followed by "User-agent: GPTBot" and "Disallow: /", that Disallow applies to every crawler. This tool prevents that by adding "Allow: /" when the first group has no rules.
- A leftover "Disallow: /": it asks crawlers to skip the whole site. Don't leave a test-environment setting on your live site.
- Anyone can read robots.txt: the paths you list become public. Don't list URLs you want to keep hidden; protect them with authentication instead.
- Server errors: if robots.txt returns a 5xx error, Google stops crawling the site for the first 12 hours.
- Timing: Google generally caches robots.txt for up to 24 hours. OpenAI says search results take about 24 hours to reflect a change, and Perplexity and Meta say up to 24 hours.
Uploading and checking robots.txt
After uploading the file, open /robots.txt (for example https://example.com/robots.txt) in a private browser window to check that it loads. On services such as Wix or Blogger, you may not need to, or be able to, edit robots.txt directly.
Search Console's robots.txt report shows how Google reads the file, including when it was last crawled and any warnings or errors. In an emergency, you can request a recrawl. It works for a Domain property or a URL-prefix property without a path, such as https://example.com/.
FAQ
If I add Disallow, will the page disappear from search results?
No. robots.txt controls crawling. A blocked URL that other pages link to can still appear in results, without a description. Use noindex for pages you want out of results, and don't block those pages in robots.txt (crawlers can't read the noindex if you do).
Where should robots.txt go?
At the root of the host, for example https://example.com/robots.txt. A file in a subdirectory is not read. The rules apply only to the protocol, host and port where the file sits, so a subdomain such as https://m.example.com/ needs its own robots.txt.
What happens if my site has no robots.txt?
That's fine. If robots.txt returns a 4xx such as 404 (except 429), Google assumes there are no crawl restrictions. If the whole site may be crawled, you don't need the file.
Does Google respect Crawl-delay?
No. Google doesn't support Crawl-delay and ignores the line. Bing said on its official blog in 2012 that Bingbot honors it, Common Crawl says CCBot obeys it, and Anthropic says it respects it where appropriate.
If I block GPTBot, will my site also disappear from ChatGPT search?
No. OpenAI says each setting is independent. GPTBot is for training and OAI-SearchBot is for ChatGPT search, so you can block only the training bot, GPTBot, and allow OAI-SearchBot so your site can appear in search results.
Does blocking Google-Extended affect Google Search or AI Overviews?
Google says Google-Extended does not affect a site's inclusion in Google Search and is not used as a ranking signal. Appearance in AI Overviews and AI Mode is managed with the Search generative AI control in Search Console (available worldwide since August 31, 2026). That control does not affect AI training, so use Google-Extended to opt out of training.
Can robots.txt reliably stop AI from using my content?
No. robots.txt is a request to crawlers, not access control, and fetches a user asks for, such as ChatGPT-User and Perplexity-User, may not follow it. Protect pages that must stay private with a password or similar.
Related tools
Automate this inside your content workflow.
TIXIGEN manages SEO, metadata and multilingual publishing in one flow.