WordPress Hosting With Cloudflare: What It Speeds Up, What It Protects and What It Cannot Fix

Cloudflare can make a WordPress site faster and harder to attack, and it is often misunderstood. Here is what it does, why it does not speed up every page by default and where its help stops.

Free, no obligation

Is Cloudflare Good for WordPress, and Does It Host the Site?

Cloudflare is good for WordPress when it is used for what it does well, which is delivering files quickly and filtering bad traffic. It does not host a normal WordPress site, because WordPress needs PHP and a database running on a server, and Cloudflare sits in front of the host that provides them.

Putting Cloudflare in front of a WordPress site changes the route a visitor takes. The domain points at Cloudflare, so every visit arrives there first. Cloudflare filters the traffic, answers what it can from its own stored copies and passes everything else through to your host. To the visitor it is the same site at the same address, and your site stays with whoever hosts it now.

That is different from Cloudflare Pages, which does host websites, but only ones that are already built as plain files. A WordPress site cannot run there without being rebuilt, which is the subject of Cloudflare vs WordPress. The choice between the two is real, and it is not the same as putting Cloudflare in front.

I set up Cloudflare for WordPress sites and I will tell you honestly what it will and will not do for yours. It starts with a free check. The WordPress care and repair hub covers the other problems that travel with a slow or fragile site.

What Does Cloudflare Do for a WordPress Site on a Basic Plan?

A basic Cloudflare set-up does three useful jobs, and each helps a WordPress site in a different way.

A Content Delivery Network

Copies of your images, stylesheets, scripts and fonts are kept across Cloudflare's network and sent from a location near each visitor.

Traffic Filtering

WordPress sites attract constant automated traffic, and Cloudflare filters a large share of it before it reaches your host.

A Secure Connection

Visitors get a secure connection with the padlock in the address bar, and your own host should still have a certificate too.

Less Load on Your Host

Because files are served from Cloudflare, your host does less work, which helps most on a busy or image-heavy site.

A Layer for Firewall Rules

Rules can block countries, patterns or known bad behaviour, giving a place to react quickly if something is being attacked.

Easy to Switch On

The change is made at the domain's DNS, with no change to the WordPress site itself.

A small plant under a clear glass dome in a sunlit window shot close

Why Cloudflare Does Not Speed Up Every WordPress Page by Default

This surprises many owners. Cloudflare stores files by type, and the page itself is not one of the types it stores by default.

Cloudflare's own documentation says that the Cloudflare CDN does not cache HTML or JSON by default. It caches by file extension, so images, stylesheets and scripts are stored, while the page itself, which is HTML, is not. The slowest part of a WordPress visit, which is the server building the page, therefore still happens on your host.

If your host takes two seconds to build a page, the visitor still waits those two seconds, and only the images and files around the page arrive faster. That is why some owners put Cloudflare in front and see little change in how quick the pages feel.

There are two ways around it. A caching plugin on WordPress stores built pages on your host, and Cloudflare's WordPress add-on can have Cloudflare store the pages as well. Both help most when the site is otherwise sound.

Cloudflare APO for WordPress: What It Changes

Automatic Platform Optimization is Cloudflare's add-on for WordPress, and it is the part that does speed up the pages themselves.

Cloudflare describes APO as a way to serve your entire WordPress site from its edge network, so that visitors get consistent, fast performance wherever they are. Instead of only storing files, it stores the pages too, so most visitors never wait for your host to build anything.

To use it you must install the Cloudflare for WordPress plugin, which also clears the stored copy of a page when you update it, so visitors do not see an out-of-date version. It is a paid feature on the free Cloudflare plan and included in higher plans, with prices in US dollars, so the cost in euro moves with the exchange rate.

For a WordPress site that has to stay on WordPress, it is often the most effective single speed improvement available. It does not change what runs on your host, and the cost and the set-up are worth comparing with a rebuild before you decide.

Cloudflare in Front of WordPress or a Site Built for Cloudflare Pages?

There are two ways to use Cloudflare with a business website, and they are very different. The table sets them side by side.

How putting Cloudflare in front of WordPress and moving to a site built for Cloudflare Pages compare
What mattersCloudflare in front of WordPressA site built for Cloudflare Pages
Where the site runsStill on your host, with PHP and a databaseServed as plain files from Cloudflare's network
Plugins and updatesStill there, and still need keeping up to dateNone to keep patched
What it speeds upFiles by default, pages with APO or cachingEvery page, since all of it is prebuilt
Effort to startA change to DNS and a pluginA new site built, with redirects for the old one
Best suited toA WordPress site that needs to stay WordPressA site that mainly needs to be fast, safe and low-maintenance
A covered garden walkway with white posts in soft light and a clear sky beyond

What Cloudflare Cannot Fix on a WordPress Site

Cloudflare helps a great deal at the edge, and it cannot reach the parts of the site that live on the server.

Plugins still need updating, WordPress itself still needs patching and the theme still needs looking after. An update that breaks the site breaks it just the same behind Cloudflare, which is covered in WordPress update broke my site.

