What is a robots.txt file?
A robots.txt file sits at the top of a website and tells crawlers, such as search engine bots, which paths they may and may not visit. It is a plain text file with groups of rules: a User-agent line names the crawler, and Disallow and Allow lines list paths.
It is a request, not security. Well-behaved crawlers follow it, but bad ones ignore it, and a blocked page can still appear in search results if other sites link to it. This tool writes the file for you, including a Sitemap line and an optional group asking a list of AI crawlers not to use your site. It follows RFC 9309.
How to use the Robots.txt Generator
- List the paths to block, one per line.
- List any exceptions to allow.
- Add your sitemap address and choose whether to block AI crawlers.
- Copy the file and save it as robots.txt in your site root.