CDN Detection: Understand and Use the Results
Detect CDN provider from headers
CDNs: the global delivery network behind every fast website
A CDN (Content Delivery Network) is a globally-distributed network of servers that caches copies of a website's content (HTML, CSS, JavaScript, images, video) and serves them to visitors from the geographically nearest location. The CDN sits between the original web server (the "origin") and the visitor's browser. Without a CDN, a visitor in Sydney loading a website hosted in New York has to wait for every byte to cross the Pacific Ocean — a round trip of about 200 ms each way, on a good day. With a CDN, the same visitor downloads from a server in Sydney with a round trip of 5 ms. The math is brutal: a CDN can make the same website feel ten or twenty times faster for visitors in distant regions, with no changes to the underlying application.
You should care because a CDN is essentially a free upgrade for any website with a global audience. The major CDN providers — Cloudflare, Akamai, AWS CloudFront, Fastly, Google Cloud CDN, Microsoft Azure Front Door, bunny.net, and a dozen others — all offer free or very cheap tiers that handle the basics well. A site that does not use a CDN in 2025 is leaving an enormous performance and reliability win on the table for no good reason. The only common excuses are "we serve only one country" (sometimes valid) and "we never set it up" (always wrong).
The five things every CDN detection check looks at:
The `Server` and `Via` headers. Cloudflare sets `Server: cloudflare`, Akamai sets `X-Akamai-Transformed`, Fastly sets `Fastly-IO-Info`, etc.
The `CF-Ray`, `X-Amz-Cf-Id`, and similar trace headers. Each major CDN injects its own request-tracing header.
The IP address that the domain resolves to. Major CDNs publish their IP ranges, so a resolved IP can be matched against a known CDN.
The TLS certificate's issuer and hostnames. CDNs often issue certificates from their own infrastructure, which is a fingerprint.
The presence of specific Cloudflare pages, Fastly debug headers, or Akamai diagnostic endpoints.
Three questions a CDN detection check answers:
Is this website using a CDN at all?
Which CDN provider, so I can understand the performance and security posture at a glance?
For a sales pitch about CDN tooling, are they on a competing provider or no provider at all?
The cost of skipping CDN detection is misreading both the performance posture and the operations culture of a website. The fix is one HTTP HEAD request, one DNS lookup, and a known list of CDN fingerprints.
What EdgeDNS specifically returns. The check collects ALL matching CDNs (not just the first) and reports `topology: 'single' | 'layered'` so multi-CDN deployments — Fastly fronting CloudFront, Cloudflare in front of an origin already behind AWS — show their full edge chain instead of just the outermost layer. Each provider is also tagged with a `type`: pure `cdn` (Cloudflare, Akamai, Fastly), `hosting-platform` (Vercel, Netlify — full platforms with built-in CDN), or `edge-runtime` (Fly.io, Workers, Deno Deploy). The hosting-platform distinction matters: "who hosts this?" and "which CDN?" are different questions, and lumping Vercel under "CDN" misleads anyone trying to understand the actual deployment model.
The CDN Detection endpoint, in plain language
Detect CDN (Content Delivery Network) provider from headers
CDN (Content Delivery Network) identification reveals infrastructure choices, potential DDoS protection levels, and helps understand caching behavior. It's useful for competitive analysis and security assessments.
What is actually happening when you call it
Examines HTTP (HyperText Transfer Protocol) response headers (CF-Ray, X-Amz-Cf-Id, X-Fastly-Request-Id, X-Vercel-Id, etc.) and DNS (Domain Name System) CNAME (Canonical Name record) records (e.g. .cloudfront.net, .akamaiedge.net) to identify CDN (Content Delivery Network) providers. Collects ALL matching providers (not just the first) and derives topology — `single` when one provider is detected, `layered` when ≥2 fire on the same response. Layered chains are ordered by the Via header when present, otherwise by confidence. Detects 19 providers including Cloudflare, CloudFront, Akamai, Fastly, Google Cloud CDN, Azure CDN, Vercel, Netlify, Bunny CDN, Edgio, Alibaba Cloud CDN, and more.
Why this specific tool matters
Choose a task: Infrastructure Analysis. Analyze competitor CDN (Content Delivery Network) choices to inform your own infrastructure decisions.
Run the CDN Detection request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the CDN Detection reference to check the field definitions and supported options.
Available on the free plan. The technical details: `GET /v1/domain/cdn`.
When would I actually use this?
Infrastructure Analysis
Analyze competitor CDN (Content Delivery Network) choices to inform your own infrastructure decisions.
Use the finding: Make informed CDN (Content Delivery Network) selection based on market leader choices.
DDoS Assessment
Identify CDN-based DDoS protection during security assessments.
Use the finding: Understand target's DDoS protection capabilities.
Performance Debugging
Identify CDN (Content Delivery Network) in use to properly interpret cache headers and optimize performance.
Use the finding: Debug caching issues with CDN-specific knowledge.
The easiest way: just ask your AI assistant
Connect the MCP server. Just ask in plain English:
Use domain_cdn with domain=https://example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.
Confirm the tool and inputs in the client before accepting its summary. For CDN Detection, use the response fields below to separate observations from recommendations.
The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.
The technical way: call it from code
This CDN Detection request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the free plan or higher; adapt the target to your task.
curl --request GET 'https://api.edgedns.dev/v1/domain/cdn?domain=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"Prepare inputs for CDN Detection
Start with the inputs below. Keep the same hostname, path, and options when comparing CDN Detection observations. The API reference contains the complete parameter contract, optional settings, and access requirements.
| Field | Type | Required? | What it means | Example |
|---|---|---|---|---|
domain | string | Yes | Domain or full URL (web address) — accepts `example.com` or `HTTPS://example.com/path`. | https://example.com |
Interpret CDN Detection findings
Read these fields alongside the full response from your CDN Detection check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.
| Field | Type | What you'll see in it |
|---|---|---|
domain | string | The queried domain (bare hostname). |
url | string | Full URL (web address) that was fetched, echoing the protocol used in the request. |
detected | boolean | Whether at least one CDN/hosting-platform was detected |
Words you might be wondering about
DNS (Domain Name System) — The internet's address book. When you type a website name, DNS turns it into the actual numeric address computers use to find each other.
CDN (Content Delivery Network) — A worldwide network of servers that store copies of your website close to your visitors so pages load fast.
HTTP (HyperText Transfer Protocol) — The language web browsers and websites use to talk to each other.
CNAME (Canonical Name record) — A DNS entry that says "this name is just an alias for that other name."
Need Programmatic Access?
Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.