- What is a DDoS attack?A distributed denial-of-service attack uses many machines, often a network of compromised devices, to send more traffic or…
- What kinds of DDoS attack are there?Volumetric and protocol attacks are measured in gigabits per second or packets per second.
- How does DDoS protection work?Protection happens in layers.
What is a DDoS attack?
A distributed denial-of-service attack uses many machines, often a network of compromised devices, to send more traffic or requests than a target can handle. The aim is to make a site, a game server or a network unavailable. It is “distributed” because the traffic comes from thousands of addresses at once, which makes it hard to block by simply banning one source.
CISA, the US cybersecurity agency, describes denial-of-service attacks as attempts to make a service unavailable to its users, and notes that the symptoms include a slow network, an unavailable site and a flood of spam. Many incidents are short; others last hours or days.
What kinds of DDoS attack are there?
Volumetric and protocol attacks are measured in gigabits per second or packets per second. Application attacks are smaller in volume but can overload a site by hitting pages that need a lot of server work.
| Layer | What it does | Example |
|---|---|---|
| Volumetric | Fills the network connection with sheer traffic | UDP and amplification floods |
| Protocol | Exhausts connection tables and network equipment | SYN floods |
| Application | Sends many seemingly valid requests to expensive pages | HTTP floods on login or search pages |
How does DDoS protection work?
Protection happens in layers. At the network edge, a provider can detect abnormal traffic patterns and filter packets, sometimes by routing traffic through scrubbing centres that drop the attack and forward the clean traffic. At the web layer, a CDN or reverse proxy absorbs requests and caches content, so most never reach your server. Rate limits and a web application firewall stop abusive requests to specific pages.
Always-on protection filters every packet continuously. On-demand protection switches on after an attack is detected, which can mean a short period of disruption first.
What do hosts mean when they say “DDoS protection”?
The phrase covers a wide range. It can mean basic network filtering that every customer gets, a bigger scrubbing service with a stated capacity, a CDN with attack mitigation, or a paid add-on you must switch on. It rarely means that no attack can hurt you. Very large or well-aimed attacks can exceed any provider’s defences, and protection that only covers web traffic does nothing for a game server on another port.
What should you ask a hosting provider?
- Is DDoS protection included, or is it a paid add-on?
- What size of attack does it cover, and what happens above that? Some providers null-route the target address.
- Is protection always on, or enabled only after detection?
- Does it cover all ports and protocols, or only web traffic?
- Is there a cost if I am attacked, for example for extra bandwidth?
- How will I find out, and who responds at night?
What can you do yourself?
Keep the server itself hardened as described in how to secure a new VPS.
- Put a CDN or proxy in front
It hides your server and absorbs traffic; see do you need Cloudflare?.
- Cache what you can
Static and cacheable pages cost your server almost nothing; see what a CDN is.
- Rate-limit expensive pages
Protect login, search and API endpoints.
- Hide the origin
Allow web traffic only from the CDN and keep the real IP private.
Who needs DDoS protection the most?
Game servers, voice servers, sites in competitive or controversial fields, online shops during sales and any business that loses money when it is offline. A personal blog is rarely a target, but it can still be hit by indiscriminate traffic. If you choose a VPS or a dedicated server for such a workload, compare the protection on our best VPS hosting and dedicated servers lists and ask the questions above before you buy.
What should you do during an attack?
Contact your provider first: they can see the traffic and may be able to filter it. Turn on any stronger protection mode you have, put a CDN in front of the site, and serve a static fallback page if needed. Keep logs for later. Do not pay anyone who emails a ransom demand. Afterwards, review what failed and whether a different plan or provider would have coped better.
A worked example: a small game server under attack
A hobbyist runs a game server on a VPS. One evening players report lag, then disconnects. The provider’s graphs show inbound traffic spiking far above normal, and the server’s network connection saturating. The provider’s basic protection filters part of the flood but the server still struggles, so the owner turns on the stronger, paid mitigation the provider offers on request. Traffic stabilises within minutes. Afterwards the owner moves the game port behind a service built for that traffic and keeps the web panel behind a CDN.
The incident showed two gaps: protection that only covered web traffic and an on-demand mode that took time to switch on. They chose a plan with always-on protection for game ports.
How do you prepare an incident plan?
- Know who to call
Keep the provider's abuse and support contacts handy.
- Know what you can switch on
Stronger protection modes, a CDN or a static fallback page.
- Keep logs and monitoring
You need evidence and early warning.
- Review afterwards
Decide whether a different plan or provider is justified.