robots.txt and sitemap.xml generator
Write your site's robots.txt (rules per user-agent, Allow, Disallow, Crawl-delay, Sitemap, AI crawler blocking) and build a sitemap.xml from a list of addresses. With checks for the most common mistakes.
Adds a group with Disallow: / for GPTBot, ClaudeBot, CCBot, Google-Extended and others. robots.txt is a polite request: those who ignore it are not stopped.
robots.txt
User-agent: * Disallow:
Checks
No problems found.
How to use it
- In robots.txt write the user-agents (* means all) and the paths to block (Disallow) or allow (Allow); add a group for each crawler you want to treat separately.
- If you like, turn on blocking of AI training crawlers and give the absolute address of the sitemap.
- For the sitemap switch to sitemap.xml and paste the addresses, one per line; optionally set lastmod, changefreq and priority.
- Read the checks, then copy or download the file and put it in the root of the site (for example https://example.com/robots.txt).
Frequently asked questions
Does robots.txt protect private pages?
No: it is a polite request, and anyone can read it. A path in Disallow may even reveal that it exists. For private pages you need a password or a block on the server.
Does it really block AI crawlers?
Only those that follow the rules: the operators of the main ones (OpenAI, Anthropic, Google, Common Crawl, Apple, Meta) say they do, others do not. Blocking Google-Extended does not remove the site from Google Search. The list changes over time: check it now and then.
Which rule wins between Allow and Disallow?
For Google the most specific rule wins, meaning the one with the longest path; on a tie Allow wins. Other crawlers may behave differently, so avoid conflicting rules.
What are the limits of a sitemap?
At most 50,000 addresses and 50 MB uncompressed per file, all absolute and on the same site. Beyond that, create several sitemaps listed in an index file.
Is a path without a leading / a mistake?
Yes: Disallow: admin is not read the way you expect. Write /admin. To block a whole file type use a wildcard, for example /*.pdf$.
Privacy
Everything happens in your browser: rules and addresses are not sent or saved.