Robots.txt Generator
Generate clean, RFC 9309 compliant robots.txt files to manage search engine crawler and AI bot access across your website.
Crawler Directives
Sitemap & Host Directives
# robots.txt generated by BosonWare Tools (https://bosonware.com/tools/robots-generator) # Generated at 2026-09-11T05:57:40.462Z User-agent: * Allow: / Disallow: /api/ Disallow: /admin/ Disallow: /private/ Sitemap: https://bosonware.com/sitemap.xml
Where to place robots.txt:
Save this file as robots.txt in the root directory of your website (e.g. https://bosonware.com/robots.txt). It must be served with a text/plain Content-Type.
Control Web Crawler Access Effectively
A well-structured robots.txt file optimizes crawler efficiency by keeping search engines focused on your public, high-value pages while preventing indexation of administrative dashboards, private search results, and staging environments.
Key Directives Explained
- User-agent: Targets specific search crawlers (e.g.
Googlebot,Bingbot,GPTBot) or all bots with*. - Disallow: Specifies URL path prefixes that crawlers must not request.
- Allow: Carves out exceptions within disallowed parent directories (e.g., allow
/public/assets/within/public/). - Crawl-delay: Requests bots (like Bingbot and Yandex) to throttle their request rate in seconds.
- Sitemap: Points crawlers directly to your XML sitemap for efficient URL discovery.
Help & FAQs
Frequently Asked Questions
Common questions and technical guidance about this tool.
Discover More
Related Free Tools
Meta Tag Checker
Inspect titles, descriptions, canonical URLs, robots directives, Open Graph tags, and heading structure with clear diagnostic insights.
Schema Markup Generator
Generate valid JSON-LD structured data for Organizations, WebSites, Articles, Products, Local Businesses, Breadcrumbs, and FAQs.
Sitemap Validator
Validate XML sitemaps and sitemap indexes. Detect malformed URLs, invalid dates, protocol errors, and structure issues.