Create a Correct Robots.txt File
A robots.txt file gives compliant crawlers instructions about the URLs they may request. This generator focuses on standardized and widely supported directives: User-agent, Allow, Disallow and Sitemap.
Control crawlers
Create rules for search crawlers, image bots, AI search crawlers and model-training crawlers.
Validate rules
Find missing groups, invalid paths, unsupported noindex directives and dangerous site-wide blocks.
Test URLs
Test important paths against crawler-specific groups and longest matching rules.
Where should robots.txt be placed?
Upload robots.txt at the root of the exact hostname and protocol it controls. A file at www.example.com does not automatically control shop.example.com. Serve it as UTF-8 plain text.
Robots.txt is not security
The file is public. Do not use it to protect customer data, private documents or administrator pages. Use authentication, permissions and server-side access controls.
Search and AI crawlers
Googlebot and bingbot are search crawlers. Google-Extended controls certain Google AI uses. OAI-SearchBot relates to ChatGPT search, while GPTBot is an OpenAI training crawler. ClaudeBot is published by Anthropic.
Allow and Disallow
Disallow identifies paths a crawler should not request. Allow can reopen a more specific path. When multiple patterns match, compliant crawlers use the most specific matching rule.
Multiple sitemaps
You can include several absolute sitemap URLs. A sitemap helps discovery, but it does not override a Disallow rule or guarantee indexing.
Crawl-delay warning
Crawl-delay is not part of RFC 9309 and Google does not support it. This standards-focused generator therefore does not add Crawl-delay.
Robots.txt Generator FAQ
What is a robots.txt generator?
It creates a plain-text Robots Exclusion Protocol file from crawler groups and Allow or Disallow rules.
Can robots.txt remove a page from Google?
No. Blocking crawling does not guarantee removal from search results. Use a suitable noindex method when removal from indexing is required.
Does robots.txt protect private information?
No. Protect private information with authentication, authorization and server-side access controls.
Should I add Crawl-delay?
Only when a specific crawler documents support. Google does not support Crawl-delay, and it is not part of the standardized protocol.
Can I include multiple sitemaps?
Yes. Enter each absolute sitemap URL on a separate line.
How do I test robots.txt?
Use the validator and URL tester, publish the file at the website root, and verify important URLs with relevant search-engine tools.