A DevOps lead made a sharp point in a forum thread this week: edge rules have to ship with the deployment, inside the same pull request, or they lag behind the endpoints they protect. I agree, and there is a condition hiding in it. A rule at the edge only matters if traffic has to pass the edge. If the API's origin answers anyone who finds its address, a perfectly deployed edge rule protects a door the attacker never uses.
So before the question of how fast edge rules ship, there is the question of where the origin sits. Below is the ladder I use to rank API origin setups, from worst to best. Each rung keeps everything below it.
Three terms that get mixed up
Akamai Site Shield is an origin allowlist: a dedicated set of Akamai addresses your origin firewall accepts, and nothing else. CloudFront Origin Shield and Fastly shielding are something else entirely: an extra caching tier that cuts the number of requests reaching your origin. They reduce load. They do not lock the origin. And AWS Global Accelerator or DNS load balancing are not CDNs; they steer or proxy traffic without the CDN's L7 layer in front.
The ladder
Rung 0: the origin is public, no edge
The API hostname resolves straight to the origin. Every layer of defense lives on your own link: the firewall, an appliance if there is one, and the application. A volumetric flood fills the link before any of them can decide anything.
Rung 1: the CDN answers for the name, the origin is still reachable
The hostname points at the CDN, so the dashboard shows the API as protected. But the origin keeps a public address that accepts traffic from anyone, and that address is usually findable: old DNS records, certificate logs, a mail server on the same range, a sister hostname that was never moved. I collected the methods in 11 Ways to Find a Hidden Origin. Once the address is known, the attacker skips the edge, and protection falls back to what sits in front of the origin itself:
- CDN: present, but bypassed.
- Scrubbing center: none.
- On-prem appliance: if there is one, it can only clean what fits through the uplink. A flood larger than the link saturates it upstream of the appliance.
- L7: the edge's WAF and rate rules never see the bypass traffic. Only what the origin and application enforce themselves still counts.
This is where many "but we have a CDN" surprises come from. The related pattern, API hostnames that never moved behind the edge at all, is in The Website Gets the CDN. The API Waits.
Rung 2: the origin only talks to the edge
The origin firewall accepts traffic only from the CDN's address ranges, and ideally the origin also checks that each request came through your own edge configuration: a vendor-specific header, or a client certificate the edge presents (authenticated origin pulls, mutual TLS between edge and origin). The second check matters because most CDNs publish shared ranges. An allowlist of shared ranges admits every other customer of the same CDN. One vendor's own documentation says IP filtering alone is not enough for exactly this reason and asks you to verify a header that carries your profile ID.
What this rung closes: L7 bypass. Requests that skip the edge are dropped at the origin. What it leaves open: the origin's network link. An allowlist drops packets after they arrive, so a large enough L3/L4 flood at the origin address still fills the pipe.
Rung 3: plus on-demand L3/L4 scrubbing
A scrubbing provider can take over the origin's address space when an attack starts, by BGP announcement or DNS diversion, and send clean traffic back over a tunnel. Now the link is defended too. The cost is the diversion gap: on-demand means the flood reaches the origin first, someone or something detects it, and traffic moves. For the first minutes of every attack, the origin is on its own. How long those minutes are depends on detection, approval and routing convergence. In tests I ran, diversion took about five minutes when everything went well. In the worst cases, mitigation only started once the vendor's response team joined the call, 20 to 30 minutes in. That range is the reason to measure it in a drill rather than read it from a contract.
Rung 4: plus always-on scrubbing
The provider announces your prefixes permanently, so traffic is always cleaned on the way in. No diversion gap. The trade-offs are cost, and that every packet takes the longer path. For an API whose downtime costs more per hour than the difference between the on-demand and always-on contracts, this rung pays for itself on the first attack.
Rung 5: no public origin at all
The origin has no public inbound address. It reaches the edge over a private path: an outbound tunnel from a connector next to the origin, a private link inside a cloud provider, or a physical interconnect. There is nothing to discover and nothing to flood directly. Everything has to come through the edge, which is also the point where the deployment discipline from that forum thread finally pays off in full: every edge rule you ship applies to every request.
How well proven is each private path? I have lab-tested one of them end to end: Cloudflare's tunnel, with no public listener on the origin (dimension D1 on the vendor scorecard). AWS CloudFront VPC origins, Azure Front Door Private Link and F5 Distributed Cloud Customer Edge are documented private-origin options that are still pending my trial. Documented is not the same as tested, and the scorecard keeps them apart.
Three caveats keep this rung honest:
- Protocol coverage. Many private paths are built for HTTP first. Check what your vendor's path carries before planning on it for gRPC, WebSockets, or anything non-HTTP. Protocol-by-protocol detail is in which protocols tunnels cover.
- Connector capacity and redundancy. A tunnel connector is a machine. Run more than one, in more than one place, and size them for attack-day traffic that the edge lets through, not for the average.
- Leftovers. One forgotten public record pointing at the old origin address puts you back on rung 1. Move the origin to a new address after the switch, because the old one already lives in historical DNS. More on that in CDN bypass.
A tunnel does not replace the edge's L7 controls. Floods that look like real users still arrive through the edge, and rate rules that count by the right key still decide what gets through. The per-vendor rule syntax is in API Hardening, and the layer-by-layer view is in Layered API Hardening.
A related model that is not a tunnel
Radware Cloud SecurePath works differently: the on-premises Alteon sends a copy of each request over a sideband connection to Radware's Cloud WAF and enforces the verdict it gets back locally. That makes it an inspection model rather than a private path, so it is not rung 5. Sources: Radware, Alteon release notes.
The ladder at a glance
| Rung | Edge bypass | L3/L4 flood on the origin link | Gap at attack start |
|---|---|---|---|
| 0. Public origin, no edge | No edge to bypass | Open | Not applicable |
| 1. CDN in front, origin reachable | Open | Open | Not applicable |
| 2. Origin only talks to the edge | Closed | Open | Not applicable |
| 3. Plus on-demand scrubbing | Closed | Defended after diversion | Minutes until diversion |
| 4. Plus always-on scrubbing | Closed | Defended | None |
| 5. No public origin | Closed | No public target | None |
What each vendor offers for each rung
From DDactic's vendor capability matrix, built from each vendor's own documentation. "Unknown" means I could not confirm it either way from public docs, not that it is missing. DDactic's vendor-fit check recommends a vendor's private path first and its allowlist second, the same order as this ladder.
| Vendor | Rung 5: private origin path | Rung 2: origin allowlist | Rungs 3-4: BGP scrubbing of your prefixes | L3/L4 proxy without your own prefix |
|---|---|---|---|---|
| Akamai | Unknown | Included (App & API Protector) | Add-on (Prolexic) | Add-on (Prolexic) |
| Amazon Web Services | Included (Amazon CloudFront) | Included (Amazon CloudFront) | Not available | Included (AWS Global Accelerator) |
| Check Point | Not available | Included (CloudGuard WAF SaaS Advanced) | Included (DDoS Protector Cloud Service) | Unknown |
| Citrix | Not available | Not available | Not available | Not available |
| Cloudflare | Included (Free) | Included (Free) | Add-on (Enterprise) | Add-on (Pro) |
| DDoS-Guard | Not available | Unknown | Add-on (Enterprise) | Included (Personal) |
| F5 | Included (F5 Distributed Cloud) | Included (F5 Distributed Cloud) | Add-on (XC DDoS Mitigation Routed) | Included (F5 Distributed Cloud) |
| Fastly | Add-on (Enterprise) | Included (Free) | Add-on (Enterprise) | Not available |
| Fortinet | Not available | Unknown | Not available | Not available |
| Gcore | Add-on (CDN Enterprise) | Included (CDN PAYG) | Included (L3/4 DDoS Protection PAYG) | Included (Edge Proxy) |
| Google Cloud | Included (Standard network DDoS protection) | Included (Standard network DDoS protection) | Not available | Included (Standard network DDoS protection) |
| Imperva | Unknown | Included (Cloud WAF) | Add-on (DDoS Protection for Networks) | Add-on (DDoS Protection for Individual IPs) |
| Lumen | Not available | Not available | Included (DDoS Hyper) | Included (DDoS Hyper) |
| Microsoft Azure | Included (Azure Front Door Premium) | Included (Azure Front Door Standard) | Not available | Not available |
| NETSCOUT | Not available | Unknown | Included (Arbor Cloud DDoS Protection) | Unknown |
| Radware | Unknown | Included (Cloud WAF Service) | Add-on (Cloud DDoS Protection Service) | Unknown |
| Sucuri | Not available | Included (Basic) | Not available | Not available |
| Vercara | Unknown | Unknown | Included (UltraDDoS Protect) | Included (UltraDDoS Protect) |
Three patterns stand out in that table:
- The hyperscalers protect what runs inside them. AWS, Azure and Google Cloud all offer private origin paths and allowlistable edge ranges, but none of them scrubs your own prefixes over BGP. An origin in your own data center needs a scrubbing provider for rungs 3 and 4.
- BGP scrubbing usually needs your own address block. Several providers require at least a /24 of your own space to announce. Estates without one can use an anycast proxy product instead, the last column, which fronts a single address.
- Allowlists are nearly universal, private paths are not. Rung 2 is available from most vendors, often on entry plans. Rung 5 is the gap in many stacks, which is why the legacy question below matters.
One footnote on the last column: Cloudflare's L3/L4 proxy on Pro and Business covers a few named protocols only, and arbitrary TCP or UDP needs Enterprise.
What climbing costs
Where vendors publish prices, here they are. Where they don't, I say so.
| Option | Published price | Source |
|---|---|---|
| Cloudflare Tunnel (rung 5) | Included on all Cloudflare plans, including Free | Cloudflare docs |
| AWS CloudFront VPC origins (rung 5) | No additional charge; standard CloudFront transfer and request charges apply | AWS |
| Azure Front Door Premium with Private Link origins (rung 5) | $330/month base fee, versus $35/month for Standard | Azure pricing |
| F5 Distributed Cloud Customer Edge (rung 5) | Not public; sold per node and metered by node hour | F5 billing FAQ |
| Gcore L3/L4 DDoS Protection | Free pay-as-you-go tier; paid plans priced on committed clean traffic, from $275/month at 100 Mbps (the page also lists differing EUR figures) | Gcore |
| AWS Shield Advanced (AWS resources only) | $3,000/month per organization, one-year commitment, plus data transfer | AWS pricing |
| BGP scrubbing of your own prefixes (rungs 3 and 4) | No public list prices that I found; quoted on contract | n/a |
On the platforms that publish prices, a private path for HTTP APIs runs from free to a few hundred dollars a month. Defending the origin's link itself, rungs 3 and 4, is where commits and contracts begin.
Legacy estates: climbing without a rebuild
Most estates can't move every origin behind a private tunnel this quarter, or fund always-on scrubbing for everything. The good news is that the ladder doesn't have to be climbed all at once, and the cheapest steps cover a lot of ground. In order of effort:
- Configuration only: lock the origin to the edge. Allowlist the edge ranges at the origin firewall, then add the per-profile header or client-certificate check. Remove public records that still point at the origin, and move the origin to a fresh address. This takes most API origins from rung 1 to rung 2 without new contracts.
- A contract: on-demand scrubbing with a rehearsed diversion. If you own address space, BGP diversion is available from most scrubbing providers. Pre-build the return tunnels and run a diversion drill, so the first diversion isn't also the first attack. Without your own block, look at the anycast proxy products for the few addresses that matter.
- Tunnels where they fit first: HTTP APIs. API hostnames are the easiest workloads to move onto a private path, and in the data above most of them aren't behind an edge yet. Move them first, and leave legacy protocols such as SIP, VPN concentrators or custom TCP services on scrubbing.
- Always-on where the math says so. When an hour of an API's downtime costs more than the gap between on-demand and always-on pricing, the diversion gap is the expensive part. The downtime calculator gives a first estimate.
And then the forum thread's point applies in full: once traffic has to pass the edge, ship the edge rules with the deployment, in the same pull request as the endpoint they protect.
What passive scanning can and can't tell you
From outside, I can see rung 0 and rung 1 clearly: where a hostname resolves, and often where its origin really lives. Tunnels are only sometimes visible: some tunnel and zero-trust access setups leave a fingerprint, and the Open Protection Index counts those hosts as not origin-exposed, but often a tunneled hostname looks like any other edge hostname. On-demand scrubbing (it only appears during an attack) and an appliance behind the link stay invisible. So a passive scan can tell you how many of your API hostnames sit on the bottom two rungs. Telling rung 2 from rung 5, or proving that diversion actually works, takes an authorized test.
Five questions for your own APIs
- Which rung is each production API hostname on today?
- For hostnames on rung 1: is the origin address in historical DNS or certificate logs?
- If you allowlist edge ranges, do you also verify that requests came through your own edge configuration?
- If you rely on on-demand scrubbing, when did you last time a diversion end to end?
- For hostnames on a private path: how many connectors, where, and sized for what?
Scan Your Own Attack Surface
DDactic's free passive scan maps your external attack surface against our 101-vector catalog and scores your vendor coverage via the Open Protection Index. No login required, no VMs deployed, no authorization needed for the scan itself.
Run a Free Scan