keepcalculator

06 Numbers and Powers

DDoS Meaning & How to Protect Yourself

Card No. 06·54753 · Updated · Standard formula, shown below

DDoS stands for Distributed Denial of Service. It is a cyberattack where many compromised computers flood a target server, service, or network with internet traffic, overwhelming it so legitimate users cannot get through. This article explains what a DDoS attack is, how it works, and the practical steps you can take to protect your own systems or reduce your risk of being affected.

What Exactly Is a DDoS Attack?

A Denial of Service (DoS) attack is any attempt to make a service unavailable. A Distributed Denial of Service (DDoS) attack does the same thing, but it uses a network of many machines — often called a botnet — to flood the target from multiple sources simultaneously. The word “distributed” is the key: instead of one computer sending requests, hundreds or thousands of devices (which may include infected PCs, servers, IoT cameras, and routers) all send traffic at once.

The goal is to exhaust one of three resources:

  • Bandwidth: Saturating the network link so no legitimate traffic can get through.
  • Server resources: Overloading CPU, memory, or disk I/O so the server cannot process requests.
  • Application resources: Overwhelming a specific application (like a web form or database connection pool) so it stops responding.

DDoS attacks are not new; the first major one was reported in 1996. However, their size and frequency have grown dramatically. In recent years, attacks exceeding 1 terabit per second have been recorded, and the rise of insecure Internet of Things (IoT) devices has made it easier to build huge botnets.

How a DDoS Attack Works

An attacker typically follows a three-step process:

  1. Build a botnet: The attacker finds vulnerable devices (often via malware or weak passwords) and installs software that lets them control the devices remotely. Each infected device is a “bot.”
  2. Command the bots: The attacker sends a command to all bots to start sending requests to the target at a specific time.
  3. Flood the target: The bots generate a massive volume of traffic — sometimes millions of requests per second — aimed at the victim’s IP address or domain.

There are several common attack types:

  • Volumetric attacks: These eat up bandwidth. Examples include UDP floods (sending many User Datagram Protocol packets to random ports) and ICMP floods (ping floods).
  • Protocol attacks: These exploit how servers handle connections. A SYN flood sends many “connection request” packets but never completes the handshake, tying up server resources.
  • Application-layer attacks: These target specific functions, like HTTP requests to a login page. They are often harder to detect because they look like normal traffic.

Attackers often use reflection and amplification techniques. For example, they might send a small request to a public DNS server with the victim’s spoofed IP address; the DNS server then sends a much larger response to the victim. This multiplies the attacker’s bandwidth.

How to Protect Yourself: For Individuals

If you are an individual internet user, you are unlikely to be the direct target of a DDoS attack. However, you can be part of a botnet, and your home network could be caught in the crossfire. Here’s what you can do:

  • Keep devices updated: Regularly update your operating system, router firmware, and all connected devices. Many botnets exploit known vulnerabilities that updates fix.
  • Change default passwords: IoT devices like cameras and smart plugs often come with default credentials. Change them to strong, unique passwords.
  • Use a reputable antivirus: This helps prevent your computer from becoming a bot in the first place.
  • Secure your router: Disable remote management, change the admin password, and use WPA2 or WPA3 encryption for Wi-Fi.
  • Consider a VPN for sensitive tasks: A VPN hides your IP address, making it harder for someone to target your home connection directly.

If you run a small server from home (like a game server or a website), you are more exposed. In that case, the protections below for businesses also apply to you, at least in a scaled-down form.

How to Protect Yourself: For Businesses and Website Owners

If you run a website, online service, or any internet-facing application, DDoS protection is essential. Here are the main strategies:

  • Use a DDoS protection service: Providers like Cloudflare, Akamai, and AWS Shield absorb and filter malicious traffic before it reaches your server. They act as a reverse proxy and only forward clean requests.
  • Increase bandwidth and redundancy: Having more bandwidth than you need gives you more time to react, but it is not a solution on its own. Using multiple data centers or a content delivery network (CDN) can distribute the load.
  • Configure firewalls and rate limiting: A web application firewall (WAF) can block known attack patterns. Rate limiting restricts how many requests a single IP can make per second.
  • Use Anycast DNS: Anycast routes traffic to the nearest available server, which can help absorb attacks across multiple locations.
  • Have an incident response plan: Know who to call, what to do, and how to switch to a backup service if your primary is down.

For small businesses, a cloud-based DDoS protection service is usually the most cost-effective option because it requires no hardware and scales automatically.

Common Misconceptions About DDoS

There are several myths that lead people to underestimate or misunderstand DDoS attacks:

  • “DDoS is just a prank.” In reality, DDoS attacks can cause significant financial losses, especially for e-commerce sites or online services. They are illegal in most jurisdictions and can be part of extortion schemes.
  • “A firewall stops DDoS.” Firewalls filter traffic, but they cannot handle a massive flood that saturates your bandwidth. DDoS protection requires specialized mitigation at the network level.
  • “Only big companies are targeted.” Small businesses and even individual gamers are targeted, sometimes for revenge, sometimes for extortion, and sometimes just because they are easy victims.
  • “DDoS attacks are always huge.” Many attacks are small but still disruptive. An attack that sends 10,000 requests per second can take down a small website if it is not protected.

What to Do If You Are Under Attack

If your site or service is being DDoSed, time is critical. Here are the steps to take:

  1. Contact your hosting provider or DDoS protection service immediately. They have tools to filter traffic and may be able to reroute your traffic.
  2. Do not try to fight it alone. Adding more bandwidth or rebooting servers rarely helps and may make things worse.
  3. Change your IP address if possible. If the attack targets your IP, moving to a new IP can stop it, but it may take time and may not be feasible if you have many services.
  4. Enable rate limiting and block suspicious IPs. This can reduce the load while you wait for mitigation.
  5. Preserve evidence. Log traffic data, timestamps, and any other information. This may be useful for law enforcement.
  6. Consider legal action. DDoS is illegal in many countries, and reporting the attack to authorities can help.

After the attack, review your defenses. Update your DDoS protection plan, patch vulnerabilities, and consider a post-incident analysis to identify how the attack was launched and what you can improve.

Frequently Asked Questions

Can a DDoS attack infect my computer with malware?

No, a DDoS attack itself does not infect your computer. It is a network-level attack that floods traffic. However, the botnet that carries out a DDoS attack is often created using malware, so if your computer is part of a botnet, it may have been infected separately. DDoS is a disruption, not a data breach.

How long does a DDoS attack last?

DDoS attacks can last from a few minutes to several days. The duration depends on the attacker’s goals and the effectiveness of mitigation. Most attacks are short-lived (under an hour), but some can be prolonged as part of an extortion campaign.

Is DDoS illegal?

Yes, DDoS attacks are illegal in most countries under computer misuse or cybercrime laws. In the United States, the Computer Fraud and Abuse Act (CFAA) covers them; in the UK, the Computer Misuse Act 1990. Penalties can include fines and imprisonment.

Can a VPN protect me from DDoS?

A VPN can hide your real IP address, so an attacker cannot target your home connection directly. However, the VPN server itself could be targeted, and a VPN does not protect your website or online service from being attacked. For personal protection, a VPN is useful, but for a business, you need dedicated DDoS mitigation.

What is the difference between DoS and DDoS?

DoS (Denial of Service) comes from a single source, while DDoS (Distributed Denial of Service) comes from many sources. DDoS is harder to block because you cannot simply block one IP address. DoS attacks are less common today because they are easier to trace and stop.

How much does DDoS protection cost?

Costs vary widely. Basic protection may be included with some hosting plans, while enterprise-grade services can cost thousands of dollars per month. For small businesses, cloud-based services often have tiered pricing starting at around $20–$50 per month. However, the cost of downtime is usually much higher than the cost of protection.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →