A DDoS (Distributed Denial of Service) attack overwhelms a website by sending more requests than the server can process, often using a botnet of compromised devices. Because the traffic originates from many sources, simple IP blocking is ineffective, so mitigation must focus on filtering, limiting, and absorbing the flood.

What is a DDoS attack and why does it matter?

A DDoS attack aims to make a site unavailable by exhausting bandwidth, protocol resources, or application processing power. The effect is visible as slow page loads, time-outs, or complete outage for legitimate visitors. The attacker’s intent is disruption, not necessarily data theft, though a DDoS can be used as a distraction for other exploits.

What are the main types of DDoS attacks?

Type Typical Target How it works
Volumetric Network bandwidth Sends massive amounts of junk traffic (e.g., UDP floods) to saturate the link between the internet and the server.
Protocol Server resources such as connection tables Exploits weaknesses in TCP/IP, HTTP/2, or SSL/TLS handshakes to consume CPU, memory, or connection slots.
Application layer Specific endpoints (login, search, API) Generates legitimate-looking requests that are computationally expensive for the web application to handle.

How does a DDoS attack affect a WordPress site?

WordPress relies on PHP processing, database queries, and often external services (fonts, scripts). When an attacker bombards the site with requests to heavy endpoints—like the login page or a custom REST route—the PHP interpreter and MySQL server can become saturated, leading to high CPU usage and eventual time-outs. Even a modest volumetric spike can overwhelm shared hosting environments where resources are tightly limited.

Concrete example: a botnet targeting the login page

Imagine a botnet of 5,000 compromised devices each sending a POST request to https://example.com/wp-login.php at a rate of 2 requests per second. That is 10,000 login attempts per second. WordPress must load its core files, query the users table and check a deliberately slow password hash for each attempt. On a typical shared host, every PHP worker is busy within seconds, causing all visitors—including legitimate users—to receive “502 Bad Gateway” errors. The site appears offline even though the underlying server is still running.

How to protect your site from DDoS attacks (step-by-step)

  1. Deploy a CDN with built-in DDoS mitigation - Route traffic through a globally distributed network that can absorb large volumetric spikes before they reach your origin server.
  2. Enable a cloud-based Web Application Firewall (WAF) - A WAF inspects incoming HTTP requests and blocks patterns known to be malicious. See What a web application firewall is for details on cloud and plugin options.
  3. Implement rate limiting - Restrict the number of requests a single IP can make to sensitive endpoints (login, XML-RPC, REST API). Follow the guidance in Rate limiting.
  4. Choose hosting with sufficient network capacity and built-in mitigation - Providers that allocate extra bandwidth and have automated DDoS scrubbing can keep your site online during an attack. Compare the approaches in WordPress firewall vs. host firewall.
  5. Block known bad bots - Add rules to your server or WAF to drop traffic from user-agents and IP ranges that are identified as abusive crawlers.
  6. Monitor traffic patterns - Use server logs or analytics to spot sudden spikes in requests, especially to high-cost URLs, and trigger mitigation rules automatically.

Common mistakes when defending against DDoS

  • Relying solely on IP blocklists - Attack traffic comes from many IPs, often rotating, so blocklists quickly become outdated.
  • Disabling caching - Caching reduces the work each request requires. Turning it off during an attack amplifies load.
  • Setting rate limits too low - Overly aggressive limits can lock out legitimate users, especially on mobile networks where IPs change frequently.
  • Neglecting protocol-level attacks - Focusing only on application-layer protection leaves the site vulnerable to SYN floods or SSL renegotiation attacks.

Limitations of typical mitigation measures

  • CDN capacity is not infinite - Extremely large volumetric attacks can still exceed the CDN’s scrubbing capacity, resulting in partial degradation.
  • WAF rules can produce false positives - A poorly tuned rule may block legitimate API calls, breaking functionality.
  • Rate limiting cannot stop distributed attacks - If each bot in a botnet sends a few requests per second, the aggregate may stay under per-IP limits while still overwhelming the server.
  • A firewall on your own server acts only once traffic has reached it - A flood that fills your network link has to be stopped upstream, by your host or a CDN.

How Silent Threads helps

While a single plugin cannot absorb a massive network flood, Silent Threads reduces application-layer pressure by rate-limiting abusive sources, blocking fake search-engine crawlers, and stopping the brute-force and attack traffic that often accompanies a flood.

The short version

A DDoS attack floods a site with traffic from many sources, causing downtime. Protect your WordPress site by using a CDN with DDoS mitigation, a cloud WAF, sensible rate limiting, and a host that offers built-in traffic scrubbing. Remember to monitor traffic, avoid over-blocking, and understand that no single tool can stop every type of attack.