How to use the Robots.txt Generator
- 1Choose the default policy for all crawlers.
- 2Add paths to disallow and your sitemap URL.
- 3Download robots.txt and upload it to your domain root.
About the Robots.txt Generator
The robots.txt file sits at the root of your domain and tells crawlers which areas they may access. A mistake here can deindex an entire site, so a validated generator is the safest way to create one.
Configure default access, disallow private paths, optionally block AI training crawlers like GPTBot and reference your XML sitemap.
When to use the Robots.txt Generator
Reducing crawling of utility paths
Sites often contain search results, cart pages, or other utility paths that do not need routine crawling. Start with the allow policy and enter the paths you intend to disallow, one per line. Inspect the generated rules carefully and keep important content and rendering resources accessible before publishing the file.
Allowing a public subdirectory exception
A broadly restricted directory may contain a smaller area that crawlers should access. Add the restricted parent path to the disallow list and the public child path to the explicit allow field. Review the resulting path rules together, remembering that the generator creates text rather than testing crawler behavior against your site.
Documenting a site's crawler preferences
When preparing a site's crawling policy, combine the general rules, optional AI crawler blocks, and sitemap reference in a single output. Review each generated user-agent group before downloading robots.txt. These preferences apply to crawlers that honor them; they do not replace authentication, protect confidential files, or enforce access restrictions on visitors.
Tips and best practices
- Never use disallow rules as security controls. Anyone can read robots.txt, and noncompliant bots can ignore it; protect private content with authentication and appropriate access restrictions instead.
- Leave CSS, JavaScript, and images crawlable when they are needed to understand public pages. Overly broad directory rules can prevent search engines from rendering content accurately.
- Googlebot does not support the crawl-delay directive. Select it only with a specific supporting crawler in mind, rather than expecting it to control Google's request rate.
- Inspect the final default policy before publishing. Block all produces a sitewide disallow rule, which is inappropriate for public content that you want search engines to crawl.