Table of Contents

A question the folks at WP Rocket are often asked is: “Should I use Cloudflare?”
It’s not at all surprising—WP Rocket offers Cloudflare integration to help the CDN’s users quickly connect their WordPress sites.

If you’ve never used Cloudflare before, you might be wondering if it’s something special due to this add-on and if it’s worth investigating for use on your own site.

Cloudflare is a popular reverse proxy and CDN for WordPress site owners, mostly as it offers a convenient Free plan for personal sites and blogs. This plan provides access to Cloudflare’s global CDN, along with performance and security features, such as high quality video streaming, load balancing, HTTP/2, and DDoS protection.

But should you use Cloudflare?

In this post, I’ll walk you through what you need to consider so you have all the information you need to decide if it’s right for you.

Note: If you aren’t familiar with what a CDN is, I’d encourage you to first read up on how CDNs work.

What is Cloudflare?

What is Cloudflare?

Cloudflare has quickly grown to become one of the world’s largest content delivery networks (CDNs). Launched at the TechCrunch Disrupt Conference in 2008, Cloudflare now provides CDN services to 12 million domains via 155 data centers around the world.

Here are a few interesting facts from Cloudflare’s About page:

  • It serves more web traffic than Twitter, Amazon, Apple, Instagram, Bing, & Wikipedia combined.
  • Any time Cloudflare pushes code, it immediately affects over 200 million web surfers.
  • Every day, more than 10,000 new customers sign-up for Cloudflare.
  • Every week, the average Internet user touches Cloudflare more than 500 times.

The company’s focus is largely on providing performance and security services that work in conjunction to reduce latency for websites, mobile applications, and APIs end-to-end, while protecting against DDoS attacks, malicious bots, and data breaches.

Cloudflare is more than just its Free plan. While the Free plan allows users with small sites to try out Cloudflare, there are Pro, Business, and Enterprise plans for sites that need heavy duty performance and security features, such as a web application firewall (WAF), Railgun web optimization, advanced DDoS support, and more.

Should I Use Cloudflare?

Maybe.

It really depends on your website’s needs and whether Cloudflare has the features you need at price points that suit you.

The question you should be asking yourself first is: Do you need a CDN?

Okay, Do I Need a CDN?

Let’s do a quick refresher on how CDNs work.

When a visitor to your site is geographically located close to your server (i.e. in the same country), there are fewer hopes for your content to travel, ensuring a relatively fast connection for the visitor. But if a visitor is located some distance away from your server (i.e. in another continent), your site’s content has to travel much further, resulting in slow page load times.

CDNs solve this problem by providing a globally distributed network of edge servers that keep a copy of your site’s static content. So when someone visits your site and they are located halfway around the world, for instance, the request is routed to the nearest possible edge server, reducing latency and serving up content quicker.

For site owners who have visitors from all over the world, CDNs can help deliver a faster site experience, especially when you take into account that on average, 80% of a website consists of static resources.

Do you need a CDN? Here are a few questions you should consider:

  • Where are your visitors geographically located?
  • Is the size and complexity of your website growing?
  • Is the amount of traffic to your site too much for my hosting package?
  • Have visitors in other parts of the world complained about the slow speed or your site?
  • Has your site fallen victim to DDoS attacks?

If you answered yes to more than one of those questions, it’s worth considering a CDN.

What Are the Benefits of Using a CDN?

CDNs provide many additional benefits besides just the performance factors.

1. Improved Website Load Times

The performance factors really are the number one reason why you would consider a CDN. CDNs like Cloudflare enabled you to serve up content closer to where your visitors are located using an edge server, providing an easy way to speed up your site while also reducing the latency.

2. Reduced Bandwidth Costs

For many sites, bandwidth consumption costs is a primary expense. Through caching and other optimizations, CDNs can help reduce the amount of data an origin server must provide, in turn reducing hosting costs for site owners.

3. Increased Content Availability and Redundancy

