Block AI scrapers on Cloudflare
Sample key shown. Add your site to get yours.
- Download the worker zip, set your domain and site key in wrangler.toml, then run: npx wrangler deploy
- Security, Settings, Bot traffic, AI Crawler and Agent access policies: set Training to Disallow and Agent to Block.
- Done. Known AI bots get a 403 and every page gets the hidden nonsense.
Use Disallow, not Block, for Training. Block can also turn away Googlebot and Bing. The free Workers plan covers 100,000 requests a day.