PrepCity

DDoS and bot defence

Open the lab

By the last page, this is the design you will have built.

Lesson · 13 pages · about 12 min

DDoS and bot defence

A flood that fills one origin's port is split across anycast edge sites; SYN cookies empty a full backlog; a hidden origin cannot be bypassed; WAF rules and per-IP limits leak while bot scores hold; HTTP/2 Rapid Reset is capped per connection; and an autoscaler pays for every bot it lets in.

What it is
DDoS defence keeps a service answering while many machines send it more traffic than it can carry; bot defence tells scripts from people.
What it is for
A single address with one link, one backlog and one CPU budget can be filled by a botnet in seconds, and most floods end before a human could react.
Use it when
For any service reachable from the internet: put an anycast edge in front, hide the origin, and add bot checks on flows worth automating.
Not when
Do not challenge every visitor or block on one signal: you will lose real customers faster than the attacker does.

Words you’ll learn

  • Server
  • Data centre
  • WAF
  • DDoS
  • Bot or scraper
  • Router
  • On call
  • SYN flood
  • Handshake
  • Backlog

Page by page