Privacy

Website down: DDoS attack or server failure?

A website outage can look like a cyberattack. Compare CDN and server signals to find out which part failed and what to do next.

Made by Pagember · Editorial policy

Primary sources + editorial analysisPublished Updated Sources

The short answer

Compare requests at the CDN with origin health over the same time window. Unusual edge traffic and mitigation events suggest an attack; ordinary traffic and failing origin checks point to a service problem. Both can happen in the same incident.

On this page6 sections

Compare traffic arriving at your CDN with the health of the server behind it. A sudden surge that matches DDoS mitigation events calls for a different response from steady traffic hitting an origin that stopped answering after a deploy. If you only have one of those views, collect it before changing DNS or applying blanket blocks. A 503, on its own, tells you neither the cause nor who caused it.

Two white servers beside a glass boundary with blue light trails on one side.

This page helps you tell an attack from an ordinary server failure. For the full checklist of gateway and server errors, start with 502, 503 and 504 website errors: find the failed layer before changing settings.

The CDN is the edge visitors connect to. The origin is the application or hosting service the edge normally contacts. A cached product page may still open while the origin is struggling and checkout fails. The distinction lets you protect the broken part of the service without weakening the controls around the rest.

The first 15 minutes

  1. Open an affected URL from a second connection and note the time in UTC, exact address, status code and any provider request ID. Try one cached public page and one safe dynamic route, such as a read-only account or product request. Avoid retrying a payment or form submission that might already have gone through.
  2. Check your hosting and CDN status pages, then look at the last changes to deployments, DNS, the firewall and certificates. Write down the observed time the problem began. A recent release is a useful lead, but the timeline alone does not establish cause.
  3. Select the same time window in the CDN and hosting dashboards. Compare request volume and mitigation events at the edge with application errors, CPU or connection pressure, and a safe health check at the origin. Use the host's dashboard, runbook or support channel for the origin check. Keep the origin's access controls and avoid exposing its address.

Read the edge and the origin together

Compare these signals before making a change:

Observed patternWhat to check nextFirst intervention
Edge traffic and mitigation events rise togetherOrigin health still passes and some cached and dynamic routes workInspect the affected host and path in the CDN security dashboard. Ask the CDN or host about targeted mitigation if necessary.
Request volume looks normal, but the origin failsLook for application or upstream errors, resource exhaustion and deploy timingInvestigate the origin. Roll back a recent release through the normal procedure if the evidence points to it.
Edge attacks rise and origin health also fallsCheck whether backend failures started before or during the traffic surgeAsk both providers to compare timestamps. Reduce traffic pressure and recover the affected backend as separate actions.
Only one country, route or service failsCheck where errors are concentrated and whether the symptom is DNS, TLS, a route or an account ruleNarrow the change to the affected dependency or rule.

Cloudflare's error reference explains why collecting the exact code helps. A 522 means the edge connection to the origin timed out. A 524 can mean the edge connected but the origin took too long to return an HTTP response. The Cloudflare reference also describes a write-timeout case. Both narrow the investigation. Correlate them with application logs to decide the next action.

The Cloudflare report for the third quarter of 2026 records 18.2 million network-layer DDoS attacks mitigated across its own network. Use that as context for rehearsing your response. It has no bearing on the cause of an individual outage without your own evidence.

Run a two-case drill without creating a flood

In a private test environment, open a test page that returns 503 after an intentional origin fault. Record the normal synthetic traffic count and the failing origin check. Now restore the origin and use a second, clearly labeled test page to model an edge rejection for the same public route. Keep the origin health check at 200 and record the corresponding edge event. A simulated 429 can represent a limit in the exercise. A real 429 can also come from routine rate limiting, so tie it to the actual rule or alert before deciding why it happened.

When restoring a real service, check both public and dynamic paths from two networks, confirm the error trend is returning to its normal range, and verify that legitimate users, monitoring and integrations can still reach what they need. After the incident, add these checks and the provider contacts to the site's runbook. Set up alerts for application errors and for unusual traffic or mitigation activity.

When to compare hosting protection

If you run WordPress and want edge protection managed with your hosting, Kinsta documents a Cloudflare integration with a managed web application firewall and DDoS protection. Compare how your current host handles similar incidents and what it can share about the origin. Our Kinsta hosting guide explains the hosting fit and where staging and backups enter the decision. If users are sent to the wrong website instead of seeing timeouts, follow the separate domain and DNS recovery guide.

Tell edge and origin apart from the command line

During an outage, these two requests show which layer answers. The first goes through the CDN. The second asks the origin directly with --resolve, which pins the hostname to the origin IP your host gives you. Run it only from a network the origin allows, and keep that IP private.

curl -sI https://www.example.com/ | grep -iE "^HTTP|^server|^cf-ray"
curl -sI --resolve www.example.com:443:203.0.113.10 https://www.example.com/

If the first returns 522 or 524 and the second times out or returns 5xx, look at the origin first. If the origin answers 200 while the edge returns 429 or a challenge, check the CDN's security events for the rule that fired. A 429 on its own does not identify an attack. Your access and error logs show which requests reached the origin in the same minutes.

See Kinsta plans