Deploy AI Bot Detection

Track AI bot visits (ChatGPT, Claude, etc.) to your website using Cloudflare Workers.

Prerequisites
Before you can deploy bot detection, you need:
  • A Cloudflare account (free plan works)
  • Your website domain added to Cloudflare
  • Cloudflare Workers enabled (free tier available)
Step 1: Generate Your API Key
Create a unique API key for your website to track bot visits.
Need Help?
Common issues and solutions for deploying your bot detection worker.

Route Configuration

Make sure your route pattern covers all pages. Use yourdomain.com/* to catch all subpages.

Testing Your Setup

After deployment, ask ChatGPT to visit your website. Check your dashboard to see if the bot visit was logged.

Troubleshooting

Check the Cloudflare Workers logs in your dashboard for any errors. Common issues include incorrect route patterns or missing environment variables.