馃殌 Looking for fast WordPress hosting? Get 20% off Hostinger 路 affiliate link (disclosure)
Guide

What a CDN Is and How to Tell If a Site Uses One

Updated 23 Oct 2026 路 by the DetectWP team

A content delivery network, or CDN, is a set of servers spread across many locations that sits between visitors and your web server, serving copies of your pages and files from whichever location is closest. For a WordPress site it is usually the single cheapest way to make pages load faster for visitors far from the origin server, and increasingly it also provides security features such as a firewall and DDoS protection. This guide explains what a CDN does, how to tell whether a site is using one by reading its response headers and DNS, how to distinguish Cloudflare from the CDNs bundled by hosting companies, and what to watch out for once you turn one on.

The DetectWP scanner reports the CDN it detects for any WordPress site using the same signals described below.

What a CDN does

Without a CDN, every request for your site travels to the one server where WordPress runs. If that server is in Frankfurt, a visitor in Sydney waits for every image, stylesheet and script to cross the world. A CDN places edge servers in many cities and answers from the nearest one. Static files are cached at the edge after the first request, so later visitors in that region never touch the origin. Some CDNs cache full HTML pages too, which is a larger gain but needs careful configuration on a site with logged-in users or a shopping cart.

Modern CDNs also terminate TLS at the edge, compress responses, optimise images, and offer a web application firewall that blocks malicious requests before they reach PHP. Because all traffic passes through the CDN, it can absorb floods that would overwhelm a single server.

There are two ways a CDN can be attached. A full-site proxy such as Cloudflare takes over DNS for the domain and handles every request. An asset CDN leaves the site where it is and only rewrites the URLs of static files to a CDN hostname, so images and scripts come from the edge while HTML still comes from the origin. The detection methods differ for each.

Check the response headers

Each CDN adds its own headers to responses, which makes identification straightforward. Fetch them with curl -I https://example.com/, or open your browser's developer tools, choose the Network tab, reload, and inspect the headers of the first request. Headers to look for:

  • Cloudflare: cf-ray on every response, cf-cache-status (values such as HIT, MISS, DYNAMIC or BYPASS) and server: cloudflare.
  • Amazon CloudFront: a via header mentioning cloudfront.net (CloudFront), plus x-amz-cf-id, x-amz-cf-pop and an x-cache value such as Hit from cloudfront.
  • Fastly: x-served-by with one or more cache- node names, x-cache and often via: 1.1 varnish, since Fastly is built on Varnish.
  • Bunny: server: BunnyCDN-... together with cdn-pullzone, cdn-cache, cdn-requestid and related cdn- headers.
  • KeyCDN: server: keycdn-engine and x-edge-location.
  • Akamai: server: AkamaiGHost on many configurations, or x-akamai-transformed.
  • Sucuri: server: Sucuri/Cloudproxy and x-sucuri-id, from its firewall and CDN service.

A generic x-cache, age or via header on its own tells you that a cache sits in front of the site, but not whose. Combine it with the branded headers above or with DNS before naming a provider. Remember to check a static file as well as the HTML page: an asset CDN will show its headers on /wp-content/uploads/... requests while the page itself comes from the origin with none of them.

Check the DNS and asset URLs

For a full-site proxy, the domain's nameservers and IP address point at the CDN. Nameservers ending in ns.cloudflare.com mean Cloudflare manages the DNS, and the site's IP addresses will belong to Cloudflare rather than to the host. This is why a whois lookup on the IP of a Cloudflare-fronted site returns Cloudflare, which we discuss in our guide to finding a site's host.

Other CDNs are usually attached with a CNAME record. dig example.com CNAME or dig www.example.com may reveal a target such as d1234abcd.cloudfront.net (CloudFront), something under fastly.net, or example.b-cdn.net (Bunny). Hosting companies that bundle a CDN often CNAME the domain to their own edge hostname.

For an asset CDN, look at the page source instead. If images and stylesheets load from a different hostname than the page, such as cdn.example.com or a b-cdn.net address, an asset CDN is in use even if the HTML response carries no CDN headers. WordPress plugins such as WP Rocket, LiteSpeed Cache, W3 Total Cache and CDN Enabler rewrite asset URLs in this way, and Jetpack's Site Accelerator serves images through i0.wp.com and similar hostnames, which is a CDN in all but name.

Cloudflare versus host-bundled CDNs

Cloudflare is by far the most frequently detected CDN in front of WordPress sites, partly because its free plan is generous and partly because many hosts build on it. Kinsta's CDN, for example, is delivered through Cloudflare, and WP Engine's edge security product is built on Cloudflare as well, so a site on either host may show cf-ray headers without the owner ever creating a Cloudflare account. When you see Cloudflare headers together with a host-specific header such as x-kinsta-cache, you are looking at a host-bundled Cloudflare integration rather than a direct Cloudflare customer; see our Kinsta page for how that is reported.

