Block AI scrapers on Cloudflare
Sample key shown. Add your site to get yours.
  1. Download the worker zip, set your domain and site key in wrangler.toml, then run: npx wrangler deploy
  2. Security, Settings, Bot traffic, AI Crawler and Agent access policies: set Training to Disallow and Agent to Block.
  3. 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.

Download Cloudflare worker