Layer 3, 4 and 7 attacks: what a firewall can actually stop
Attacks are described by the layer they operate on because that is what decides where they can be stopped. Network-layer floods succeed before any application sees them. Application-layer floods succeed by making the application do work. The same defence cannot address both, and the most common misunderstanding in this field comes from assuming it can.
The claim worth correcting
A web application firewall does not stop DDoS attacks at every layer. It stops attacks at the application layer, and the reason is structural rather than a matter of product quality.
Request inspection requires a request. Before one exists, a connection has to be established, and before that, packets have to arrive over a link with capacity to carry them. A flood that saturates the link never becomes a request, because it did not need to: the damage was done by consuming bandwidth, and nothing that inspects requests was ever in a position to see it.
Products marketed as protection against both are usually two services sold together, with the network-layer part handled by capacity and filtering somewhere upstream. That combination is legitimate and common. What is not accurate is describing the request-inspection part as the thing that stops the flood.
Where each attack does its damage
Network layer. Traffic addressed to your network in volumes the link cannot carry. The link is the resource being exhausted, and it is exhausted regardless of whether anything answers. Only something between the attack and your link can help.
Transport layer. Connection attempts that consume state on anything tracking them: the server, a firewall, a load balancer. The tables that track connections are finite, and filling them denies entry to legitimate clients while bandwidth remains unremarkable.
Application layer. Complete, valid requests that ask for expensive work. Every one arrives over an established connection and looks like a user. Here the resource being exhausted is processing, memory, or the database behind it.
Only the third kind is visible to something that inspects requests, because only the third kind produces requests.
What a firewall sees, and what it does not
"It cannot stop that" is often heard as "it is not useful".
A request-inspecting layer sees the method, the path, the headers, the body, and the client's behaviour across requests. That is enough to apply rate limits per client and endpoint, to challenge clients that behave unlike browsers, and to recognise patterns of abuse against expensive routes. Against application-layer floods, this is the right instrument, and it works because the attack has to identify itself as traffic in order to do harm.
What it does not see is anything that failed to become a request: saturating packet floods, malformed traffic dropped by the network stack, and connection attempts that never completed. Those are handled before the request layer exists, which is why they belong to a different part of the defence.
What stops network-layer attacks instead
Three mechanisms, none of which involve reading requests.
Capacity. Absorbing more traffic than the attack can generate. This is why network-layer defence is a property of infrastructure scale rather than of software.
Filtering upstream. Dropping traffic before it reaches the link, based on properties visible in packets rather than in requests. Effective and blunt: the decisions available at that layer are coarse.
Distribution. Spreading traffic across many locations so that no single link carries the whole attack. This changes the arithmetic of a flood rather than filtering it.
All three sit outside the application. Where a provider terminates traffic for you, they are typically supplying some combination of these alongside request inspection, and it is reasonable to ask which part does what.
The practical consequence
Two questions follow, and they are the ones to ask a provider.
Where is traffic terminated? If requests reach your origin directly, your origin's link is the constraint, and no amount of request inspection downstream changes that. If traffic terminates at a provider's edge, the question moves to their capacity and filtering.
Which layer does each part of the product cover? A single label often covers several distinct services. Asking what stops a saturating flood, and separately what stops a flood of valid requests, produces a clearer picture than any datasheet.
The reason this material separates attacks by family, described on DDoS attack types, is that the separation is the only reliable way to tell whether a defence addresses your problem.
Why the layers get conflated
Not merely a marketing habit, though it is partly that.
From outside, the symptom is identical. The site does not load. The difference between a saturated link and an exhausted database is invisible to a visitor and often to the owner, and both feel like the same emergency.
The mitigations also arrive bundled: a provider that terminates traffic gives you capacity, filtering, and inspection at once, so the layers appear to be one product. That is convenient until something fails, when knowing which layer was covered decides where to look.
Mitigation, honestly stated
Layered defence is not a slogan here. It is a description of the fact that one layer cannot cover another.
Bridge WAF operates at the application layer: requests are inspected before reaching your origin, rate limiting is applied per domain, and abusive patterns are handled without a rule for each variation. Because traffic terminates at the edge rather than at your server, the capacity in front of you is the platform's rather than your link's, which is the part that addresses the network layer. Asking which component covers which layer is a fair question to put to any provider, including us. See what the platform offers at Bridge CDN.
Questions
Does a WAF stop DDoS attacks?
It addresses application-layer attacks, which arrive as complete requests and can therefore be examined. It cannot address floods that saturate a link, because that traffic never becomes a request, and inspection has no object to work on before the congestion happens.
What is the difference between layer 3, 4 and 7 attacks?
The lower two exhaust bandwidth or connection state before an application is involved at all, which is why they are stopped by capacity and filtering. The upper one exhausts the application itself with requests that are valid, so it has to be stopped by rate and behaviour instead.
Why do products claim to stop both?
Because such a product is usually several services under one name, and the network-layer half is capacity and upstream filtering rather than request inspection. The claim is accurate about the bundle and misleading about the firewall inside it, which is worth knowing when comparing.
What stops a network-layer flood?
Three things, none of them running on your server: capacity larger than what arrives, filtering applied upstream of your link, and traffic distributed across locations so no single connection carries the whole event. All of them belong to whoever provides your connectivity.
How do I tell which layer I am facing?
Ask whether the link is saturated or the server is merely busy, because the two look similar from a browser and identical in a complaint. Saturation is a network problem you cannot solve locally; a busy server is an application problem you can.
Does this mean request inspection is unnecessary?
No. It is the only measure that addresses attacks made of valid requests, and those are the hardest kind to separate from real customers. Capacity absorbs volume; nothing but inspection distinguishes a request that should be served from one that should not.
Bridge WAF operates at the application layer. The capacity in front of you is the platform's, because traffic terminates at the edge rather than at your server.
off
No request is inspected. The layers below are unaffected either way.
monitor
Requests are inspected and matches recorded. Nothing is refused while you read the record.
block
Matching requests are refused before reaching your origin, and still recorded.
The firewall layer is included with Bridge CDN. Start in monitor: nothing is refused until you decide it should be.
Get started