SEO tools
Robots.txt Generator
Make a robots.txt file for your site: choose what to block, decide which AI crawlers may visit, add your sitemap and download the file.
Build your robots.txt
Choose what crawlers may visit. The file updates as you go.
Start from
The rules your file begins with.
On Shopify, Wix or Squarespace? They write robots.txt for you. Shopify lets you change it through a robots.txt.liquid template in your theme; Wix and Squarespace manage it in their own settings.
Sitemap
Where your sitemap is, so crawlers find all your pages.
The full address, starting with https://. One per line if you have several.
Bing crawl delay
Optional. Ask Bing to wait between requests if it visits too often.
Only Bing reads this. Google ignores Crawl-delay and sets its own pace from how your server responds.
About robots.txt
How the generator writes your file
robots.txt is a plain text file at the top of your site. Crawlers read it before they visit, to see which addresses they may request. The generator writes each rule the way Google and the robots.txt standard, RFC 9309, read it.
- One group for every crawlerYour paths go under User-agent: *, the rules for any crawler that has no group of its own. A group always gets at least one rule, so it can't merge into the next one.
- One group per choiceThe AI crawlers you block share one group that ends in Disallow: /. Anything not named there follows the * group.
- Bing gets the rules againA crawler with a group of its own ignores the * group. So when you set a crawl delay, the Bingbot group repeats your rules beside it.
- The longest rule winsWhen an Allow and a Disallow both match an address, the longer one decides. That is how Allow: /wp-admin/admin-ajax.php wins over Disallow: /wp-admin/.
- Sitemaps stand apartSitemap lines belong to no group, so they go at the end, each as a full https:// address.
- Nothing Google ignoresNoindex and Host lines do nothing in Google, so the file leaves them out. Crawl-delay appears only for Bingbot, because Bing reads it.
Questions people ask
Where does the robots.txt file go?
In the top folder of your site, so it opens at https://yoursite.com/robots.txt. Crawlers look only there; a robots.txt in a subfolder is ignored. Each subdomain needs its own file, so https://shop.yoursite.com reads https://shop.yoursite.com/robots.txt.
Does blocking a page keep it out of Google?
No. robots.txt controls crawling, not indexing. Google can still list a blocked address, usually without a description, when other pages link to it.
To keep a page out of search results, let Google crawl it and add a noindex tag. Google only sees the tag on a page it may crawl.
What is the difference between AI training and AI search crawlers?
Training crawlers, like GPTBot, ClaudeBot and CCBot, collect pages for building AI models. Search crawlers, like OAI-SearchBot, Claude-SearchBot and PerplexityBot, find pages that AI answers can cite and link to. Assistant fetchers, like ChatGPT-User, open a page when someone asks about it.
Blocking training crawlers keeps you in AI answers. Blocking search crawlers and assistants takes you out of them. Google-Extended is a token rather than a crawler: it decides whether Google may use your pages to train its AI models and as sources for answers in its AI apps. It doesn't affect Google Search or AI Overviews, which use Googlebot.
How long until Google reads my new file?
Google usually keeps a copy of robots.txt for up to 24 hours, so a change can take about a day to apply. To ask sooner, request a recrawl in the robots.txt report in Google Search Console.
Does Google follow Crawl-delay?
No. Google ignores the line and adjusts its own pace to how your server responds. Bing reads it, which is why the generator puts it in a Bingbot group and nowhere else.
I use Shopify, Wix or Squarespace. Can I upload this file?
- Shopify writes robots.txt for you. To change it, add a robots.txt.liquid template to your theme (Online Store, Themes, Edit code) and keep Shopify's own rules in it.
- Wix manages the file in its SEO settings, which include a robots.txt editor.
- Squarespace manages the file itself and doesn't let you edit it; its crawler settings can block known AI crawlers.
Check next
RankHouse AI agent
Want this fixed for you every month?
RankHouse's AI agent audits and fixes your site. Every month it runs a full SEO audit, fixes what it can and lists the rest in plain English for your developer.