Small Business robots.txt Template for AI and Search Bots

A practical small-business robots.txt file should keep ordinary search discovery open, block only the crawler purposes you have intentionally rejected, and point compliant crawlers to your sitemap. Review every user-agent before publishing because robots.txt is a public policy file, not a security control.

Small business website keeping search discovery open while selected AI training crawlers are blocked

Copy-paste robots.txt example

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: *
Allow: /

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

Copy a balanced starter template

This example is designed for a typical public small-business website that wants to remain discoverable in conventional and AI-assisted search while opting out of selected training or dataset uses. Replace the sitemap URL before publishing:

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: *
Allow: /

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

The specific groups express a narrow policy. The wildcard group keeps other compliant crawlers open, including ordinary search crawlers unless another rule elsewhere in the file applies to them.

What each rule is doing

  • GPTBot and ClaudeBot are documented training-related crawlers.
  • CCBot collects pages for Common Crawl’s open web dataset.
  • Google-Extended and Applebot-Extended are product-control tokens rather than separate page-crawling bots. Blocking them can restrict specified generative-AI uses while leaving the associated search crawler available.
  • User-agent: * with Allow: / leaves the rest of the public site open to compliant crawlers.

This is a starting policy, not a universal answer. A local service business, an online store, and a subscription publisher may reasonably choose different rules.

Keep search and user-requested access separate

Do not add OAI-SearchBot, Claude-SearchBot, or PerplexityBot to the block unless you also want to reduce discovery in those providers’ search experiences. User-triggered agents such as ChatGPT-User, Claude-User, and Perplexity-User are another category again; provider behavior differs, and robots.txt may not be sufficient for requests initiated by a person.

Publish the file safely

  1. Merge the selected groups into your existing robots.txt instead of replacing platform rules blindly.
  2. Upload the final file to https://your-domain.example/robots.txt.
  3. Confirm that it returns plain text with HTTP 200.
  4. Use the robots.txt checker to test important URLs against each token.
  5. Recheck the file after a CMS, hosting, or domain migration.

Robots.txt does not hide URLs, authenticate visitors, or stop clients that ignore the protocol. Protect private areas with login, authorization, and server-side controls.

FAQ

Will this template keep my business visible in Google and Bing?

The template does not block Googlebot or Bingbot. However, merge it carefully with your existing file because a separate wildcard or crawler-specific rule can still affect search crawling.

Should every small business block all AI training crawlers?

No. This is a policy choice. Consider discovery goals, content value, licensing concerns, server load, and whether you want your public pages available for particular AI uses.

Can I block only one crawler from the example?

Yes. Each specific user-agent group is independent. Keep only the groups that match your policy and remove rules you do not intend to publish.

Does Allow: / override every other rule?

No. Crawler-specific groups normally take precedence for their matching user agent, and path matching rules still matter. Test the complete live file rather than reading one line in isolation.

Can robots.txt protect customer portals or private documents?

No. Robots.txt is public and voluntary. Use authentication, authorization, and server-side access controls for confidential or restricted resources.

Related tools

Related pages

Robots.txt generator controls and a generated rules document AI Robots.txt Generator

Choose a policy mode, enter your website and sitemap, add any path or crawler overrides, then generate and download a robots.txt file. Publish it at the root of the correct host and verify the live rules with the checker before relying on them.

Robots.txt checker inspecting a website and reporting allowed and blocked crawler access Robots.txt Checker for AI Crawlers

Enter a domain, choose a crawler, and test a path. The checker downloads the live robots.txt file, finds the applicable User-agent group and most specific rule, then explains whether access is allowed or blocked.

Website allowing search and AI discovery routes while blocking a separate model-training collection route Allow Search, Block AI Training robots.txt Template

Use separate user-agent groups: block documented training or dataset agents such as GPTBot and ClaudeBot, while allowing ordinary search and dedicated AI-search crawlers.

Website selectively blocking AI training crawler routes while keeping search discovery routes open How to Block AI Crawlers with robots.txt

To block an AI crawler, add a group for its exact User-agent token and use Disallow: /. Block only the crawler purposes you intend to restrict, keep ordinary search crawlers open when visibility matters, and remember that robots.txt is a request to compliant bots rather than a security control.

Diagnostic flow checking a crawler token, URL rule match, server response, and access logs How to Check Whether AI Crawlers Are Blocked

Fetch the live robots.txt file, select the crawler’s exact product token, and test the specific URL against the matching group and longest Allow or Disallow rule. Then check HTTP responses, caching, firewall rules, and logs, because a crawler may be allowed by robots.txt yet blocked by the server—or disallowed by robots.txt while an unidentified scraper still reaches the page.