Hosting

DDoS Attacks Explained: How to Keep Your Site Online

DDoS Attacks – DDoS Attacks Explained: How to Keep Your Site Online

In this guide: DDoS attacks explained: what a DDoS attack is, the main types, signs you’re under attack, protection services, and a simple response plan to keep your site…

Imagine thousands of cars suddenly blocking the road to your store so real customers can’t get in. That’s essentially a DDoS attack — and it can take down websites of any size, from small blogs to major companies.

What a DDoS attack is

DDoS stands for Distributed Denial of Service. Attackers use many devices — often a botnet of hacked computers, servers, routers, and IoT devices — to flood a target with traffic or requests. The goal is to overwhelm your server, network, or application so legitimate visitors can’t access it.

Why would someone attack your site?

  • Extortion: “Pay us or we keep your site offline.”
  • Competition or grudges.
  • Hacktivism.
  • Distraction while attempting another attack.
  • Random targeting — sometimes sites are hit simply because they’re reachable.

Types of attacks

1. Volumetric attacks
Flood your network with massive amounts of traffic (e.g., UDP floods, amplification attacks), saturating bandwidth.

2. Protocol attacks
Exploit weaknesses in network protocols to exhaust server or firewall resources (e.g., SYN floods).

3. Application-layer (Layer 7) attacks
Send many seemingly legitimate HTTP requests — like repeatedly loading search results, login pages, or uncached pages. They require less traffic but are harder to distinguish from real users, and they hit the most resource-intensive parts of your site.

For WordPress sites, common application-layer targets include wp-login.php, xmlrpc.php, search pages, and dynamic WooCommerce endpoints.

Signs you’re under attack

  • Site becomes very slow or unreachable suddenly.
  • Traffic spikes from unusual countries, IP ranges, or user agents.
  • Many requests to one URL (login, search, a specific page).
  • Server resource usage (CPU, memory, bandwidth) hits limits.
  • Your host alerts you or temporarily suspends your account to protect others.
  • Analytics show traffic, but no real engagement (bots).

Not every spike is an attack — a viral post or campaign can look similar. Check where traffic comes from and whether visitors behave like humans.

Protection services

CDN with DDoS protection
Services like Cloudflare (including free plans) absorb large volumes of attack traffic across their global network before it reaches your server. See Cloudflare Free vs Pro.

Web Application Firewall (WAF)
Blocks malicious HTTP requests and bad bots at the application layer. See Web Application Firewalls Explained.

Rate limiting
Limits how many requests one IP can make in a given time — especially useful for login and search pages.

Bot management and challenges
Challenge suspicious visitors with JavaScript checks or CAPTCHAs (e.g., Cloudflare Turnstile or managed challenges).

Hosting-level protection
Many hosts provide network DDoS mitigation. Ask what’s included.

Hardening your site

  • Use page caching so most requests don’t hit PHP and the database.
  • Disable XML-RPC if unused.
  • Protect login pages — see How to Change the WordPress Login URL.
  • Hide your origin server IP behind the CDN (and avoid exposing it via DNS records or email headers).

Your response plan

Prepare before an attack:

  1. Put your site behind a CDN/WAF now, not during an emergency.
  2. Know your host’s emergency contact and procedures.
  3. Set up monitoring so you know immediately — see Best Uptime Monitoring Tools.
  4. Document your DNS settings and CDN login (with 2FA).

During an attack:

  1. Confirm the attack: check analytics, server logs, and CDN dashboards.
  2. Enable “Under Attack” mode or stricter security settings in your CDN.
  3. Add rate limiting and firewall rules blocking the targeted URLs, countries, or user agents (if clearly malicious).
  4. Contact your host — they may have additional mitigation.
  5. Communicate with customers if the outage is visible — see Crisis Communication.
  6. Don’t pay extortion demands — it doesn’t guarantee the attack stops and encourages more attacks.

After an attack:

  1. Review what was targeted and strengthen those areas.
  2. Keep stricter rules for a while — attackers sometimes return.
  3. Document the incident and your response.

Further reading: WordPress Advanced Administration Handbook

Key Takeaways: DDoS Attacks

  • A DDoS attack floods your site with traffic from many sources.
  • Volumetric, protocol, and application-layer attacks target different layers.
  • A CDN with WAF, rate limiting, and caching is your best defense.
  • Prepare a response plan before you need it.
Z
zasma171

Writes for Hostreta about the topics covered in this article.

Comments (0)

Your email address will not be published. Required fields are marked *

Recent Comments

No comments to show.
Ad · AdSense
Ad space 300×250
Affiliate links
Tools we recommend
Protect Your Website with Automated Daily Backups
$2.09
Get it
the easiest way to manage all of your social media accounts
$29
Get it
Starter Website Get online, properly
$249
Get it
google workspace Business Starter
$3.75
Get it
Nord Vpn Cybersecurity. Built for Everyday Use
$8.99
Get it

We may earn a commission on purchases made through these links, at no extra cost to you.

Ad · AdSense
Ad space 300×600
Ad · AdSense
Ad space 300×600

$ top hosting picks

affiliate
★★★★★

NovaHost

$2.95/mo,renews at $9.95
  • Free SSL + domain, first year
  • 1-click WordPress install
  • 24/7 chat, sub-5-min response
get this deal →
affiliate link · we may earn a commission
★★★★★

CloudRoot

$4.50/mo,renews at $12.95
  • Built-in CDN + caching
  • Daily backups, 30-day retention
  • Staging environments included
get this deal →
affiliate link · we may earn a commission
★★★★★

AI SiteBuilder

$1.49/mo,renews at $13.99
  • 5 Websites
  • Emails & Security Included
  • AI Website Builder for WordPress
get this deal →
affiliate link · we may earn a commission

Never miss a new article

Join thousands of developers and builders getting a weekly digest of the best tech articles.