A worked example, rendered from real sample data. Sign in to run the tool on your own input.
Agent: *
Disallow: /admin
Disallow: /private
Allow: /public
Sitemap: https://example.com/sitemap.xmlUser-agent: *
Allow: /public
Disallow: /admin
Disallow: /private
Sitemap: https
Build robots.txt files with allow/disallow rules and sitemap directives. Part of the DevTools Surf developer suite. Browse more tools in the Web / Frontend collection.