This article is free to read. Creating a lesson uses your daily or stored credits; review the language and settings before starting.
How does a DDoS attack work?
Quick answer
A DDoS attack floods a target server with internet traffic from many compromised devices, called a botnet. The sheer volume exhausts the server's bandwidth or processing capacity, so real users cannot connect. The attacker often uses malware to control the devices remotely, coordinating the assault without the owners' knowledge.
A DDoS attack overwhelms a server or network with traffic from many compromised devices, making it unavailable to real users. The attacker uses a botnet to send a flood of requests, exhausting the target's resources.
Step by step
- The attacker infects many computers with malware, turning them into bots.
- These bots form a botnet, which the attacker controls remotely.
- The attacker sends a command to all bots to target a specific server.
- Each bot sends a flood of requests to the target's IP address.
- The target's resources are overwhelmed, causing service to slow or crash.
- Legitimate users are denied access because the server cannot handle the load.
Key things to understand
- Attackers first build a botnet by infecting many computers with malware.
- Each infected device, called a bot, can be commanded remotely without the owner's knowledge.
- The attacker directs all bots to send requests to a single target simultaneously.
- The flood of traffic consumes the target's bandwidth, memory, or processing power.
- Legitimate users cannot access the service because the server is overwhelmed.
Labelled diagram
- Attacker
Controls the botnet and issues commands to launch the attack.
- Botnet
Many compromised devices receive the command to attack.
- Traffic Flood
Bots send massive requests to the target's IP address.
- Target Server
Resources exhausted, cannot respond to legitimate users.
- Legitimate Users
Denied access because server is overwhelmed.
Real-world examples
- In 2016, the Mirai botnet infected IoT devices like cameras and routers to take down major websites such as Twitter and Netflix.
- A gaming server might be hit by a DDoS attack during a tournament, causing lag and disconnections for players.
- In 2018, GitHub suffered a massive DDoS attack peaking at 1.35 terabits per second, though it was mitigated quickly.
- A small business website could be knocked offline by a DDoS attack launched by a competitor using a rented botnet.
Common mistake
✗ Myth: A DDoS attack is the same as hacking into a server.
✓ Fact: A DDoS attack does not break into a server; it simply overwhelms it with traffic. The goal is to make the service unavailable, not to gain unauthorized access.
People also ask
What is a DDoS attack in simple terms?
How long does a DDoS attack last?
Can you stop a DDoS attack?
What is a botnet?
How can I protect my website from a DDoS attack?
What is the difference between a DoS and a DDoS attack?
Can a DDoS attack steal data?
Part of the guide: How the Internet Works →

