How to setup CloudFlare CDN for WordPress blog

In today’s world website speed is a crucial element to getting good ranks on the web. Website speed also aids for 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 contents to a user based on the geographic location of the user.

During the startup, paid CDN are 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 good CDN service with more than 50 data centres across the globe. You can see the image below showing all the data centres.

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

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 the method 1.

Setup CloudFlare CDN using Cpanel

  1. Log in to your hosting Cpanel
  2. On Cpanel go to ClloudFlare section (refer bellow picture)

    cloudflare cpanel
    CloudFlare Cpanel
  3. Click on CloudFlare (first icon in above picture) you will get a window as shown in the picture below.

    Cpanel mywebsite
    Cpanel my website
  4. Click 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 free plan (you can choose paid if you want)
  8. Click Continue button, it will ask you to change your Nameservers.

To change Nameservers, you have to follow following steps.

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

  3. 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. You site may be down in some regions for some time.
So, this is all about 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.
Amit Malewar
Amit Malewar has been the tutorial writer since 2013. His passion for helping people in all aspects of technology flow through in the expert coverage he provides. In addition to writing for InfoPhilic, Amit loves to read and try new things.


Subscribe to our newsletter

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


  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