In other words, CDNs can help mitigate unexpected traffic surges, enabling your site to scale when needed. Large amounts of traffic when you least expect it can cause your site to go down. Thanks to the distributed nature of CDNs, they can handle more traffic.

4. Security and DDoS Protection

CDNs can help improve your site’s security by protecting against DDoS attacks, data breaches, and malicious bots. When you consider that the majority of web traffic is served through CDNs, they really are the first line of defense against malicious attacks.

4. SEO

Google has long-considered speed a ranking factor in its algorithms. So the faster your website is, the more likely it will rank well in SERPs. As Google’s Amit Singhal and Matt Cutts highlighted in 2010 when announcing site speed as a ranking factor:

“Faster sites create happy users and we’ve seen in our internal studies that when a site responds slowly, visitors spend less time there.”

Are There Any Drawbacks to Using a CDN?

There’s really only one main drawback to using a CDN: cost.

When deciding whether or not you should invest in a CDN, it’s important to weigh up cost along with other factors, such as:

  • Where your users are located. If they’re mostly local, you might not need a CDN.
  • Your website’s design. If it’s a small site or consists of mostly text, a CDN might be overkill.
  • Scaling your website. Is your business growing? Is your site attracting greater traffic?
  • Your budget. Can you afford a CDN?

Okay, I Need a CDN. What Does Cloudflare Offer?

Cloudflare is a great place to start if you’re new to CDNs and want to see how it all works. The Free plan includes:

  • Unmetered mitigation of DDoS attacks
  • Global CDN, with 155 data centers
  • Shared SSL certificates

Cloudflare 155 data centers

There are plenty more features and I encourage you to check out Cloudflare’s pricing page to compare plans, learn more, and understand which features are available for each plan.

Here’s a rundown of Cloudflare’s features:

  • Content Delivery Network (CDN). With 155 data centers across 75 countries, Cloudflare’s Anycast CDN caches static content on edge servers globally, reducing latency by delivering your content as close as geographically possible to your visitors. The Anycast network also absorbs distributed attack traffic by dispersing it geographically.
  • Website Optimizations. Cloudflare offers a suite of performance optimizations, including HTTP/2, TLS 1.3, file minification, and aggressive GZIP.
  • DNS. With 37% market share of managed DNS domains, Cloudflare runs the largest and fastest DNS network in the world. With an average of a few milliseconds query speed, it also has the fastest performance of any managed DNS provider.
  • Load Balancing. Cloudflare’s provides load balancing, geo-steering to route traffic to the closest geolocation region, and health checks with fast failover to rapidly route visitors away from failures.
  • Argo Smart Routing. Cloudflare’s routing technology reduces internet latency on average by 35% and connection errors by 27% by routing visitors through the least congested and most reliable paths on Cloudflare’s network.
  • Railgun. Railgun compresses previously uncacheable site assets up to 99.6% by leveraging techniques similar to those used in the compression of high quality video. The result is an average 200% additional increase in performance.
  • Stream. Cloudflare’s Stream technology integrates video storage, encoding, and a customizable player with the company’s global CDN to deliver video faster and more reliably.
  • DNSSEC. If DNS is the phone book of the internet, DNSSEC is the web’s unspoofable called ID. It guarantees your site’s traffic will be safely routed to the correct servers so that your visitors aren’t intercepted by a hidden “man-in-the-middle” attacker.
  • Web Application Firewall (WAF). Cloudflare’s enterprise-grade WAF detects and blocks common application layer vulnerabilities, using the OWASP top 10, and application-specific and custom rulesets.
  • SSL/TLS. Cloudflare provides SSL protection for customers for free.

These are Cloudflare’s primary performance and security features. I’d encourage you to check out the Cloudflare site to learn more about they offer and decide if it’s right for you.

Are There Other CDN Options?

Yes.

WP Rocket got you covered with a detailed guide to the best CDN services for WordPress. It covers eight different CDNs, including Cloudflare, and provides a rundown of features and pricing.

