Robots.txt Generator
← All tools
Build a robots.txt file with your own rules
— a different set of Allow/Disallow paths per
crawler if you need it (e.g. blocking a specific AI
crawler while leaving Googlebot untouched), plus your
sitemap URLs. Free tool, nothing you enter is stored;
the generated file is shown once, in the same response,
and gone.
What is a robots.txt file?
robots.txt is a small text file that tells
well-behaved web crawlers (search engines, AI crawlers,
SEO tools) which parts of your site they may or may not
request. It has to live at your domain's own root —
https://yoursite.com/robots.txt — for
crawlers to find it; this tool generates the file's
content, but uploading it there is a separate step you do
yourself.
How do I use it?
Save the generated text as a file literally named
robots.txt and upload it to your site's own
root directory. Each User-agent block above
targets one crawler (or * for every crawler
that doesn't have its own more specific block); its
Disallow lines list paths that crawler
shouldn't request, and Allow lines carve out
exceptions within an otherwise-disallowed area. Any
Sitemap URLs you add point crawlers at your
sitemap directly — useful alongside, not instead of,
submitting it to each search engine's own tools.
A real limitation, stated plainly
robots.txt is advisory, not a security
mechanism — it only works because well-behaved
crawlers choose to respect it. A disallowed path is still
often reachable by anyone who has (or guesses) its direct
URL, and a disallow rule can even make a path's existence
more discoverable, not less, since the file itself is
public. Never rely on it to hide genuinely sensitive
content; use real access control (authentication, a
firewall rule, or simply not linking to it) for anything
that actually needs to stay private.