ScanSiteAI logo
Back to blog

Robots.txt for AI Crawlers

Robots.txt Rules for AI Crawlers

Understand how robots.txt affects Googlebot, GPTBot, ClaudeBot, PerplexityBot and other crawlers that may discover public website content.

01

Robots.txt is a discovery gate

Robots.txt tells compliant crawlers which paths they may request. It does not add rankings by itself, and it does not guarantee that a crawler will use your content, but it can create a hard blocker. If important pages are disallowed, search engines and AI crawlers may not be able to fetch the content needed to understand your site.

02

What to allow and what to block

Most public marketing sites should allow the homepage, resources, blog posts, documentation, pricing, about and contact pages. Private admin routes, APIs, internal dashboards and lead tables should usually be blocked or protected. The key is not to block broad folders that contain public content.

  • Allow public content pages
  • Block private dashboards and admin paths
  • Avoid blocking CSS or JavaScript needed for rendering
  • Include the sitemap URL
  • Test important URLs after every robots.txt change
03

Common mistake: blocking too much

A broad disallow rule such as Disallow: /resources or Disallow: /blog can quietly remove valuable content from crawler access. Another mistake is assuming that allowing one bot means every crawler has the same permissions. Review both the general User-agent: * rule and any crawler-specific rules.

04

How ScanSiteAI uses robots.txt checks

ScanSiteAI reviews whether key crawler families can access public pages and whether blocked paths make sense. A good setup usually allows normal public content, blocks private areas and exposes sitemap.xml. After changes, inspect affected URLs in Google Search Console and run a fresh scan to confirm the signal changed.

FAQ

Does robots.txt guarantee AI visibility?

No. It only controls crawl permission for compliant bots. You still need useful content, strong internal links, trust signals and indexable pages.

Should I allow all AI crawlers?

That is a business decision. If visibility in answer engines matters, allow crawlers you are comfortable with and protect private or sensitive areas separately.

Should APIs be blocked?

Usually yes for public SEO purposes. API endpoints rarely belong in search results and may expose noisy or sensitive routes.

Related guides

Ready to check your site?

Run a live AI readiness scan in minutes.

Analyze Website