A robots.txt file belongs at the root of a site, such as https://example.com/robots.txt. This builder follows the core Robots Exclusion Protocol fields defined by RFC 9309 and adds the widely supported Sitemap field. It checks user-agent tokens, path formatting, and absolute sitemap URLs while you type. Presets give you a safe starting point for an open site, WordPress, or a complete crawl block.
Robots rules control crawling, not access or guaranteed indexing. Anyone can read the file, and crawlers can choose whether to honor it. Use authentication or server permissions for private content, and use a supported noindex method when the goal is to keep a page out of search results.