The login page and the database are still there too. Cloudflare filters a lot of bad traffic, but a weak password, an abandoned plugin or a hole in a theme can still let someone in, and the hacked site spoke explains how that usually happens. The hosting bill stays as well, because the host still runs the site.

Backups remain your responsibility too. Cloudflare keeps copies of files to serve them quickly, not as a backup of your site, so a broken database or a deleted page needs the backups from your host or a backup plugin.

How Cloudflare Is Put in Front of a WordPress Site, Step by Step

The set-up is short, and the careful part is the domain's DNS, where a mistake can interrupt email.

  1. Record Everything First

    Every existing DNS record, including those for email, is written down before anything changes.

  2. Add the Site to Cloudflare

    The domain is added and the records are checked against the list, with email left exactly as it was.

  3. Point the Domain and Test

    The nameservers are changed, and the site, forms and email are tested straight away.

  4. Add Caching if It Suits

    Page caching or APO is switched on, and the site is tested again, including the pages that change often.

Wide timber barn doors open onto a green field under a pale sky with a timber floor in the foreground

Does It Matter Where My WordPress Host Is if I Use Cloudflare?

Less than it did, for the files Cloudflare stores, and still quite a lot for the page and the dashboard.

Cloudflare serves stored files from a location near the visitor, so for images and scripts the host's location matters less. For the page itself, unless it is cached at the edge, the request still goes to your host, so a host close to your visitors, and quick, still helps.

The dashboard and anything that changes with each visitor, such as a shop basket, always goes to the host, so a good host remains important however Cloudflare is set up. A cheap, overloaded server will still feel slow behind Cloudflare.

The practical answer is to choose a sound host and use Cloudflare as a layer on top, and to measure before and after. If the site is still slow after both, the weight is in the site itself, and the slow site spoke covers it.

WordPress Hosting With Cloudflare: Questions, Answered

Is Cloudflare good for WordPress?

Yes, for delivering files quickly and filtering bad traffic. It does not fix a slow server, heavy plugins or out-of-date software, so it works best on a site that is otherwise sound.

Does Cloudflare host WordPress?

Not a normal WordPress site. Cloudflare sits in front of your host, which still runs PHP and the database. Cloudflare Pages does host sites, but only ones built as plain files.

Why is my WordPress site not faster with Cloudflare?

Because Cloudflare's own documentation says the CDN does not cache HTML or JSON by default. The page is still built on your host, so only the files around it arrive faster.

What is Cloudflare APO?

Automatic Platform Optimization, Cloudflare's WordPress add-on, which serves your entire WordPress site from its edge network. You need the Cloudflare for WordPress plugin to use it.

Does APO cost extra?

It is a paid add-on on the free plan and is included in higher plans, with prices in US dollars. Check Cloudflare's current pricing before deciding.

Will Cloudflare stop my site being hacked?

It filters a lot of bad traffic, but it cannot fix a weak password, an abandoned plugin or an old theme. The <a href="/wordpress/hacked-site">hacked site</a> spoke covers what to do.

Does Cloudflare replace backups?

No. It keeps copies of files to serve them quickly, not as a backup of your site. Use your host's backups or a backup plugin, and test a restore.

Will setting up Cloudflare affect my email?

It can, if the DNS records are not copied across exactly. Every record is listed first, and email is left exactly as it was, then tested afterwards.

Does it matter where my host is?

A little less for cached files and still quite a lot for uncached pages and the dashboard. A sound, quick host remains important.

Should I use Cloudflare in front of WordPress or move to Cloudflare Pages?

In front if the site needs to stay WordPress, and Pages if it mainly needs to be fast and low-maintenance. The <a href="/website-migration/to-cloudflare">migrate your website to Cloudflare</a> page covers the move.

Does Cloudflare make a WordPress site secure?

It adds a layer, and security still depends on keeping everything updated. The <a href="/wordpress/security-updates">security updates</a> spoke covers what to keep patched.

Can Cloudflare fix a slow WordPress site on its own?

Rarely. It helps with delivery, and heavy images, plugins and a slow theme travel with the site. The <a href="/wordpress/slow-site">slow site</a> spoke gives the order to fix things.

Can you set Cloudflare up for my site?

Yes. Send me the address and I will tell you plainly what it would and would not do for your site. The <a href="/cloudflare-vs-wordpress">Cloudflare vs WordPress</a> page compares the two routes.

Sources

Checked on 24 November 2026. Rules and guidance change, so the official pages named below are the place to confirm the current position.

  1. Cloudflare docs: Default cache behavior
  2. Cloudflare docs: Automatic Platform Optimization for WordPress
  3. Cloudflare: Plans

WordPress Care and Repair Built to Keep Your Site Working

Send me your current website address and I will tell you plainly what is working, what is holding it back and whether a fix, a plan or a move is the right call. Free, with a fixed price agreed before any work starts.

Get your free audit A plain-English look at your site, with no obligation. Go now →