How to Detect Crawlers on a Static Astro Site Using Cloudflare Workers
Static Astro sites prerender HTML, meaning crawlers can download pages without triggering browser-based analytics scripts, leaving automated traffic largely invisible to site owners. A developer guide explains how to deploy WebDecoy's edge sensor via Cloudflare Workers to observe all incoming requests — including those from bots that never execute JavaScript. The setup requires a custom domain proxied through Cloudflare and does not need changes to Astro's server rendering configuration or build process. Once installed, the Worker intercepts requests at the network edge before they reach the origin, logging detections in the WebDecoy dashboard. Owners can verify the sensor is working by sending a test curl request with a reserved user-agent string and confirming the labeled detection appears in the dashboard.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in