Open-source edge-security repo syncs Cloudflare WAF rules across all zones with one file
samgoodwin89 · x · 2026-12-05
harshil1712 shares that with 20 Cloudflare zones he used to manually add WAF rules blocking scans to paths like wp-admin and .php files. He moved almost all production WAF rules to Alchemy v2 and open-sourced the edge-security repo.
- A single alchemy.run.ts applies the same custom WAF rules to every active zone in an account; zones added later get the rules on the next deploy;
- Quickstart: npm install, edit ACCOUNTID, EXCLUDEZONES and rule lists, then npm run plan / npm run deploy;
- Warning: deploy replaces each zone's whole custom-rules list, so back up dashboard rules first;
- Rules include blocking spoofed aocr.org referer spam;
- Workflow: ask your agent to analyze your traffic, point it at the repo, and deploy rules relevant to your app.
More from coding & agent
- Salesforce research: agreeable buyer agents give away margin and get swayed by images — hsu_byron · 2026-12-05
- After a $76k GCP bill from late budget alerts, devs debate hard kill switches for overnight agents — Han_Labulaka · 2026-12-05
- Agent swarms on Terminal-Bench-Science: faster wall-clock, but pass rates don't reliably improve — NaivelyBayesic · 2026-12-05
- Open-Source /move-37 Agent Skill Bans Obvious Answers Before Coding Starts — daniel_mac8 · 2026-12-05
- Google TPU chief architect: token cost today is really rent on KV-cache memory — appenz · 2026-12-05
- Running AI agents on a throwaway Google account to keep the blast radius small — Aide_Sea · 2026-12-05