Signs of a DDoS Attack
- The site or server becomes unreachable without a change on your side.
- Bandwidth use jumps far above normal.
- Many requests arrive from unfamiliar networks at once.
- The server's load or connection count climbs with no matching rise in real users.
A traffic spike from a campaign or a news mention can look similar, so check where the requests come from before you act.
What to Do in the First Minutes
- Confirm that it is an attack: look at the bandwidth graphs and the access logs.
- Tell your hosting provider. Filtering upstream is faster and more effective than anything done on the server.
- Limit what you can on the server: rate limits, and blocks for the networks sending the most traffic.
- Keep a way in for yourself, such as the provider's console.
- Save the logs and graphs; they help the provider and any later report.
Types of Attack and What Stops Them
| Attack | Layer | What stops it |
|---|---|---|
| Volumetric floods (UDP, ICMP, amplification) | 3 and 4 | Filtering in the provider's network or a scrubbing service |
| Protocol attacks (SYN flood) | 3 and 4 | Firewalls with SYN protection, and upstream filtering |
| Application attacks (HTTP flood) | 7 | Rate limiting, a web application firewall, and caching |
What a Firewall on the Server Can and Cannot Do
A firewall on the server drops unwanted packets, but only after they have reached the server. That works against small floods. A large attack fills the network port before the firewall sees a packet, which is why volumetric attacks have to be filtered upstream.
How to Prepare Before an Attack
- Choose hosting with DDoS protection in the network.
- Put static content behind a cache or a CDN.
- Keep software updated and close the ports you do not use.
- Know your normal traffic, so a change stands out.
- Keep your provider's support contact at hand.