Article SSL & Security

What a DDoS attack is, and what you can do

A flood of traffic from many sources at once, aimed at overwhelming a site rather than breaking into it. Here is what it actually looks like.

Updated 8 min read Intermediate

A distributed denial-of-service attack, almost always shortened to DDoS, aims to make a site or service unavailable by overwhelming it with more traffic or more requests than it can handle — not by breaking in, stealing data, or exploiting a vulnerability in the code. The goal is simply to make the site stop responding for legitimate visitors, by exhausting the resources needed to serve them.

Why "distributed" is the important word

A denial-of-service attempt from a single source is comparatively easy to deal with — blocking one address, as covered in how to block an IP address from your site, stops it outright. A distributed attack instead uses a large number of separate sources at once, often computers that have themselves been compromised without their owners' knowledge and organised into a network working together. Because the traffic arrives from many different, often entirely legitimate-looking addresses simultaneously, blocking individual sources one at a time cannot keep pace with the volume.

What it typically targets

TypeWhat it overwhelms
VolumetricRaw network bandwidth, simply by sending more data than the connection can carry
Protocol-basedServer or network equipment resources, by abusing how a connection protocol is meant to work
Application-layerThe website application itself, with a high volume of requests that look like ordinary page loads but arrive far faster than any real visitor would generate them

Application-layer attacks are often the hardest to distinguish from a genuine surge in legitimate traffic, since each individual request can look entirely ordinary — the giveaway is usually the volume and pattern, not any single request looking obviously malicious. A real traffic surge, from a news mention or a marketing campaign for instance, tends to arrive with recognisable variety in the pages requested and the devices making the requests; an attack more often shows an unnatural sameness across a huge number of otherwise unrelated sources.

What it looks like from the site owner's side

The most common symptom is straightforward: the site becomes slow or entirely unreachable, with server resource usage — CPU, bandwidth, or the number of simultaneous connections — spiking well beyond anything a normal traffic pattern would produce. This can look similar to a site simply struggling under a genuine surge of real visitors, and telling the two apart usually comes down to examining where the traffic is actually coming from and whether it behaves the way real visitors do.

This is different from a hacked site

A DDoS attack does not modify your files, steal data, or gain access to anything. It is purely about volume and availability. A site can be entirely secure in every other respect and still be affected by one, which is worth knowing so you do not spend time looking for a compromise that a DDoS attack, on its own, would not have caused.

What is realistic for a site owner to do

Mitigating a large-scale distributed attack generally requires capacity and infrastructure at the network level, above what an individual website owner manages directly — this is typically handled at the hosting or network provider level, where traffic can be absorbed or filtered before it reaches individual sites at all. If your site is experiencing what looks like a DDoS attack, contact your hosting provider promptly rather than trying to resolve it entirely from within your own site's control panel, since the effective response usually happens further upstream than anything configurable there.

There are still things worth having in place beforehand:

  • A content delivery network or similar service in front of your site, which can absorb and filter a meaningful amount of unusual traffic before it reaches your server directly.
  • Monitoring that alerts you to unusual traffic or resource spikes promptly, covered in how to monitor website uptime, so you notice quickly rather than finding out from visitor complaints.
  • A web application firewall, which can help filter some application-layer attack patterns before they reach your site's own code — see what a web application firewall does.

How long these typically last

Duration varies enormously depending on the scale of the attack and the motivation behind it — some last minutes, others persist for days, and a smaller number are sustained on and off over a much longer period. There is no reliable rule of thumb for how long to expect one to continue, which is part of why having monitoring and a response plan in place beforehand matters more than trying to predict duration once one has started. Communicate proactively with visitors or customers during a prolonged outage where you are able to, since uncertainty about whether a site will come back is often more frustrating for people affected than the outage itself.

What it does not mean about your site

Being targeted by a DDoS attack is not a reflection of anything wrong with how your site is built or secured — plenty of well-run, carefully maintained sites experience one regardless. It is also not something a strong password or an up-to-date CMS specifically defends against, since it does not attempt to log in or exploit application code at all. Treat it as a separate category of problem from the compromise-focused advice elsewhere in this section, requiring its own response rather than the credential and permission fixes that address an actual breach.

Related reading