If you are not sure what is CDN (Content delivery network). Or not sure why we need CDN for our WordPress website. Here in this article, we will be focusing on Cloudflare free CDN. Before we start implementing a Cloudflare CDN I really recommend you to read What Is A CDN?
If you already know enough about CDN then let’s move and implement free CDN in WordPress.
Cloudflare does not need to be installed as plugins inside your WordPress website. You just need to add your website to Cloudflare and need to change your nameservers and some settings inside the Cloudflare website. Rest everything will be done by Cloudflare.
So let’s begin,
If you already got Cloudflare account that is well and good or you did not get one. Simply click on sign up to Cloudflare and create one. once you created Cloudflare account and logged in into Cloudflare just click on +add site.
After clicking on +add site you will be seeing the same interface as below shown in the screenshot.
This what you will get after adding your domain to Cloudflare. Add your domain name and click on Begin Scan.
Cloudflare will not work until you do not replace your nameservers to Cloudflare one. to do that let’s move and change default nameservers.
Click on advanced and then continue. after clicking on continue you need to choose any of Cloudflare plan.
Cloudflare offers Free, pro website, enterprise website, and business plan. Here we are going to use FREE one which provides enough security to our website.
Just click on the Free website and click on continue. after doing that Cloudflare will provide their own nameservers. what you just need to go ahead and replace them with your existing nameservers.
Login to your hosting provider account and change nameservers out there.
Once you have done changing your existing nameservers with Cloudflare one within a few hours all of your contents from your WordPress website will be served by Cloudflare.
In the main time, your website will not go down. it will be completely accessible. so you do not need to worry about your website.
Once everything is done now let’s configure some of the basic settings of Cloudflare to get best page speed.
As you can see above in the screenshot. onlineliken.com is active on Cloudflare. Just click on the crypto tab for more settings.
Here you will be seeing Cloudflare SSL settings. You need to so careful with this settings. choose FULL if you have got SLL certificate from your hosting company. if you do not have SLL from hosting company then keep it as flexible. We Got SLL for our website so we will go with FULL.
In the same crypto, tab scroll down keeps OFF always use HTTPS and also do not enable HSTS (HTTP Strict Transport Security).
But you may hope for Opportunistic Encryption to get the benefit and improve the performance of HTTP/2 or HTTPS. So if you want you can keep it on.
You can also enable HTTPS Rewrites to resolve the partial HTTPS issues. After crypto tab now let’s move to the firewall tab.
You can set your security level your preference. But let’s keep as medium as default. We personally have set medium for Onlineliken.com.
After that let’s move to the speed tab to change some settings.
keep on Enable Accelerated mobile Links and show AMP logo before links shown above in the screenshot.
And also keep OFF Rocket Loader. now let’s move to Caching tab.
Click on the Caching Tab and scroll down and look for caching level.
Choose No Query String on caching level. scroll down look for always online.
Keep ON Always online in case if your origin server goes down. Cloudflare will serve your recent cached version of your Website. your visitors will be able to access your website.
These are all settings which were needed to get the best page speed from Cloudflare.
Now click on Overview tab to check everything is fine.
As you can see Onlineliken.com is active on Cloudflare and security level is Medium. SLL as Flexible and all other settings.
But you must ensure that your website is active on Cloudflare after replacing nameservers with your existing nameservers.
Cloudflare not only increases the speed of our website but Also it save our website from many threat it stops all threats hitting our website. because all of our traffic goes through Cloudflare server before it reaches to our website Cloudflare scan all of the traffic.
Now you must aware of that how to add Cloudflare free CDN to your website. If you Still have a problem using Cloudflare Please go let us know we will be in touch.