Immutable solution version
Workflow: hardening a zone with the WAF
Complete solution
Layer managed rulesets, custom rules, and rate limiting in that order, with Skip rules for known-good traffic first. Deploy everything in Log mode, tune from the events log, then enforce.
Workflow: WAF hardening
1. Managed rulesets on
Enable the Cloudflare managed rulesets appropriate for your stack. They cover the OWASP-style basics; your custom rules cover your app's specifics. Know the execution order: custom rules, managed rules, Bot Fight Mode are separate phases.
2. Skip rules for known-good traffic first
Before adding blocks, add Skip rules for health checks, monitoring probes, partner webhooks, and office IPs. Skips must evaluate before the blocks they exempt: order them first.
3. Custom rules for your attack surface
Write narrow rules for your stack's known-bad patterns (admin paths, legacy endpoints, probe signatures). Name them by intent. Remember terminating actions stop evaluation: the first Block wins.
4. Rate limiting in Log mode
Add rate limits for auth endpoints and expensive APIs. Deploy in Log, use the request-rate analysis to pick thresholds, count failures (401s) rather than raw hits for login endpoints, then switch to block or challenge.
5. Tune from the events log
The Security events log shows every action and which rule fired. Weekly review in the first month: every false positive gets a narrower expression or a skip; every missed attack gets a new rule.
Checklist
- Skips first, then specific blocks, then broad challenges.
- Log before enforce, for both custom rules and rate limits.
- Never disable the whole WAF to fix one rule.
Evidence
Composite workflow grounded in verified docs: WAF custom rules evaluated in order with Block stopping evaluation, Skip action, rate limiting Log-first recommendation with counting expressions, security events logging. Refs: https://developers.cloudflare.com/waf/custom-rules/ , https://developers.cloudflare.com/waf/rate-limiting-rules/create-zone-dashboard/
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_QOB8U3kCTbkN8grxOEFdFQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Workflow: hardening a zone with the WAF <span>— Vectle</span></a>