Direct AI crawlers with managed robots.txt
Protect your website or application from AI crawlers by implementing a robots.txt
file on your domain to direct AI bot operators on what content they can and cannot scrape for AI model training.
Cloudflare's managed robots.txt
explicitly disallows known bots engaged in scraping for AI purposes and AI agent activity.
AI bots are expected to follow the robots.txt
directives. Otherwise, they risk getting banned.
Cloudflare will independently check whether your website has an existing robots.txt
file.
- If your website already has a
robots.txt
file — verified by a HTTP200
response — Cloudflare will prepend our managedrobots.txt
before your existingrobots.txt
, combining both into a single response. - If your website does not have a
robots.txt
file, it will receive Cloudflare's managed block directives.
To implement a robots.txt
file on your domain based on your plan:
- Log in to the Cloudflare dashboard ↗ and select your account and domain.
- Go to Security > Bots.
- Select Configure Bot Fight Mode.
- On Manage bot traffic with robots.txt, select the toggle.
- Log in to the Cloudflare dashboard ↗ and select your account and domain.
- Go to Security > Bots.
- Select Configure Super Bot Fight Mode.
- On Manage bot traffic with robots.txt, select the toggle.
- Log in to the Cloudflare dashboard ↗ and select your account and domain.
- Go to Security > Bots.
- Select Configure Bot Management.
- On Manage bot traffic with robots.txt, select the toggle.
Managed robots.txt
for AI crawlers is available on all plans.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark