How to setup CloudFlare CDN for WordPress blog

Join InfoPhilic Community!

Let's build a community to help & encourage each other to grow!

In today’s world website speed is a crucial element to getting good ranks on the web. Website speed also aids in indexing your site fast in the various search engines. Fast indexing will result in more organic visitors.

There are lots of factors that can boost up speed for your WordPress blog. Among all of them, CDN is one of the factors that may help you to speed up your WordPress blog.

What is CDN?

CDN is an abbreviation for the Content delivery network. It is a system of distributed servers that deliver your web content to a user based on the geographic location of the user.

During the startup, paid CDN is not affordable for all users. So here in this tutorial, I’ll tell you how to setup Cloudflare for your WordPress blog.

If you have a self-hosted WordPress blog, Cloudflare is the best option as a free CDN. Cloudflare is a good CDN service with more than 50 data centers across the globe. You can see the image below showing all the data centers.

Image showing CloudFlare's data centers source
Image showing CloudFlare’s data centers

There are two ways to Setup free Cloudflare CDN on your WordPress blog.

  1. Using hosting Cpanel
  2. Manually from the CloudFlare’s official website.

So, let’s start with method 1.

Setup Cloudflare CDN using Cpanel

  1. Log in to your hosting Cpanel
  2. On Cpanel go to Cloudflare section (refer below picture)
cloudflare cpanel
Cloudflare Cpanel

Click on Cloudflare (first icon in the above picture) you will get a window as shown in the picture below.

Cpanel mywebsite
Cpanel my website

Click the cloud option to activate Cloudflare on your site. Done!!

Activate using Official website

  1. Go to Cloudflare CDN  official website.
  2. Sign up a new account if you don’t have any.
  3. Click on Add Site
  4. Enter your site URL and Begin scan.
  5. Once, scanning completed click continue setup
  6. Check if any record left during a scan if so you can add it manually.
  7. Continue, it will ask you to select a CloudFlare Plan, choose a free plan (you can choose paid if you want)
  8. Click the Continue button, it will ask you to change your Nameservers.

To change Nameservers, you have to follow the following steps.

  1. Log into your hosting Cpanel
  2. Under the Domain section,>> Advanced Zone Editor

After that select your domain and change nameservers to the nameservers that are provided by Cloudflare during Setup. Changing Nameserver will take some time to propagate all over the internet. Your site may be down in some regions for some time.

So, this is all about the Cloudflare setup. You can use a cache plugin to add more speed to your WordPress blog. W3 Total Cache plugin has a special integration with Cloudflare.

Subscribe to our newsletter

To be updated with all the latest news, offers and special announcements.

Comment Policy: Your words are your own, so be nice and helpful if you can. Please, only use your real name and limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.


  1. Can i use w3 total cache or wp fastest cache in newspaper theme?? Because i think super cache don’t do that well for my site.

    • Yes Subodh, you can use either W3 Total Cache or WP Fastest Cache plugin with a Newspaper theme. Just remember you should not enable minify option on both CloudFlare and plugin. That’s it.

  2. Hi, how much time could be down the domain when you have done the change of DNS of your hosting to cloudflare? Thanks

    • Mostly there is no downtime during DNS propagation. I recommend not to use Flexible SSL on the site during DNS Propagation as Certificate takes some time to initialize and during this period site may so SSL error.


Please enter your comment!
Please enter your name here


Start WordPress Blog: Ultimate Guide For Beginners

Here is our step by step guide for beginners to start a WordPress blog.

Top 6 Best WordPress Theme Frameworks

There are many websites themes which are created by using a framework. Likewise, WordPress Theme frameworks also becoming so popular. The framework allows you...

The Most Essential WordPress Plugins

Here, I have listed some excellent plugins which will surely add more features and new functionality to your WordPress blog.

Tips to Speed Up WordPress Performance

Here, I am sharing some tips to speed up WordPress performance. All you need to modify .htaccess file on your server and add some plugins.

The Ultimate Guide to Harden WordPress Security

Learn how to improve WordPress security. Here are some basic security concepts that will help you to harden WordPress security.

How to Setup CloudFlare Free SSL for WordPress Blog

Google has announced that they will count HTTPS as a ranking factor which means if you using HTTPS you will get a higher position...



SEOPressor plugin gives you maximum SEO clarity on your WordPress sites with features designed for controlling WordPress SEO with ease.


Get almost 100% PageSpeed on Newspaper theme

The newspaper theme is the most popular premium theme for a self-hosted WordPress blog. The theme is developed by team tagDiv. You...

How to Remove jQuery Migrate in WordPress?

jQuery Migrate greatly simplifies the process of moving older jQuery code to a higher jQuery version by identifying deprecated features. It then restores deprecated...

Tips to Speed Up WordPress Performance

Here, I am sharing some tips to speed up WordPress performance. All you need to modify .htaccess file on your server and add some plugins.

How to Properly Delete a WordPress Post or Page?

You sometimes want to delete a page from your site for many reasons. When you taking a step forward, you are going to remove...

How to create News Sitemap for WordPress site?

Learn how to create special news sitemap for your WordPress blog/ website using Yoast News SEO plugin and Jetpack plugin.

How to Prevent Invalid Activity

Publishers expect that their content should be viewed by legitimate consumers. However, criminal organizations have attacked the digital ad ecosystem with malware and other methods that...