Skip to main content

Robots.txt generator

Build a robots.txt file to control search engines and AI crawlers. Block GPTBot, ClaudeBot, and other AI crawlers with one click.
Quick-start templates
Pick a preset or adjust everything manually
General settings
Basic settings for all crawlers
WordPress options
Block commonly used WordPress directories and pages
Crawler settings
Choose which bots may crawl your website
Googlebot
Google search
Bingbot
Microsoft Bing
DuckDuckBot
DuckDuckGo
Slurp (Yahoo)
Yahoo search
Baiduspider
Baidu (China)
YandexBot
Yandex (Russia)
Sogou
Sogou (China)
Exabot
Exalead
Applebot
Apple Siri and Spotlight
PetalBot
Huawei Petal Search
GPTBot
OpenAI, ChatGPT training
ChatGPT-User
OpenAI, ChatGPT browsing
OAI-SearchBot
OpenAI, SearchGPT
ClaudeBot
Anthropic, Claude training
Claude-Web
Anthropic, Claude Web (deprecated)
anthropic-ai
Anthropic, legacy
Google-Extended
Google, Gemini/Bard training
Google-CloudVertexBot
Google, Vertex AI
GoogleOther
Google, other AI
PerplexityBot
Perplexity AI
Perplexity-User
Perplexity, user requests
Bytespider
ByteDance / TikTok AI
Meta-ExternalAgent
Meta, AI training
FacebookBot
Meta, Facebook AI
Amazonbot
Amazon Alexa and AI
Applebot-Extended
Apple, AI training
DeepSeekBot
DeepSeek AI (China)
ChatGLM-Spider
Zhipu AI ChatGLM
CCBot
Common Crawl
cohere-ai
Cohere AI
Diffbot
Diffbot AI
YouBot
You.com AI
PhindBot
Phind AI
Timpibot
Timpi AI
omgilibot
Omgili / Webz.io
img2dataset
LAION image crawler
Operator
OpenAI Operator agent
Devin
Cognition Devin AI
Claude-SearchBot
Anthropic, Claude Search
MistralAI-User
Mistral AI
xAI-Bot
xAI (Elon Musk) Grok
Block additional directories
Add your own paths to block

Create a robots.txt in five steps

You don't need to know the syntax. The generator builds the file from your settings, and everything runs in your browser.

  1. Pick a template, for example 'Block AI crawlers', or start with the defaults.
  2. Decide whether crawlers are allowed by default, and enter your sitemap URL if you have one.
  3. Turn on the WordPress options that fit your site and add any extra directories you want to block.
  4. Switch single bots on or off in the categories search engines, AI crawlers, social media, and SEO tools.
  5. Click 'Generate robots.txt'. Then copy the text or download it as a file named robots.txt.

If you change nothing, search engines and social media bots are allowed. Part of the AI crawlers is already blocked, namely the bots that collect training data.

Where does the robots.txt go, and how do you add it in WordPress?

The file has to sit in the root of your domain and be reachable at your-domain.com/robots.txt. Every subdomain needs its own file. The file name is lowercase.

  • With FTP or your host's file manager, put the downloaded robots.txt in the root directory, next to wp-config.php.
  • If there is no real file, WordPress serves a virtual robots.txt. As soon as you upload a real file, it takes precedence.
  • Many SEO plugins have their own robots.txt editor. Paste the generated text there and save.
  • Check under 'Settings > Reading' that 'Discourage search engines from indexing this site' is off if you want your site to be found.

Then open the address in your browser. If you see your text, the file is in the right place.

Test the robots.txt before you upload it

After you generate the file, a URL tester appears below it. You enter an address or a path, choose a bot, and see whether the URL is allowed or blocked. It also shows the rule that applied.

  • The tester checks the text you just generated, not a file that is already on your website.
  • If several rules match, the one with the longer pattern wins. If the length is equal, Allow wins.
  • Wildcards with * and the end marker $ are supported.
  • Paths are case-sensitive, as they are at Google. Only the user-agent names ignore case.
  • Test pages that should stay open as well as pages you want to block.

Block AI crawlers: how it works here

There are two templates. 'Block AI crawlers' blocks every AI bot in the list and allows search engines. 'Block AI training only' blocks the bots that stand for training and allows the bots whose name contains User or Search, such as ChatGPT-User, OAI-SearchBot, and Perplexity-User.

The list has 31 AI bots. You can switch each one individually after you pick a template. Keep in mind that not every crawler follows the file.

Common robots.txt mistakes

  • An accidental 'Disallow: /' blocks the whole site, including Google. The template 'Block everything' is meant for staging and development.
  • Disallow prevents crawling, not indexing by itself. A blocked page can still show up in search results if other pages link to it. To keep a page out of the index you need a noindex, and the page has to stay crawlable for that.
  • Blocking CSS and JavaScript files. Google renders pages and needs these files to understand them.
  • Adding rules for a single bot. A bot with its own block reads only that block and ignores the rules under User-agent: *. Repeat your Disallow lines in every block.
  • Wrong paths. Case matters, and a path starts with a slash.
  • Generating the file but not uploading it. It only takes effect in the root of your domain.
  • Blocking /wp-admin/ without allowing admin-ajax.php. Some themes and plugins load front-end content through it. In that case add the line Allow: /wp-admin/admin-ajax.php by hand.

