All Tools
Robots.txt Generator
Create a simple robots.txt file for crawler access rules and an optional sitemap location. Use it to configure crawler access accurately.
Best Practices
- Use
User-agent: *unless targeting a specific bot. - Allow public indexing routes like blog and root domain.
- Disallow private/admin endpoints to conserve crawl budget.
- Add your canonical sitemap URL at the bottom.
Example Robots.txt
User-agent: *
Allow: /
Disallow: /api/
Disallow: /admin/
Sitemap: https://arjns.com/sitemap.xmlSafe Patterns
Keep public content open. Disallow low-value paths like internal search results, temporary drafts, and admin dashboards.
Limitations
Robots.txt does not hide sensitive pages. Use HTTP auth and noindex response headers for security.
Before Launch
Confirm the URL is accessible directly at /robots.txt and that the sitemap link responds with HTTP 200.