Since not a lot has really changed recently, do check out this post to learn more about the different CDN options available for WordPress sites of all shapes and sizes. The post covers:

  • Cloudflare
  • Amazon CloudFront
  • MaxCDN/StackPath
  • KeyCDN
  • Imperva Incapsula
  • CDN77
  • Akamai
  • Google Cloud CDN

Wrapping Up

Should you use Cloudflare? As we explored in this post, there’s a lot to consider first before deciding whether Cloudflare is right for you and your site. The most important consideration is where your site visitors are located and whether using a CDN would help you deliver your content to them faster. Other things you’ll want to consider are price and features.

Cloudflare is a hugely popular CDN, but by no means is the only option available to you. So I’d encourage you to do your research, learn more about Cloudflare and what it offers, compare it with other CDNs, and then go with the CDN that best fits your site’s needs.


Comments (11)

CloudFlare is the best free CDN and I use it everywhere but if we use it's free cdn that means every visit first check by CloudFlare algorithm and then sent to our sites, sometimes it's make TTFB little bit slower. This is the disadvantage according to me but it's necessary because its keep our site safe.

One of the main advantages of CloudFlare is the fact it acts as a reverse proxy. you could in theory then share static versions of your website (cached as HTML) served from their CDN. This can reduce load times to 50 milliseconds from a variety of locations not just where your main server is located.

Static HTML caching in WordPress is very easy to setup in the form of page rules in Cloudflare.
https://support.cloudflare.com/hc/en-us/articles/236166048-Caching-Static-HTML-with-WordPress-WooCommerce

Hello.

I have a question about CloundFlare with Wp-Rocket. According to the information in CloundFlare, with the official CloundFlare plugin you can activate the HTTP/2 Server Push in WordPress as indicated in the article https://support.cloudflare.com/hc/en-us/articles/115002816808-How-do-I-enable-HTTP-2-Server-Push-in-WordPress

The problem is, when I add the official CloundFlare plugin the information "both plugins are not compatible" appears.

What now? Options...
1.-. Deactivate the CloundFlare section of Wp-Rocket and I can work with the CloundFlare plugin.
2.- Do I combine both and pray that nothing happens?
3.- There is a way for Wp-Rocket to work with HTTP/2 Server Push

You can tell me how to proceed... Thank you

opencart and cloudflare doesnt work well, its showing other peoples profile due to cached pages which is causing data privacyissyes

Thank you for the article. Regarding this point of where your visitors are geographically located, 15% of my total traffic is from abroad, is this number too low to be worth the implementing of a CDN?

I can't see anywhere that allows me to use Cloudflare CDN as a bucket to upload a lot of photos and link to them. There seems to be two uses for CDN these days.
S3 has buckets, and I can just upload files to it. Where is that for this CDN?

I've used Cloudflare on and off over the last 6 months and every time I implement it Google Adsense income plummets. On top of that, my site is far slower with Cloudflare than without it (an A report on GTMetrix without Cloudflare and a C report with it implemented). I have finally given up on the service. It has not only slowed down my site by a ridiculous amount (and yes, I used it with all the recommended settings, even went through settings with a Cloudflare techie) it has also caused me to lose at least 20% of my income. Nowadays, there are too many things we 'should' use with WordPress when, in reality, WordPress by itself does the job and is fast. I have also now removed all but 2 plugins. The result? The fastest site I've ever had (loads in less than .5 seconds, and income from AdSense up almost 30%.

I am also agree with @Helele.
Whenever I use CloudFlare my earning drop dramatically, I guess they replace the Adsense Publisher ID with their own and steal the earning in the name of Free CDN.

I am confused. I do agree they are the fastest CDN on earth but why doesn't earning increases then.

Regards,
Emily, UK

Latest Articles of Page speed and caching
Subscribe to Our Newsletter

Stay in the loop with the latest WordPress and web performance updates.
Straight to your inbox every two weeks.

Get a Faster Website
in a Few Clicks

Setup Takes 3 Minutes Flat
Get WP Rocket Now