Last updated: · By Asael Dreyer
In short: a DDoS attack floods your site with requests from thousands of machines at once, until the server cannot answer real visitors. In real time: use traffic monitoring to see where the requests come from, turn on Under Attack Mode in Cloudflare, block IPs or countries in the server firewall, and make sure Cloudflare cannot be bypassed through the IP address. This is how it works on Cloudways, as of 7 Nov 2026.
⏱ First response time: 15–30 minutes · Difficulty: intermediate to advanced · Last checked: 7 Nov 2026
What is a DDoS attack and what types are there?
DDoS (Distributed Denial of Service) is a distributed denial-of-service attack: many machines, usually hacked computers and devices, send traffic to the same target. The difference from a plain DoS is the distribution, so blocking a single address does not stop it.
| Type | What happens | Who usually stops it |
|---|---|---|
| Layers 3–4 (network and transport) | A flood of packets or connections that fills the bandwidth | The provider and the network. On Cloudways, layer 3–4 protection is included on all servers |
| Layer 7 (application, HTTP flood) | Lots of “normal” requests to heavy pages: search, cart, wp-login | A CDN with WAF and rate limiting, and a server-level firewall |
| Aggressive bots | Scrapers or fake Googlebots that load the site with no intent to take it down | Bot management, blocking by user agent or rate |
According to the Cloudways security page, all servers include DDoS protection at layers 3 and 4, and Flexible servers are also protected by a server-level firewall (Imunify360) that filters malicious traffic and DoS attacks. Most attacks that take down WordPress sites are at layer 7, and that is where you need the protections below.
How do you know your site is under a DDoS attack?
The first sign is usually 502/504 errors or a stuck site, together with server CPU at 100% for no business reason (no sale, no campaign).
- In the Cloudways dashboard, open the application: Monitoring > Analytics > Traffic. According to the official guide, it shows the addresses with the most requests, bot traffic, the requested URLs and response codes.
- Look for a pattern: single IP addresses with thousands of requests, a single URL that keeps repeating (for example /?s= or wp-login.php), or a single user agent.
- On the server, open Security > Overview. According to the Cloudways security guide, it shows an assessment of attack intensity and the incidents blocked over the last 30 days.
- Compare with Google Analytics: if the server is collapsing but the number of real visitors is normal, the traffic is not people.
Not every load spike is an attack. AI bots or SEO crawlers can load a site heavily. I measured which bots get blocked on my own server: AI bots on Cloudways. And if the site is simply slow with no attack, see slow site and high CPU.
What do you do in real time when your site is attacked?
The order: first stop the bleeding in Cloudflare, then block on the server, and only at the end analyze.
- Turn on Under Attack Mode: with the Cloudways Cloudflare Enterprise add-on, it is a switch in the application’s Cloudflare settings. According to Cloudways, it is a last-resort step meant for layer 7 attacks, and verified bots like Googlebot and Bingbot keep crawling. On your own Cloudflare account, the setting is in the Cloudflare dashboard.
- Make sure Rate Limiting and WAF are on: in the Cloudways add-on both are enabled by default, under Cloudflare > Settings > Security.
- Block in the server firewall: Security > Firewall lets you block IP addresses, ranges (subnets) and countries. If the whole attack comes from a country where you have no customers, blocking the country is a quick step.
- Block direct access to the server IP: an attack aimed straight at the server’s address bypasses Cloudflare. In Settings & Packages you can block direct traffic to the IP address, according to the Cloudways guide.
- Protect the heavy endpoints: wp-login.php, xmlrpc.php and site search. A challenge rule in Cloudflare for those addresses removes most of the load.
- Open a support ticket with the addresses and times you saw. See how to open a ticket on Cloudways.
What does Under Attack Mode do to visitors?
According to the Cloudflare documentation, every visitor goes through a browser check that decides within up to five seconds whether to allow or block, and the visitor needs JavaScript enabled. Cloudflare warns that the mode temporarily hurts access and analytics data. So you turn it off as soon as the attack ends.
Note: mobile apps, payment provider webhooks and API connections do not run JavaScript and can get blocked. On a store, check after turning it on that payments still go through. See payment notifications not reaching WooCommerce.
The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.
The offer ends on December 4, 2026 at 23:59 (UTC+2).
Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.
After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator
Start a free trial server, no credit card. When you move to a paid plan, the code ASAEL takes 30% off your bill for the first three months.
The link fills in the code on the signup form. Just make sure it shows up.
Is free Cloudflare enough against DDoS?
For most attacks, yes. According to the Cloudflare documentation, unmetered DDoS protection at layers 3 to 7 is included in all plans, including the free one. The difference is in the tools around it: bot management, flexible rate limiting and support. You can see what Cloudflare actually blocks in the guide to security events in Cloudflare.
| Capability | Free Cloudflare | Cloudflare Enterprise via Cloudways |
|---|---|---|
| DDoS protection, layers 3–7 | Yes | Yes |
| Bot management | Bot Fight Mode, with no WAF exceptions | Enterprise-level Bot Management |
| Rate Limiting | Set up manually in your own account, depending on the plan | On by default |
| Cost | $0 | $4.99 per domain per month (1–4 domains), as of 7 Nov 2026 |
According to the Bot Fight Mode documentation, you cannot exempt addresses from it with WAF rules, and it may challenge API and mobile traffic. A full comparison: Cloudflare Enterprise on Cloudways, and prices on the add-ons pricing page.
How do you prepare for the next attack?
- Turn on Cloudflare (free or Enterprise) before there is an attack. Turning it on mid-attack needs a DNS change, and up to 24 hours of propagation.
- Block direct access to the server IP, so Cloudflare cannot be bypassed.
- Limit wp-login.php and xmlrpc.php. Cloudways protects against repeated login attempts on SSH and HTTP.
- Make sure caching works: a cached page costs the server almost nothing, even under load.
- Write down in advance who handles it, how to get into the dashboard, and where the switches are. During an attack there is no time to look.
An extra insurance: a recent backup. A DDoS attack does not steal data, but it is sometimes used to mask a breach. Hardening guide: hardening security on Cloudways.
Frequently asked questions
Common signs are 502/504 errors, server CPU at 100% and unusual traffic with no rise in real visitors in Analytics. On Cloudways, the Traffic screen in the application shows which IP addresses and URLs send the most requests.
An emergency mode in Cloudflare where every visitor goes through a short browser check before entering the site, and malicious bots are blocked. It is meant for application-layer attacks, and you turn it on only during an attack because it temporarily hurts the experience and analytics.
Yes, at a basic level. All servers include DDoS protection at layers 3–4, and Flexible servers are protected by a server-level firewall (Imunify360). For application-layer attacks, Cloudflare is recommended, free or through the Cloudflare Enterprise add-on.
Usually not. DDoS is meant to take the site down, not to break into it. It is sometimes used as a distraction from a breach, so after an attack it is worth checking users, files and security logs.
Yes. In the server’s Security tab, on the Firewall screen, you can block IP addresses, address ranges and countries. Before you block a country, make sure you have no customers or external services there that need access.
Yes, unmetered DDoS protection is included in the free plan too, according to Cloudflare. What the free plan mostly lacks is advanced bot management and flexible rate limiting, which matter in application-layer attacks.
Related guides
- Bot protection on Cloudways
- Cloudflare Enterprise on Cloudways
- Cloudways add-ons pricing
- 502 and 504 errors: what to check
- Cloudways review: who it suits
- All the security guides
Sources
- Cloudflare DDoS Protection – unmetered protection, layers 3–7, in all plans (checked 7 Nov 2026)
- Under Attack mode – Cloudflare Docs (check of up to 5 seconds, effect on analytics)
- Bot Fight Mode – Cloudflare Docs
- Cloudways Managed Security – layer 3–4 DDoS, Imunify360, IP and country blocking
- How to Enable Cloudflare on Your Application – Cloudways KB (Under Attack Mode, WAF, Rate Limiting)
- A Brief Guide to Server Security Management – Cloudways KB (Overview, Incidents, Firewall)
- How to Monitor Traffic Statistics of an Application – Cloudways KB
- How to Block Direct Web Traffic Pointed Towards Server’s IP – Cloudways KB
Official source: Cloudways Knowledge Base and Cloudflare Docs. This guide was written and checked by Asael Dreyer · Updated: 7 Nov 2026
Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details