Create a robots.txt file for your website. It is completely free and very easy to use.
Loading tool...
Learn how to help search engines find your website using sitemaps and tags.
A text file that tells search engines like Google which pages they are allowed to look at.
The Robots.txt Generator creates standardized robots exclusion files that instruct search engine web crawlers (Googlebot, Bingbot) and AI scrapers which directories and query parameters they are permitted or forbidden from accessing.
Generates text compliant with the Robots Exclusion Protocol (RFC 9309). Configures User-agent, Allow, Disallow, and Sitemap directives to manage crawl budget and protect administrative endpoints.
Allow root, Disallow /admin/ and /api/, Sitemap https://example.com/sitemap.xmlUser-agent: *
Allow: /
Disallow: /admin/
Disallow: /api/
Sitemap: https://example.com/sitemap.xmlAllows full website indexing while preventing search bots from indexing backend routes and declaring sitemap path.
Upload robots.txt to the root directory of your website domain (e.g., https://yourdomain.com/robots.txt).
Robots.txt provides crawling instructions for well-behaved web spiders. For absolute privacy or sensitive endpoints, use password authentication or server-side restrictions.