In plain English An attack where thousands of computers flood a website with fake visits at once, so real visitors cannot get in. Like a crowd blocking a shop door.
A DDoS (distributed denial-of-service) attack tries to knock a site offline by flooding it with more traffic than it can handle, sent from thousands of machines at once, usually hijacked computers and devices. Because the traffic comes from everywhere, blocking a single address does not stop it.
Types of attack
| Type | Floods | Example |
|---|---|---|
| Volumetric | The network connection | Gigabits per second of junk traffic |
| Protocol | Server and firewall connection tables | Half-open connection floods |
| Application (layer 7) | The website itself | Thousands of requests a second to a slow search page |
Protection
A single server cannot absorb a large volumetric attack: its connection fills up before any software sees the traffic. Protection has to happen upstream, at a network with far more capacity:
- A CDNCDN A network of servers around the world that keep copies of your site’s files, so each visitor gets them from somewhere nearby. Faster pages, less work for your server. More about CDN → or proxy service in front of the site absorbs floods across its global network and filters bad requests. Many include this protection on free plans.
- Your host’s network filtering. Many providers include basic protection and some offer more.
- Rate limiting on the server, such as NginxNginx A fast, popular program that sends web pages to visitors and can pass requests on to apps behind it. More about Nginx →’s
limit_req, stops smaller application-level floods from overwhelming PHP. Too strict a limit blocks real visitors with 429 errors. - CachingCache A saved copy of something, kept so it does not have to be made or fetched again. Like keeping a printed copy instead of reprinting it for every person who asks. More about Cache → means each request costs less, so the site survives more of them.
Behind a CDN, keep the server’s real IP addressIP address The number address of a device on the internet, like 203.0.113.10. Computers use it to find each other, the way post uses street addresses. More about IP address → private and allow only the CDN’s addresses through the firewall; otherwise attackers can bypass the protection.