Frequently asked questions

Everything about robots.txt, AI crawlers, and how to block them
What is a robots.txt file?
A robots.txt file is a text file in the root of a website. It tells crawlers which pages or areas they should not crawl. It does not control whether a page appears in the index. It is part of the Robots Exclusion Protocol.
Which AI crawlers can I block?
The generator lists 31 AI crawlers, including GPTBot (OpenAI), ClaudeBot (Anthropic), Google-Extended (Gemini), PerplexityBot, Bytespider (ByteDance), Meta-ExternalAgent, DeepSeekBot, and CCBot (Common Crawl). You can block all of them or only the ones used for training.
Does Google follow Crawl-delay?
No. Googlebot ignores the Crawl-delay line. Other crawlers such as Bingbot or YandexBot do read it. The generator only writes the global delay if you choose one. You don't control Google's crawl rate through the robots.txt.
Can I test whether a URL is blocked by my robots.txt?
Yes. After you generate the file, the URL tester appears. Enter a URL or a path, choose a bot, and see whether the URL is allowed or blocked and which rule applied. It checks the text you just generated, not a file on your website. Paths are case-sensitive, as at Google.
What is the difference between AI training and AI search?
Many AI companies use separate bots. Training bots such as GPTBot or ClaudeBot collect data to train AI models. Search bots such as ChatGPT-User or Perplexity-User fetch pages to answer a user's request. You can block training and still allow search.
Do all crawlers follow the robots.txt?
No. The robots.txt is a guideline, not an enforcement mechanism. Reputable crawlers such as Googlebot and Bingbot follow it, and so do most bots listed here. Some AI crawlers have been reported to ignore it. For sensitive content, use additional protection.
What do the templates do?
Templates are presets. 'Block AI crawlers' blocks all AI bots and allows search engines. 'Block AI training only' allows AI search bots and blocks training bots. 'Search engines only' allows only traditional search engines. You can adjust every template after you pick it.
How do I block WordPress-specific directories?
The generator has switches for wp-admin, wp-includes, search results, the /private/ folder, the uploads folder, tag archives, author archives, and date archives. The date archives block the year paths from /2000/ up to the current year (for example /2026/). If your posts live under /year/title/, this also blocks those posts. Turn on the ones you want and the matching Disallow rules are added.
Can I add more than one sitemap?
Yes. Click 'Add another sitemap' and enter the full URL. All sitemaps you enter are listed at the end of the robots.txt.
Where do I upload the robots.txt file?
The file has to be in the root directory of your website and reachable at https://your-domain.com/robots.txt. At most hosts this is the public_html or www folder.

Related tools

All tools

Changelog

Latest updates and improvements to the robots.txt generator
v2.3.0

November 20, 2026

Correct date archives, case-sensitive tester, more precise texts

  • • Added this English version of the tool
  • • Fixed: the date archives option blocked /20*/, which also caught posts whose address starts with 20, such as /2026-seo-trends/. It now blocks only the year paths from /2000/ up to the current year
  • • Fixed: the URL tester ignored the case of paths. It now treats paths as case-sensitive like Google, while user-agent names stay case-insensitive
  • • Fixed: custom directories such as /?s= or /download$ got a slash appended and no longer matched. The slash is now added only to real directory paths
  • • Fixed: the date archives started in 2010 and left older year paths open. They now start at /2000/
  • • Corrected: the crawl delay is a global setting, not a per-bot setting
  • • The FAQ explains that Google ignores Crawl-delay and mentions the URL tester
v2.2.0

November 17, 2026

Guide and more precise FAQ

  • • Added a guide with instructions and use cases below the tool
  • • Added related tools at the end of the page
  • • The FAQ describes the robots.txt as a way to control crawling, not indexing
  • • The FAQ lists all eight WordPress options, including /private/ and the uploads folder
v2.1.0

December 28, 2025

URL tester

  • • Added a URL tester that checks whether a URL is blocked
  • • Bot selection in the URL tester (more than 50 bots)
  • • Shows the matching rule and the reason for a block
  • • Supports full URLs and paths
  • • Pattern matching for wildcards (*) and exact matches ($)
Show older versions
v2.0.0

December 9, 2025

Major update

  • • Added AI crawlers (GPTBot, ClaudeBot, PerplexityBot, and more)
  • • Five preconfigured templates for a quick start
  • • WordPress-specific blocking options
  • • Bot management by category with quick selection
  • • Support for multiple sitemaps
  • • Social media and SEO tool crawlers
  • • Extended directory management
v1.0.0

December 4, 2025

Launch

  • • Eight preconfigured search engine bots
  • • Crawl delay (now a global setting for all crawlers)
  • • Dynamic directory management
  • • Sitemap URL integration
  • • Live preview of the robots.txt
  • • Download function