Help for owners
My site is being flooded with traffic and is down, and I use Cloudflare
Short answer
Cloudflare detects and mitigates DDoS attacks automatically on all plans, but only for traffic that goes through it. If attackers reach your server's own address, or one expensive page is hammered, the site can still fall over. Under Attack mode is described as a last resort and adds a check for every visitor.
Does this sound like your situation?
- The site is very slow or down and traffic charts show a spike.
- Thousands of requests arrive for one page, often a login or search.
- My host says the server is overloaded or sends an abuse notice.
- Visitors from places I do not sell to are flooding in.
- Cloudflare is set up, but the site still falls over.
Why does this happen?
Cloudflare mitigates automatically, within its limits
Cloudflare says its autonomous systems detect and mitigate DDoS attacks on all plans, at the network and application layers, using managed rulesets that you can customise. How much you can customise depends on your plan, and alerts are available on all plans.
Confirmed by developers.cloudflare.com
Traffic reaching the server by another route
Protection only covers traffic that passes through Cloudflare. If the server's real address is known and open, attackers can hit it directly. Locking the server to accept only Cloudflare is a server job.
A single costly page is targeted
A flood that looks like normal visitors to a login, search or checkout page can overwhelm a database even at modest volume. Rules that limit those paths are a configuration and code task.
The attack mode itself has a price
Under Attack mode adds a check to every visitor, shown as an interstitial page that runs within five seconds. Cloudflare says it is designed as one of the last resorts, that it can pause access to your site, and that it affects site analytics and third-party analytics tools.
Confirmed by developers.cloudflare.com
It is not an attack at all
A viral post, a campaign email, a broken script, a bot crawl or a misbehaving app can look like an attack. The logs show whether the traffic is real.
What can I do about it today?
- Confirm your domain is on CloudflareLog in to Cloudflare and check that the site's status is Active and the traffic is orange-clouded, meaning it goes through Cloudflare.
- Look at the Security and Analytics viewsNote the time the spike started, the top paths, countries and the type of request. Take screenshots.
- Consider Under Attack mode only as a short measureIt is in the Quick Actions sidebar of the zone overview. Expect visitors to see a check page, and agree it with your developer first.
- Contact your hostTell them the time and the symptoms. They can see traffic at the server and may block at their level.
- Do not pay anyone who emails demanding moneyExtortion mails that threaten an attack are common. Do not reply or pay.
- Do not switch DNS around or delete the domain from CloudflareChanging nameservers or records in a panic can take the site fully offline and expose the server.
When should I bring someone in?
- The site is down for customers and the cause is not clear.
- Attackers are hitting one page such as login or search.
- Your server still receives traffic from outside Cloudflare.
How do I handle it?
- Read the traffic before reactingI look at Cloudflare analytics and the server logs together to tell attack, bot crawl and real surge apart.
- Close the back doorThe server is set to accept traffic only from Cloudflare, so the attack cannot go around it.
- Protect the expensive pathsLogin, search and API routes get rate limits and challenges, and cached pages are cached at the edge.
- Keep real customers workingRules are narrow, tested on a sample, and relaxed again once the spike ends.
- Set alerts and a planNotifications go to your email and you receive a short written runbook for the next time.
The price depends on what I find, so I quote in writing after a short discovery call. Tell me what is happening and I reply within 24 hours.
What do owners ask about this?
Does the free Cloudflare plan protect against DDoS?
Cloudflare states that automatic DDoS mitigation applies on all plans, including Free. Customisation options differ by plan.
Is Under Attack mode safe to leave on?
Cloudflare describes it as a last resort that can pause access and affect analytics, so it is usually used for the length of an attack only.
Can the site be made immune to attacks?
No. I can reduce the exposure and prepare a response, but no one can promise that a site will never be knocked over.
Sources
How was this page made?
I drafted this page with AI assistance from the official documents listed under Sources. Found a mistake? Tell me.