Security

What is a DDoS attack and how do you protect against one?

How distributed denial-of-service attacks work, the three main types, warning signs, and the layers of protection that keep services online.

By Oxflare Engineering2 min read

Updated

Security shield illustration

A distributed denial-of-service (DDoS) attack tries to make a website or service unavailable by overwhelming it with traffic from many sources at once. The sources are usually compromised computers, routers and smart devices organised into a botnet and rented out cheaply.

Three types of attack

  • Volumetric attacks flood your network connection with more data than it can carry, measured in gigabits or terabits per second.
  • Protocol attacks exploit weaknesses in network protocols, such as SYN floods that exhaust a server's connection table.
  • Application-layer attacks send requests that look legitimate, like loading a search page thousands of times a second, to exhaust CPU and databases.

Signs you may be under attack

Sudden, unexplained slowness or outages; huge spikes of traffic from unusual countries or networks; many requests for a single URL; server resources maxed out with no matching rise in real users.

Layers of protection

  1. Network filtering at the provider absorbs volumetric and protocol attacks before they reach your server. All Oxflare services include this.
  2. A CDN and web application firewall hides your origin, caches content and filters malicious HTTP requests.
  3. Rate limiting and bot challenges slow down abusive clients without affecting real visitors.
  4. Application design matters too: cache expensive pages, limit costly queries and make sure your site degrades gracefully.

Put it into practice

Our team can set this up for you, or answer any questions.