100% free
Robots.txt generator
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.
- Pick a template, for example 'Block AI crawlers', or start with the defaults.
- Decide whether crawlers are allowed by default, and enter your sitemap URL if you have one.
- Turn on the WordPress options that fit your site and add any extra directories you want to block.
- Switch single bots on or off in the categories search engines, AI crawlers, social media, and SEO tools.
- 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
What is a robots.txt file?
Which AI crawlers can I block?
Does Google follow Crawl-delay?
Can I test whether a URL is blocked by my robots.txt?
What is the difference between AI training and AI search?
Do all crawlers follow the robots.txt?
What do the templates do?
How do I block WordPress-specific directories?
Can I add more than one sitemap?
Where do I upload the robots.txt file?
Related tools
Changelog
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
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
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
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
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