robots.txt Generator
Correct crawler rules for any site
A sitemap field, a crawl-delay box, a block-everything checkbox and a repeatable list of rule blocks. Each block carries a user-agent name and two text areas — one for disallowed paths, one for allowed — taking a path per line, so /admin and /private entered in the same field become two Disallow directives under one agent. Blocks are added and removed with the buttons beside them, and the file is rebuilt as you type rather than on a submit. Ticking Block the entire site collapses the rule list to a single wildcard agent with a root disallow and hides the per-crawler editor. Crawl-delay, when set, is written into every block rather than only the first. The file starts with two blocks — a wildcard excluding /admin and /private, and one for GPTBot — so there is something to edit instead of a blank page.
Build a valid robots.txt with allow/disallow rules per crawler, crawl-delay and sitemap reference. Fill the form, copy the file, drop it in your site root — done.
Private robots.txt Generator In Your Browser
robots.txt Generator is processed locally with client-side JavaScript. Your files never touch a server, and there is no queue to wait in.
How to use robots.txt Generator
Enter the absolute URL of your sitemap in the Sitemap URL field; it becomes a Sitemap line at the end of the file.
Set Crawl-delay in seconds if you want one, then add or remove rule blocks with the Add rule and per-block remove buttons.
Fill in each block's user-agent name and type paths one per line into the Disallow and Allow text areas.
Copy the robots.txt panel and save the contents as robots.txt in the root directory of the site.
- The Disallow and Allow fields take one path per line and emit a separate directive for each, all under the same user-agent block.
- Block the entire site replaces the rule list with a single wildcard agent and Disallow: /, which is the correct way to close a site off.
- Crawl-delay is written into every rule block when it is set, because that is where the directive has to sit to take effect.
- The Sitemap line is appended last however many blocks exist, and runs of three or more blank lines are collapsed before output.
- A site owner keeps an internal admin area out of crawler reach while leaving the public pages fetchable.
- An operator blocks a training crawler in its own block, leaving the wildcard rules for everyone else untouched.
- A developer closing a preview deployment uses Block the entire site to get a single wildcard rule with nothing else to review.