← All templates
Technical SEO

robots.txt Template for SEO & AI Crawlers

A clean robots.txt template that allows Google and AI search engines while blocking private dashboard/API routes.

When to use: Deploy at /robots.txt on SaaS apps, directories, and marketing sites.

Template
User-agent: *
Allow: /
Allow: /llms.txt
Disallow: /admin
Disallow: /dashboard
Disallow: /api/
Disallow: /auth

User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ClaudeBot
User-agent: PerplexityBot
User-agent: Google-Extended
Allow: /

Sitemap: https://yourdomain.com/sitemap.xml

Ready to put this template to work?

Validate your robots.txt →