A distributed denial-of-service (DDoS) attack uses thousands of devices – often hacked cameras, routers and servers – to send so much traffic to a website that it collapses. You might think only banks and governments get attacked. Unfortunately, small sites are targets too: competitors, extortionists, angry visitors or simply random bots.
Types of attacks
| Type | What happens |
|---|---|
| Network floods | Huge amounts of traffic overwhelm the connection |
| Application attacks | Many requests to heavy pages like search or login exhaust the server |
| Bot abuse | Scrapers and spam bots act like a slow-motion attack |
Protection that works
- Put a CDN in front of your site – most include DDoS protection (see what is a CDN).
- Enable a web application firewall with rules against common attacks.
- Rate-limit login, search, forms and APIs.
- Cache aggressively so most requests never reach your server.
- Hide your origin server: only allow traffic from the CDN.
- Go static where possible – a static site behind a CDN barely notices most attacks.
During an attack
- Turn on your CDN’s “under attack” or challenge mode if available.
- Contact your host and CDN support.
- Block abusive countries or networks temporarily if your audience is local.
- Do not pay ransom demands; report extortion to the police.
- Afterwards: check logs, update passwords and review what made the site vulnerable.
Frequently asked questions
Will my host protect me against DDoS?
Most hosts have network-level protection against large attacks, but application-level floods – many requests to a slow page – often get through. A CDN or firewall in front of your site adds protection.
Is a DDoS attack a data breach?
Not by itself: it makes your site unavailable rather than stealing data. It can however be used as a distraction during other attacks, so check your logs afterwards.