Complete guide to setting up AI bot detection for your website using Cloudflare Workers.
Bot detection happens at Cloudflare's edge servers, before your website even loads. This means we catch bots that don't execute JavaScript.
Every bot visit is logged instantly to your Aiso dashboard, giving you immediate insights into AI bot traffic.
Cloudflare Workers free plan includes 100,000 requests per day, which is more than enough for most websites.
Unlike server-side solutions, you don't need to modify your website's code. The Worker runs transparently.
You need a Cloudflare account (free plan works perfectly). If you don't have one:
Sign up for CloudflareYour website domain needs to be added to Cloudflare. This is required for Workers to intercept requests.
Cloudflare Workers need to be enabled for your account. This is usually enabled by default on free plans.
Go to the integration page and enter your email and website domain to get a unique API key.
In your Cloudflare dashboard, create a new Worker and paste the pre-configured code.
Detailed steps:
Set up routes so the Worker intercepts requests to your website.
Route configuration:
yourdomain.com/*Verify that bot detection is working by testing with AI bots.
Testing methods:
Check: Make sure your route pattern covers all pages (use yourdomain.com/*). Verify the Worker is deployed and active. Check Cloudflare Worker logs for any errors.
Check: Ensure you copied the entire worker code correctly. Check that your API key is properly inserted. Verify you have Workers enabled on your Cloudflare account.
Check: Make sure your domain is properly added to Cloudflare and DNS is configured correctly. The route pattern should match your domain exactly (including www if applicable).
Check: Verify your API key is correct and active. Check that the webhook URL is properly configured. Contact support if the issue persists.
No! The Cloudflare Worker runs transparently and doesn't require any changes to your website's code.
No, Cloudflare Workers run at the edge and add minimal latency (usually less than 1ms). In fact, they often improve performance.
We detect ChatGPT-User, GPTBot, ClaudeBot, PerplexityBot, MetaExternalAgent, and other major AI bots. The list is regularly updated.
Yes! The basic bot detection is free. Cloudflare Workers free plan includes 100,000 requests per day, which covers most websites.
Yes, as long as your website is on Cloudflare. This includes WordPress, React, Vue, static sites, and any other web technology.