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.
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:
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
Merge the selected groups into your existing robots.txt instead of replacing platform rules blindly.
Upload the final file to https://your-domain.example/robots.txt.
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.
We use essential storage for security and core features. With your permission, we may also use analytics and advertising technologies. Rejecting optional technologies does not block access to the site.
Non-essential categories are off unless you choose to enable them. You can return to these settings at any time from the footer.
Global Privacy Control is active.Your browser has requested an opt-out from sale, sharing, and targeted advertising. Advertising remains disabled.
Strictly necessary
Supports security, server sessions, form protection, administrator sign-in, and remembering your privacy choice.
Analytics
Allows Google Analytics to measure visits and interactions so the site can be improved. It is not loaded before permission.
Advertising and cross-site measurement
Allows advertising technologies when they are configured. This may involve ad delivery, fraud prevention, measurement, personalization, or cross-context advertising.
Your choice is stored for 180 days using a first-party preference cookie. A material policy change can ask you to choose again.