Other hosts run their own networks. SiteGround offers its own CDN to customers, Hostinger includes a CDN with some of its plans, and several managed hosts bundle a CDN from a partner such as Bunny or a cloud provider. These typically identify themselves with their own headers or through the host's edge hostname in DNS. Our Hostinger page describes the headers its platform sets. In each case the benefit to the site owner is the same, but the control panel, cache purging and configuration live with the host rather than with the CDN vendor.

When choosing: a standalone Cloudflare account gives you full control and features that follow you between hosts, but requires moving your DNS to Cloudflare on the free plan. A host-bundled CDN is usually a single toggle with sensible defaults and automatic purging, at the cost of being tied to that host.

Benefits for a WordPress site

  • Faster loading for distant visitors. Static assets are served from a nearby edge, which removes most of the latency for international audiences.
  • Lower load on the origin. Cached requests never reach your server, which matters on shared and small VPS hosting.
  • Traffic spikes and attacks. The edge absorbs sudden bursts, and most CDNs include DDoS mitigation and a firewall that blocks common WordPress exploit patterns before they reach wp-login.php or a vulnerable plugin.
  • Modern protocols and image optimisation. TLS, HTTP/2 or HTTP/3 and on-the-fly image compression at the edge, even if the origin is older.

These benefits are real but not automatic: a misconfigured CDN can serve the wrong content to the wrong person, which brings us to the caveats.

Caveats and common problems

  • Stale content. If the CDN caches HTML, editing a page in WordPress does not necessarily update what visitors see until the cache is purged. Use the CDN's WordPress plugin or your caching plugin's integration so that publishing triggers a purge.
  • Logged-in users and carts. Full-page caching must bypass requests from logged-in users, WooCommerce carts and checkout, and anything personalised. Cloudflare's cf-cache-status: DYNAMIC on HTML is the default precisely because caching HTML blindly breaks sites.
  • Visitor IP addresses. Behind a proxy, WordPress sees the CDN's IP as the visitor's. Comment spam filters, login limiters and analytics then misbehave until the server or a plugin restores the real address from a header such as Cloudflare's CF-Connecting-IP. The Cloudflare documentation on HTTP headers lists the headers it adds.
  • Redirect loops and mixed content. Terminating TLS at the edge while the origin speaks HTTP causes loops unless WordPress knows it is behind a proxy; use the CDN's recommended TLS mode.
  • Origin exposure. If the origin server still answers direct requests on its own IP, attackers who discover that IP can bypass the CDN's protection entirely. Restrict the origin to accept traffic only from the CDN's address ranges.

None of these problems are reasons to avoid a CDN; they are reasons to set one up deliberately and test the site logged in and logged out afterwards.

A quick detection checklist

  1. Run curl -I against the home page and look for cf-ray, via, x-served-by, x-amz-cf-id, cdn-pullzone or a branded server header.
  2. Repeat against an image URL from the page, since asset CDNs only show up there.
  3. Check the nameservers and any CNAME on the domain for a CDN hostname.
  4. Scan the page source for asset hostnames that differ from the site's own.
  5. Look for host-specific headers alongside the CDN headers to tell a bundled CDN from a standalone account.

Or paste the URL into the DetectWP hosting detector, which runs these checks together and reports the CDN, the host and the caching layer it finds. The methodology page lists exactly which headers and DNS patterns map to each provider.

Frequently asked questions

How do I know if a website uses Cloudflare?

Check the response headers for cf-ray and server: cloudflare, and look at whether the nameservers end in ns.cloudflare.com. Either is conclusive; the headers also appear on sites whose host bundles Cloudflare.

Does a CDN host my website?

No. A CDN caches and delivers copies of your site from edge servers, but WordPress still runs on your origin host. The CDN sits in front of that host.

Do I need a CDN for a small local site?

The speed benefit is smaller when your visitors are near your server, but the firewall, DDoS protection and reduced origin load are still useful, and free tiers make it low-risk to try.

Why does my site show Cloudflare headers when I never set up Cloudflare?

Your host most likely bundles Cloudflare into its platform. Kinsta and WP Engine are two examples. Look for a host-specific header alongside cf-ray to confirm.

Can a CDN break my WordPress site?

Misconfigured HTML caching can serve stale or personalised content to the wrong visitor, and proxying can hide real visitor IPs or cause redirect loops. Test logged in and logged out after enabling one and use the CDN's recommended WordPress settings.

Related

Free tools: WordPress plugin detector 路 WordPress theme detector 路 WordPress hosting detector

Does a site use a theme or plugin?

Paste any URL. DetectWP lists the theme, plugins, versions, hosting and known vulnerabilities in seconds.