Slowloris bots open a connection and trickle it just fast enough to stay alive, tying up a slot in the server's connection pool for a long time while barely touching the CPU. HTTP-flood bots do the opposite: each request looks legitimate but triggers an expensive query, spiking CPU load while only holding its slot briefly. Both blend into ordinary HTTP traffic, so filtering by source IP or raw request volume can't tell them apart from real users.
on connectionAttempt(client):
if WAF.on:
score = challengeResponse(client) + timingRegularity(client)
if score looks bot-like: reject at the edge // never touches the pool or CPU
if pool has a free slot:
grant it: legit → short hold, small CPU
slowloris → long hold, tiny CPU
flood → short hold, large CPU
else: request dropped — pool exhausted
- Launch attack — spins up Slowloris and HTTP-flood bots scaled by the intensity slider.
- WAF protection — scores every connection's challenge-response completion and request-timing pattern; real browsers solve the challenge and request irregularly, bots mostly do neither, so the WAF rejects them at the perimeter before they ever reach the pool or CPU.
- Attack intensity — controls how many bots are active and how fast the flood fires.
Real-world relevance: this is exactly why volumetric defenses (rate limits, IP blocklists) fail against Layer-7 DDoS — the fix has to look at behaviour, not just traffic shape.