Network & Performance

The First 15 Minutes of an Outage: A Minute-by-Minute Response Playbook

Site down under attack? A 0–15 minute playbook: tell bandwidth-filling DDoS from CPU-maxing CC, then block ports, request free scrubbing, and switch to high-defense/CDN.

Short answer: In the first 15 minutes of an outage, the two worst moves are editing DNS or rebooting servers “to see if it helps”, and switching providers before you know what hit you. First classify the attack: a bandwidth-saturating volumetric DDoS and a CPU/database-saturating CC attack need completely different responses. DDoS is absorbed with capacity and scrubbing; CC is stopped with caching, rate limits and WAF rules. Then work the clock: 0–2 minutes read the monitoring, 2–5 minutes block ports, 5–10 minutes request free emergency scrubbing from your cloud provider, and 10–15 minutes switch to high-defense/CDN and rotate the origin IP if needed. If you are already on Cloudflare, a short fast track can compress this further.

Classify first: read the monitoring before you reboot

In the first minute, almost every wrong action comes from acting before looking. Both an Alibaba Cloud developer Q&A and a technical write-up comparing DDoS with CC point to the same rule of thumb: see which resource hits the ceiling first and the attack type is basically decided (sources: https://developer.aliyun.com/ask/705267 , https://www.jcwlyf.cn/content-56000.html ).

Monitoring signal More likely Response direction
Bandwidth / egress saturated, connection count spiking, origin CPU not especially high Network-layer DDoS (volumetric) Absorb with capacity and scrubbing: scale or scrub before worrying about the origin
CPU at 100%, slow-query backlog, but bandwidth not full CC (application-layer flood) Stop it with caching, rate limits, WAF rules and graceful degradation
Both at once Blended attack Block the network layer first to keep the link up, then handle the application layer

Cloudflare’s own “Under a DDoS attack?” documentation lists practical signs: the site is slow or offline, unexpected spikes in the Requests Through Cloudflare or Bandwidth graph, and strange requests in origin logs that do not match normal visitor behaviour (source: https://developers.cloudflare.com/fundamentals/security/under-ddos-attack/ ). Turning these three signals into alerts beats waiting for users to complain.

Two things not to do first:

  • Do not change DNS first. DNS has TTL cache, so a switch is not immediate — part of the traffic follows the old IP and part the new one, which muddies the scene. Worse, if the new record points at an origin that has not been locked down, you have just exposed that origin IP again.
  • Do not just reboot the server. A reboot clears established connections, but the attacking traffic is still coming and will take the site down again within minutes — and you lose the most valuable evidence: connection counts, source distribution, slow-query logs. Look first, act second. That is the most valuable move in these 15 minutes.

The minute-by-minute checklist

Print this table and keep it at the on-call desk. The ordering follows the practical guidance of “block first, request scrubbing second, switch routes last” (source: https://www.joyyan.com/Articles/Content/228 ).

Time Action Purpose
0–2 min Read cloud monitoring / CDN dashboard: bandwidth, QPS, connections, CPU, 5xx ratio — decide DDoS vs CC Classify, so the rest of the response goes down the right path
2–5 min Block obvious attack ranges in the cloud security group / iptables; close non-business ports, leave only 80/443 Shrink the attack surface and cut off paths that reach the origin directly
5–10 min File a support ticket with your cloud provider; request free emergency scrubbing or a high-defense trial Borrow the provider’s bandwidth and scrubbing to survive the peak
10–15 min Move the domain to a high-defense IP or CDN; rotate the origin IP and lock down origin access if needed Keep attack traffic away from the origin and restore basic availability

Key reminder: the 2–5 minute step is about closing the direct-to-origin bypass. As long as the origin IP is still visible in old DNS records, email headers or certificate-transparency logs, attackers can skip the CDN and hit the origin directly, making all your high-defense and caching meaningless.

Keep a timestamped log: record what you did and which numbers you saw at each step in one running note. The post-incident review — and any provider escalation — depends on that raw timeline.

The Cloudflare fast track if you are already onboard

If your site is already on Cloudflare, the 10–15 minute work can be compressed — but only if traffic actually flows through Cloudflare. Work these four steps:

  1. Turn on Under Attack mode. In Security → Settings → Security Level, switch to “I’m Under Attack”. It issues a Managed Challenge to visitors, filtering out attack traffic that cannot run JavaScript (source: https://developers.cloudflare.com/rules/configuration-rules/settings ). This is a temporary bleeding-stopper, not a permanent security level.
  2. Confirm the proxy status is orange-cloud (Proxied). Only Proxied records go through the Cloudflare network and receive caching and DDoS protection; a DNS-only (gray-cloud) record is just resolution and traffic still goes straight to the origin (source: https://developers.cloudflare.com/fundamentals/get-started/setup/troubleshooting/ ). Check every A / AAAA / CNAME record for the attacked hostname — apex and www alike.
  3. Make the cache policy aggressive. Serve static assets from the edge with longer TTLs; HTML can ride on a short edge TTL or Cache Everything temporarily, but carve out logged-in sessions, carts and API paths so dynamic content is not cached incorrectly. A thicker cache means fewer origin requests and a harder time for CC to reach the application.
  4. Check for the “B3 case”: Cloudflare DNS only, proxy off. This is the most common reason for “I’m on Cloudflare, why did the site still go down”: nameservers were handed to Cloudflare, but every record is gray-cloud. You are only using DNS hosting — DDoS scrubbing, WAF and Under Attack mode are all inactive. The fix is to flip the records to orange-cloud, but first verify the origin certificate, ports and allowed Cloudflare IP ranges so the site does not go straight to 502 after the switch.
First 15 minutes: classify, block, then switch 0–2 min Read monitoring DDoS or CC? 2–5 min Block ranges Keep only 80/443 5–10 min File ticket Request free scrubbing 10–15 min Switch to high-defense/CDN Rotate origin if needed Already on Cloudflare: Under Attack + orange cloud + aggressive cache + check the B3 case, in parallel.
Figure 1: Some of the four windows can run in parallel, but classification must finish before you switch routes.

Cloudflare capabilities vs. what your application must own

Cloudflare can absorb network-layer floods and part of the application layer, but it cannot fix configuration errors or business logic. Plan-level rule counts follow the same convention used elsewhere in this series; confirm against the current official documentation.

Item What Cloudflare provides What your application must do
Network-layer DDoS scrubbing Automatic mitigation on proxied traffic by default; see https://developers.cloudflare.com/ddos-protection/ Origin authenticity: allow inbound only from Cloudflare origin IP ranges and remove every direct-to-origin bypass
Application-layer CC / HTTP Flood WAF custom rules plus HTTP DDoS protection (custom rules: Free 5 / Pro 20 / Business 100 / Enterprise 1,000; regex from Business) Calibrate rate limits to real business peaks, differentiating login, search and API paths
Challenges Under Attack mode (Managed Challenge), one switch Identify paths that must not be challenged (payment callbacks, API clients) and turn the mode off afterwards
Origin hiding Only Cloudflare edge IPs exposed when proxied Check whether the origin IP leaked through old DNS records, email headers or certificate logs
Cache and bandwidth offload CDN caches static assets; the edge absorbs repeat requests Degradation plan: turn off recommendations / comments / search and protect checkout and payment
Authoritative counting and circuit breaking Rate limiting rules (Free 1 / Pro 2 / Business 5 / Enterprise 100; edge counters accumulate per data center) Authoritative counters, circuit breakers and queue smoothing in the application — do not delegate absolute ceilings to the edge

Boundaries and non-applicable cases

  • Rotating the IP is not a cure. If the origin IP leaked long ago, rotation only buys time; without locking down the origin and hiding it, the new IP will be scanned quickly. Rotate the IP together with “allow only Cloudflare/high-defense ranges inbound”.
  • A CDN cannot stop every DDoS. Edge networks and caching excel at absorbing repetitive, cacheable requests. CC attacks aimed at dynamic endpoints, complex query strings or human-like behaviour still need WAF, rate limits and degradation — a CDN is not a universal shield.
  • Under Attack mode should not stay on. It challenges real visitors too, hurting conversion, slowing API clients and potentially breaking payment/webhook callbacks. Remember to turn it off once the attack subsides.
  • Free emergency scrubbing has limits. Provider free scrubbing and high-defense trials buy time, not a permanent solution. If your business is repeatedly targeted, evaluate an always-on high-defense or dedicated scrubbing service.

FAQ

What is the first thing to do when an attack takes the site down? Read the monitoring and classify before touching anything — do not change DNS and especially do not reboot. Bandwidth full with low CPU suggests a network-layer DDoS; CPU pegged and a stuck database with bandwidth to spare suggests CC. Get the classification wrong and every subsequent step misses.

Should I rotate the IP during an attack? It depends. If the origin IP is not exposed and the CDN is absorbing the attack, no rotation is needed. If the IP has leaked and is being hit directly, rotation buys minutes to hours — but only if you lock down the origin at the same time (allow only Cloudflare or high-defense IP ranges inbound), or the new IP will be found just as easily.

How do I tell an attack from a genuine traffic spike? Look for three divergences: business metrics (orders, signups) flat while traffic surges; sources concentrated in a few ranges or regions; requests concentrated on a few expensive endpoints or carrying odd parameters. A real campaign usually brings business metrics up in step, diverse sources and a normal path distribution.

Can a CDN stop all DDoS attacks? No. A CDN absorbs peaks with distributed bandwidth and caching, which works best for static content. It cannot help against dynamic endpoints, login/search-style CC, or attacks that connect straight to the origin. The complete answer is CDN + WAF + rate limiting + origin lockdown.

Run the same check on your domain

Enter a domain and see its DNS hosting, mail authentication and Cloudflare status in 30 seconds. Free, public records only.

Public DNS records only. No intrusive scanning. · Used only to send this diagnosis — no marketing blasts.

← Back to articles

Authorized Cloudflare Partner

Making an architecture decision for overseas markets?

Enterprise tier selection, architecture consulting, risk assessment — tell us the scenario and we will map a concrete path.

As a Cloudflare partner, we provide:

Book a consultation