Edge & CDN
Cloudflare Workers, WAF rulesets, Transform Rules, cache configs, and geo-routing logic.
Available Assets
Staging Environment Auth Wall
Basic auth Worker that gates any subdomain behind a username/password. Perfect for locking down staging and preview deployments.
A/B Test Traffic Splitter
Routes a configurable percentage of traffic to alternate origins. Logs split results to KV for analysis. No app changes required.
API Rate Limiter Worker
Per-IP rate limiting using Cloudflare KV. Configurable time window and request limit. Returns proper 429s with Retry-After headers.
Security Headers Injector Worker
Adds HSTS, CSP, X-Frame-Options, X-Content-Type-Options, and Referrer-Policy to every response without touching your origin code.
Webhook Signature Validator Worker
Validates Stripe, GitHub, Shopify, and Svix webhook signatures at the Cloudflare edge before forwarding to your origin. Rejects invalid payloads instantly.
Cookie Banner Injector Worker
Uses Cloudflare HTMLRewriter to inject a GDPR-compliant cookie consent banner into any HTML response. No origin code changes needed. Configurable styling.
Multi-Origin Failover Router
Automatically routes traffic to a secondary origin if the primary returns 5xx errors. Configurable retry logic and failure thresholds.
Geo-Block Worker
Block or redirect requests by country code at the edge. Configurable allow/deny lists stored in KV. Includes bypass header for internal use.
JWT Auth Middleware Worker
Validates JWTs at the Cloudflare edge before requests hit your origin. Returns proper 401 responses on failure. Zero origin load for auth rejections.
Cloudflare Bot Filter Worker
Scores requests and blocks known bad actors at the edge. Allows legitimate crawlers, blocks malicious bots. Fully configurable thresholds via KV store.