How a Peruvian election site split Cloudflare's Free-plan WAF rules across six slots
The author runs Elección Clara, a Peruvian site about candidates, parties and government, built with SvelteKit on a Cloudflare Worker with a Go API behind it. Cloudflare's Free plan offers only five custom rules and one rate-limiting rule, so the author had to decide which problems each slot should address. Requests blocked at the edge never reach the Worker, so the author had to use Cloudflare's Security Events to see what was filtered. The policy allows verified search engines, link previewers and AI assistants answering user queries, while blocking training crawlers, SEO tools, generic scrapers and datacenter traffic that is not a verified bot. The article also describes three things that went wrong and a closing checklist, and it omits specific rule expressions, thresholds and path lists.
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