
You have probably seen the headline: a website or a game service suddenly goes down, and the cause is a DDoS attack. What is a DDoS attack? In plain terms, it is a flood: so many fake requests hit a server at once that real users cannot get through. This guide explains how it works, the main types, why attackers do it, and — more usefully — how websites and ordinary users stay safe.
- A DDoS (Distributed Denial of Service) attack floods a server with fake traffic until it cannot serve real users.
- The “distributed” part means the traffic comes from many computers at once, usually a botnet of hacked devices.
- The three main types are volumetric attacks, protocol attacks, and application-layer attacks.
- Attackers do it for money, for disruption, or to distract from a second attack.
- Protection comes from filtering bad traffic before it reaches the server — CDNs, rate limiting, and DDoS protection services do the heavy lifting.
What Is a DDoS Attack?
DDoS stands for Distributed Denial of Service. The idea is simple: a server can only handle so many requests at once. An attacker sends far more requests than the server can cope with, the server runs out of capacity, and it stops responding to legitimate users. The website looks down, the game disconnects, the service times out — not because anything was hacked or deleted, but because the server is drowning in traffic.
The “distributed” part is what makes it hard to stop. A DoS attack from one computer can be blocked by blocking that one address. A DDoS attack comes from thousands or millions of computers at the same time, spread all over the world. Those computers are usually not owned by the attacker at all — they are ordinary devices that have been infected with malware and joined into a botnet, a network of compromised machines that the attacker controls remotely. Your smart fridge, a home router, or an old webcam can be part of a botnet without its owner ever knowing.
The Three Main Types of DDoS Attack
Volumetric attacks
The bluntest type. The attacker floods the target with enormous amounts of data — often using amplification tricks like DNS reflection, where a small request triggers a much larger response aimed at the victim — until the victim’s internet connection itself is saturated. These are measured in gigabits per second, and the biggest ones have reached several terabits per second. Nothing on the receiving end can cope with that much raw traffic, so the defence has to happen upstream, at the network level.
Protocol attacks
These target the way servers handle connections. The best-known example is the SYN flood: the attacker starts thousands of half-open connections, which the server holds open while waiting for a reply that never comes. Each half-open connection eats a little memory, and eventually the server cannot accept new connections at all. These attacks are subtler than volumetric floods and target server resources rather than bandwidth.
Application-layer attacks
These are the sneakiest. Instead of flooding the network, the attacker sends requests that look normal — like loading a search page or logging in — but in huge numbers, and each one forces the server to do expensive work, like a database query. Because the requests look legitimate, they are harder to filter, and a relatively small flood can take down a site. This is the type most likely to hit a small or medium website.
Why Do Attackers Launch DDoS Attacks?
The motives vary. Some attacks are extortion: pay us in cryptocurrency or the attacks continue. Some are competitive — a business trying to knock a rival offline during a busy sale. Some are political or ideological, aimed at silencing a site or making a point. Gaming is a frequent target, with attackers knocking players offline or taking down a game’s servers for amusement or revenge. And sometimes a DDoS attack is a smokescreen: while the security team is busy fighting the flood, the attacker sneaks in through another door to steal data.
How to Stay Safe From a DDoS Attack
If you run a website, the practical defences are well established. Put the site behind a content delivery network (CDN) like Cloudflare, which absorbs and filters traffic before it reaches your server. Use a web application firewall to block suspicious request patterns, set rate limits so no single address can hammer your site, and keep your server software patched. Most good hosts offer basic DDoS protection as part of the plan — check yours does.
If you are an ordinary user, the risk to you is different: your devices could be recruited into a botnet. Keep your router firmware updated, change default passwords on smart devices, and keep your computer’s security software current. A botnet cannot use a device it cannot infect. And if a service you use goes down in a DDoS attack, there is nothing you can do but wait — the fix is on the provider’s side, not yours. If you run a site and want to understand your hosting better, our guide to starting a blog explains the early decisions, including hosting, and our guide to making money online covers what to do once the site is up and running.
Frequently Asked Questions
What is the difference between DoS and DDoS?
A DoS attack comes from a single source, so it can be blocked by blocking that address. A DDoS attack comes from many sources at once — a botnet — which makes it much harder to filter, because the traffic looks like it is coming from everywhere.
Are DDoS attacks illegal?
Yes, in most countries. Launching a DDoS attack is a criminal offence, even as a prank, and people have been prosecuted and jailed for it.
Can a DDoS attack steal my data?
Not by itself — a DDoS attack is about overwhelming a server, not breaking into it. But attackers sometimes use a DDoS flood as a distraction while they try a second attack aimed at stealing data, so a DDoS attack on a service you use is a good reason to be extra careful about phishing in the following days.
How long does a DDoS attack last?
Most last minutes to a few hours. Some last days, especially in extortion cases. Well-protected sites usually absorb them in minutes without users noticing.
Can my home internet be DDoS attacked?
It is possible but uncommon. Gamers and streamers are sometimes targeted, because an attacker only needs their IP address. A VPN hides your real IP and is the simplest protection if you are concerned.
A DDoS attack is a blunt weapon: it does not need skill to launch, it is hard to defend against without the right tools, and it works by sheer volume. The good news is that the defences are also well understood — a CDN, rate limiting, and a host with proper protection handle most of it before you ever notice. For everyone else, the job is simpler: keep your devices updated and your passwords changed, so your gadgets never become someone else’s attack fleet. If you want the background on how online traffic stays private in the first place, our VPN explainer is a good next read.
2 thoughts on “What Is a DDoS Attack? How It Works & Staying Safe”