Cloudflare Workers Bot Scan Defense

Make a Cloudflare Workers app resilient to bot scans that arrive within minutes of HTTPS publication via CT Log enumeration. Use when deploying a new Worker (especially with auth or paid bindings), when budget/cost is a concern, or when you want to detect "/.env" / "/admin" / "/wp-login.php" / "/.git/config" probing. Covers the mental model (which paths actually cost you money — most are absorbed by the edge cache), the narrow set of unauthenticated routes that do need rate limiting (auth `begin`/`verify`), the exact `wrangler.jsonc` `observability` + `ratelimits` config (plus the wrangler 3.x `unsafe.bindings` fallback), the IP-keyed Hono middleware pattern with fail-open variant, the deploy verification flow (`wrangler versions view` + Workers Observability, including a credential-free path for sandboxed agents / keyless CI), and the documented eventual-consistency caveat that makes synthetic burst tests look like the limiter is broken.

okayus Updated

File contents

okayus/okayus-skills/tree/main/skills/cloudflare-workers-bot-scan-defense commit 34c474e11f

Frequently asked questions

npx skillmds@latest add okayus/cloudflare-workers-bot-scan-defense