Security
What is a DDoS attack and how do you protect against one?
How distributed denial-of-service attacks work, the three main types, warning signs, and the layers of protection that keep services online.
Updated
A distributed denial-of-service (DDoS) attack tries to make a website or service unavailable by overwhelming it with traffic from many sources at once. The sources are usually compromised computers, routers and smart devices organised into a botnet and rented out cheaply.
Three types of attack
- Volumetric attacks flood your network connection with more data than it can carry, measured in gigabits or terabits per second.
- Protocol attacks exploit weaknesses in network protocols, such as SYN floods that exhaust a server's connection table.
- Application-layer attacks send requests that look legitimate, like loading a search page thousands of times a second, to exhaust CPU and databases.
Signs you may be under attack
Sudden, unexplained slowness or outages; huge spikes of traffic from unusual countries or networks; many requests for a single URL; server resources maxed out with no matching rise in real users.
Layers of protection
- Network filtering at the provider absorbs volumetric and protocol attacks before they reach your server. All Oxflare services include this.
- A CDN and web application firewall hides your origin, caches content and filters malicious HTTP requests.
- Rate limiting and bot challenges slow down abusive clients without affecting real visitors.
- Application design matters too: cache expensive pages, limit costly queries and make sure your site degrades gracefully.
