Skip to content

Building an allowlist strategy on Cloudflare: WAF Skip rules plus IP Access rules

Monitoring probes, webhook senders, and office IPs keep tripping edge security. How to build an allowlist that actually bypasses the right layers — and why IP Access rule Allow is not the tool you think it is.

The allowlist most operators build first — an IP Access rule set to Allow — does not do what they think: it does not bypass WAF custom rules, rate limiting, or the current managed rulesets. The allowlist that works is a WAF custom rule with the Skip action, sitting at the top of the rule list, matching a maintained IP list, and skipping exactly the layers your known-good traffic keeps tripping. This article is the strategy around that rule: what belongs on the list, how to scope each entry, and the maintenance that keeps an allowlist from rotting into a hole.

What’s happening

Order of evaluation decides everything here. A request passes DDoS mitigation, then IP Access rules, then WAF custom rules, then rate limiting, then managed rulesets, with bot products (Bot Fight Mode on Free, Super Bot Fight Mode on Pro and Business) judging through their own machinery. IP Access rules run early, but their Allow action only exempts a request from the legacy-generation checks (Browser Integrity Check and friends) — the modern WAF layers behind it still evaluate and still block. That is why a monitoring probe stays blocked after you “allowlisted” it.

A custom rule with action Skip is the real instrument: it matches your expression, then skips the components you select — remaining custom rules, rate limiting rules, managed rulesets, and Super Bot Fight Mode on plans that have it. Two hard limits shape the strategy. First, Bot Fight Mode on Free cannot be skipped by anything, so Free zones with machine traffic must choose between BFM and that traffic. Second, Skip only affects rules evaluated after it, which is why allowlist rules live at position one. Every plan can run this: Free’s five custom rules and at least one custom IP list are enough for a clean allowlist.

What to check first

  • Who legitimately calls you from machines. Monitoring services (published IP ranges, some on the verified bots list), webhook senders (Stripe, PayPal, GitHub all publish ranges), partner integrations, CI/CD deploy hooks, and your own offices or VPN egress.
  • What layer is actually blocking each of them. Pull a Ray ID per victim from Security > Events — a rate-limit block, a managed-rule block, and a bot verdict need different skip selections.
  • Which sources are stable enough to trust by IP. A partner’s static egress, yes; “somewhere in a hyperscaler’s address space”, no — allowlisting a whole cloud allowlists its other tenants too.
  • Whether a secret header beats an IP list. For monitors you configure yourself, a header token is often stabler than chasing provider IP pages.

How to verify

Confirm the current damage, then confirm the skip works. From the blocked caller’s vantage (or simulating it from a VPS):

# The monitoring probe's view before the fix
curl -s -D /tmp/allow-headers.txt -o /tmp/allow-body.html \
  "https://www.example.com/health" -A "UptimeMonitor/2.1"
grep -iE "^(HTTP|cf-mitigated|cf-ray)" /tmp/allow-headers.txt
grep -oE "Cloudflare Ray ID: [a-f0-9]+" /tmp/allow-body.html

After deploying the skip rule, watch it match:

Security > Events
  Filter: Action taken equals Skip
  Read:   your allowlist rule name, source IP (must be in your list),
          path (must be one you intended to exempt)
Then filter by the caller's IP with Action = Block:
  zero new blocks since deploy = the skip covers what it should

Finally, prove you did not over-skip: from a clean IP that is not on the list, send a request that managed rules should block (an obvious injection string against a test path) and confirm it still blocks. An allowlist verified in only one direction is half verified.

The fix

  1. Put the sources in named IP lists. Manage Account > Configurations > Lists: one list per purpose — monitor_ips, webhook_senders, office_egress — not one giant allowlist. Purpose-per-list keeps scoping honest and reviews sane.

  2. Write one Skip rule per purpose, scoped to purpose. Security > WAF > Custom rules, action Skip, placed at the top:

    (ip.src in $webhook_senders and http.request.uri.path in {"/webhooks/stripe" "/webhooks/github"})

    Webhook senders get their webhook paths — not the whole zone. Office egress may deserve zone-wide skip of managed rules; a monitor gets its health-check paths only.

  3. Skip the minimum set of components. If rate limiting was the blocker, skip rate limiting — leave managed rules active. Tick more components only when Events proves each one is biting; the action mechanics are detailed in WAF custom rules: block, challenge, log, skip.

  4. Keep logging on for every Skip rule. Enable logging of matched requests so allowlisted traffic stays visible in Security > Events — an allowlist you cannot see is an exfiltration path you cannot see either.

  5. Use a header token where IPs churn. For monitors and internal tools, add a rule like:

    (http.request.headers["x-sh-monitor"][0] eq "long-random-value" and http.request.uri.path eq "/health")

    Rotate the value like any credential. This survives provider IP reshuffles that silently break IP lists.

  6. Keep IP Access rules for their remaining jobs. Quick emergency blocks, country entries, and account-wide application across zones — and as the exception mechanism within IP Access blocks themselves. Just stop expecting Allow there to bypass the WAF stack.

  7. Leave rate limits meaningful for everyone else. If a partner keeps tripping thresholds, consider whether the threshold is wrong before exempting them — the sizing logic is in rate limiting rules and thresholds.

When this fix is wrong

If the blocked caller fetches protected admin or internal apps, an allowlist is the weak answer — give it a real identity with Cloudflare Access and a service token instead of a network exemption. And if you are reaching for an allowlist to silence a managed rule that blocks a legitimate payload pattern for everyone, fix that with a scoped rule exception, not by exempting one caller at a time.

Common mistakes

  • Trusting IP Access rule Allow to bypass custom rules, rate limiting, or managed rules — it does not, and the failed-allowlist ticket that follows is a classic.
  • Placing the Skip rule below the block it should prevent; Skip only affects later rules.
  • Allowlisting an entire cloud provider’s range because one webhook sender lives somewhere inside it.
  • Expecting a Skip rule to exempt Bot Fight Mode on Free — nothing does.
  • Letting lists rot: a decommissioned monitor’s range stays exempt for years, waiting to be reassigned to someone you never met.

Prevention

Treat the allowlist as inventory with owners: every list entry gets a purpose, a source URL for the provider’s published ranges, and a review date. Re-verify quarterly in both directions — exempted traffic passing, everything else still enforced — and subscribe to your providers’ IP-change announcements so updates are planned, not archaeological. References: developers.cloudflare.com/waf/ for Skip components and developers.cloudflare.com/fundamentals/ for lists and access rules.

Tuning edge security so it blocks attacks without blocking customers is ongoing work — Stack Harbor watches those events around the clock under 24/7 Monitoring & Response; book a monitoring and response review.