Updated
What Is a DDoS Attack? Meaning, How It Works, and How to Prevent One
Head of Product & Co-Founder
Reviewed by Argjent Sahiti
CTO
A DDoS (distributed denial-of-service) attack floods a website, server or online service with more traffic or requests than it can handle, so real users can't get through. It can mean anything from a slow site to a full outage, and businesses of every size get hit.
Key takeaways
- A DDoS attack floods a website or online service with more traffic or requests than it can handle, so real users can't get in.
- The traffic usually comes from a botnet: many compromised devices controlled by the attacker, often without their owners knowing.
- CISA and the FBI group DDoS attacks into three types: volumetric, protocol and application-layer attacks.
- A DDoS attack usually disrupts availability rather than stealing data, but it can be a distraction for a separate intrusion.
- Prevention takes layers: traffic monitoring, rate limiting, a CDN, mitigation services and infrastructure built for sudden demand.
What is a DDoS attack?
In a DDoS attack, someone points a huge volume of traffic or requests at a target to make it hard or impossible for real users to reach.
"Distributed" is the important word. The traffic doesn't come from one computer but from many devices at once, usually a botnet: a network of hacked computers, servers or connected devices that the attacker controls.
The target usually isn't damaged for good. The point is to knock it offline for a while, whether it's a website, an app or another online service.
What does DDoS mean?
The name describes the attack:
- Distributed: the traffic comes from many sources.
- Denial-of-service: real users are kept from using a service.
A plain DoS attack can come from a single source, which you can block. A DDoS attack comes from many, so blocking by source stops working. Think of a fake queue so long that real customers never reach the door.
How does a DDoS attack work?
The methods differ, but most attacks follow the same four steps.
1. The attacker chooses a target
A website, an online app, a gaming server, an API, a piece of network infrastructure or any other service facing the internet.
2. The attacker gathers many sources
The attacker needs enough traffic to put real pressure on the target. It usually comes from a botnet or other distributed infrastructure. Most of those devices don't belong to the attacker: they were infected with malware and are controlled remotely without their owners knowing.
3. The traffic is aimed at the target
The compromised devices fire requests or packets at the target. Each one can look harmless. The damage comes from volume: thousands or millions of requests at once use up bandwidth, processing power, memory or other resources.
4. The service struggles to respond
As resources run out, real requests have to compete with the junk. The service slows down, turns unstable or stops responding, and sometimes goes down completely. Once the attack stops or is mitigated, it can often come back to normal.
What are the main types of DDoS attacks?
Attackers pick a layer of the network or application to hit, depending on what they want to break. CISA and the FBI sort them into the same three groups in their joint guide to DDoS attacks.
| Type | What it goes after | How it works |
|---|---|---|
| Volumetric attacks | The target's available bandwidth | Generates so much traffic that legitimate users struggle to reach the service |
| Protocol attacks | Weaknesses in network protocols and devices such as firewalls, load balancers or servers | Uses up the resources needed to process legitimate connections |
| Application-layer attacks | A specific application or service | Sends large numbers of requests to a resource-heavy part of a website |
Table: The three main types of DDoS attack, as grouped by CISA and the FBI.
Application-layer attacks are usually the hardest to spot, because each request can look exactly like a real visitor.
Signs of a DDoS attack
From the inside, a DDoS attack can look like an ordinary outage, so context matters. Warning signs include:
- A sudden, unexplained jump in traffic
- A website or app that is unusually slow
- Large numbers of requests from unusual sources
- A service going down with no obvious technical cause
- Traffic patterns very different from normal activity
- Several services disrupted at the same time
A traffic spike on its own proves nothing. A product launch, a viral post or a mention in the news can cause one too. Ask two questions: does this traffic look like your normal visitors, and can your infrastructure handle it?
Also read: How to know if you have been hacked: 12 signs
What happens to a business during a DDoS attack?
It depends on what gets hit, how big the attack is and how prepared the business is. Typically:
| Impact | What it means |
|---|---|
| Website downtime | Customers can't reach your website or online services |
| Lost revenue | Customers can't complete purchases or use your service |
| Operational disruption | Employees lose access to systems they need to work |
| Customer frustration | Even a short outage colors how customers see your business |
| Recovery costs | Technical teams investigate, restore services and adjust defenses |
If customers keep finding the service down, the reputation takes a hit as well. At that point a DDoS attack has stopped being an IT problem and become a business continuity problem.
Can a DDoS attack steal your data?
Usually not. A DDoS attack is built to take a service offline, not to steal information.
It can run alongside something else, though. An attacker might use the chaos as cover for a separate break-in attempt. So when one hits, have your security team check for other unusual activity in the same window and confirm the rest of your systems are still secure.
How to prevent a DDoS attack
Nobody can promise you'll never be attacked. You can make your infrastructure much harder to knock over, and that takes several layers.
Monitor your traffic
You can't spot abnormal traffic until you know what normal looks like. Track traffic volume, request rates, where requests come from, connection behavior and resource use. With a clear baseline, a sudden change stands out.
Use rate limiting
Rate limiting caps how many requests one user, IP address or other source can make in a set period, so a flood of requests can't swallow everything. The right limit depends on the service. Too tight and you block real users; too loose and it barely helps.
Use a content delivery network
A content delivery network (CDN) spreads traffic across many locations and soaks up big spikes. Many CDN providers also sell DDoS mitigation, which puts one more layer between your servers and the incoming traffic.
Protect your infrastructure at multiple layers
Don't bet on one control. A resilient setup might combine:
- Firewalls
- Load balancers
- Traffic filtering
- Rate limiting
- CDN protection
- Network monitoring
- DDoS mitigation services
With several layers in place, no single one has to stop everything.
Build for unexpected demand
Blocking bad traffic is only half of it. Your setup should also survive surprises: redundancy, infrastructure that scales, failover systems, capacity planning and regular tests. The fewer single points of failure you have, the harder it is for one surge to take you down.
How to stop a DDoS attack
If an attack is already happening, your job is to filter the traffic and keep real users served. The right move depends on your setup and the kind of attack, so first confirm what's going on.
1. Check your traffic patterns
Look for sudden changes in request volume, source locations, protocols, which services are being hit and server resource use. Compare it all with your normal baseline.
2. Activate your DDoS protection
If you have a DDoS mitigation provider, a CDN, a firewall or another protection layer, follow your incident response plan. Find out how your defenses work before an attack, not during one.
3. Filter malicious traffic
Your security or infrastructure team may be able to block or throttle traffic that shares traits with the attack. Go easy on broad rules: real users can share some of those traits.
4. Contact your hosting or network provider
Your provider may have spare capacity or mitigation tools that absorb or filter the attack before it reaches you.
5. Keep monitoring
Attacks shift as they go. Keep watching traffic and system performance until it's over, then review what happened and update your defenses.
Why DDoS protection is about resilience
Good DDoS protection limits the damage when abnormal traffic hits. In practice: know your normal traffic, watch for changes, build in redundancy and have a response plan written down.
A DDoS attack goes after availability. The attacker doesn't need to break in, just to make your service hard to reach. You can't control who targets you. You can control how exposed your systems are, how ready they are and how fast you respond. Know who you'll call before the attack starts.
Also read: How to Protect Yourself and Your Data from Internet Hackers
Security is easier when you can see what's exposed, and that includes your personal data. Run a free Serus scan to find out what's out there.
Questions
What is the difference between a DoS and a DDoS attack?
A traditional DoS attack can come from a single source. A DDoS attack uses many sources at once, which makes it much harder to block the traffic based on where it comes from.
Does a sudden traffic spike mean I'm under a DDoS attack?
Not necessarily. A product launch, a viral post, news coverage or a rush of real visitors can also cause a surge. What matters is whether the traffic matches your normal patterns.
Does a DDoS attack cause permanent damage?
Not usually. The goal is to make the service unavailable, and once the attack stops or is mitigated, the service can often return to normal.
Can rate limiting block real users?
Yes, if the limits are too strict. Limits that are too loose may not protect enough, so the right setting depends on the service.
Who should I contact during a DDoS attack?
Follow your incident response plan and contact your DDoS mitigation provider if you have one. Your hosting or network provider may also have extra capacity or tools to filter the attack.
Author
Anthon WanslandHead of Product & Co-Founder
Shapes the Serus product — from the first address-removal service to the platform it is today.
Reviewed by
Argjent Sahiti