← See all resources
Slowloris Attack
🐢Network Attacks • Attack Types

Slowloris Attack

How Slowloris exhausts HTTP connections by keeping them open as long as possible.

Tags

SlowlorisHTTPDDoSLayer 7
Download infographic

File: SecPro-ataque-ddos-slowloris.png

What is a Slowloris attack?

Slowloris is a low-bandwidth DDoS attack that takes down a web server by keeping many connections open as long as possible. Instead of flooding with traffic, it sends incomplete HTTP requests and keeps them alive by trickling partial headers periodically, occupying all of the server's available connections without ever completing them.

Why is it so effective with so few resources?

A single attacker on a modest machine can knock out a poorly configured Apache server because the attack doesn't rely on volume but on exhausting the pool of concurrent connections. Servers with low simultaneous-connection limits are especially vulnerable.

How to mitigate Slowloris?

Limit connections per IP, shorten timeouts for slow connections, use modules like mod_reqtimeout on Apache, and front the origin with a reverse proxy or load balancer (nginx, HAProxy) or an anti-DDoS service that drops incomplete connections before they reach it.

Why a single laptop can take down a server

Because Slowloris does not try to saturate bandwidth but to exhaust a far scarcer resource: the number of simultaneous connections the server can keep open. It opens hundreds of connections and sends incomplete HTTP headers very slowly, just enough that the server never closes them for inactivity. Each connection consumes a thread or a slot in the table, and once those run out the server stops accepting legitimate visitors having received barely any traffic.

Which servers are vulnerable and which are not

It depends on the concurrency model. Servers dedicating a thread or process per connection — Apache with the prefork MPM is the classic case — are especially sensitive, because each half-made connection ties up a whole worker. Event-driven ones like nginx handle thousands of idle connections at minimal cost and hold up far better, though they are not immune if per-IP connection limits are left unconfigured.

How it is detected and mitigated

The signal is a high count of open connections carrying very little traffic, with requests that never complete, often from few addresses. Mitigation means shortening header and body timeouts, limiting simultaneous connections per IP, requiring the request to finish within a reasonable window, and placing a reverse proxy or edge service in front that only hands complete requests to the origin — which is what nullifies the attack at its root.

More from Network Attacks • Attack Types

Explore more infographics

View full catalog

Need help with your cybersecurity? 💬