How to use the robots.txt generator
- Allow or block everything, then list paths to block.
- Add your sitemap URL.
- Download robots.txt and upload it to your site’s root, e.g. example.com/robots.txt.
What robots.txt can and can’t do
robots.txt is a request, not a lock. Well-behaved crawlers follow it, but it doesn’t hide pages: anyone can still open a blocked URL, and blocked pages can still appear in search results if other sites link to them. To keep a page out of search results, use a noindex meta tag instead (see the meta tag generator). Never list secret URLs in robots.txt.
Examples
User-agent: * Disallow: /admin/ Sitemap: https://…
Adds Disallow rules for GPTBot, ClaudeBot, CCBot and others