Your site ‘s speed is a crucial element in determining your blog’s ranking in search engine results. A slow site experiences a poor user experience. In this article, we are going to show you how to set up the free CloudFlare CDN in WordPress.
CloudFlare is an effective way to optimize your blog’s performance. It is an optimization technology that uses multiple techniques to allow you to optimize the performance of your site without all the management and administration that would normally be required to accomplish it. CloudFlare reduces your website’s loading time, increases its security and efficiency, and improves its overall performance.
The advantage with CloudFlare is that it is possible to have automated protection, simple to set up against any kind of threat such as DDOS (many unwanted connections on your website which cause it to fall), SPAMMs , a detailed statistics service, a CDN (Content Delivery Network), a powerful cache service, an analysis of HTTP requests upstream of your website and it is CloudFlare which takes care of filtering for you what is good or not. See the image below which simplifies its operation:
MaxCDN and CloudFlare are both two very different services. While MaxCDN is focused on your content through their CDN, CloudFlare is more focused on security and spam control.
The two services use different technologies to serve content across their networks. MaxCDN serves content from your DNS site using pullzones. on the other hand CloudFlare serves content through their own DNS, and you are prompted to change your site’s DNS to point to their servers.
CloudFlare acts as a proxy between you and your site visitors which means you give up a lot of control, while MaxCDN acts as a reverse proxy which means you have all the control.
CloudFlare is best at optimizing your bog speed by protecting your site from malicious users, attackers, and suspicious bots. MaxCDN is better at improving your blog loading speed by serving your static content from their servers located around the world.
How to install CloudFlare in WordPress?
Before implementing CloudFlare to improve your site speed, make sure that the cause of your slow blog is not your web host.
If you think this might be caused by your web host, then maybe you should consider switching to another hosting provider first.
To set up CloudFlare, the first thing you need to do is sign up for it. Visit the CloudFlare site and click on the sign up link.
Provide the required information, then click the “Create an account now” button. In the next step, enter your website URL.
CloudFlare will now analyze your website. It will take about 60 seconds, and during this time the site will show you a video about how CloudFlare works. We recommend watching this video. Once the analysis is complete, you must click on the continue button to proceed with the installation.
After the scan, CloudFlare will show you a list of all DNS records their systems have found. These will also be your subdomains.
DNS records that you want to be passed through CloudFlare will have an orange icon. DNS records that are going to be bypassed by CloudFlare will have a gray icon. You must ensure that your main domain, and your subdomains are active on CloudFlare i.e. have an orange icon.
CloudFlare will also add FTP and SSH subdomains for you. If you used your domain name to connect to FTP or SSH, from now on you will use ftp.yourdomain.com for FTP and ssh.yourdomain.com for SSH.
New subdomains will not go through CloudFlare. If you have subdomains that you want to run through CloudFlare, you can set them up here.
Once you are satisfied with the DNS records, you must click ‘I’ve added all missing records, continue’ ‘ to proceed with the installation.
On the next screen, you will be prompted to choose a plan, performance, and security settings.
If you are using SSL on your site, then it is important to remember that SSL does not work with the FREE CloudFlare service. Leave the other default options and click the Continue button.
In the final step of your setup, CloudFlare will ask you to update your server names. You are now prompted to change your “nameservers” and point them to CloudFlare’s “nameservers”.
Change server names
Important: The server name change may take some time to propagate. It is possible that during this time your site may become inaccessible to some users.
To change your domain’s server names and point them to CloudFlare servers, you need to log in to your hosting account. Most web hosts offer cPanel to manage hosting accounts, we’ll provide instructions on how to change your server names using cPanel.
However, if your host does not have cPanel, then you should ask them for information. Once you are logged into your cPanel dashboard, scroll down to the Domains section and click on domain manager.
On the next screen, you will be prompted to choose the domain name you wish to modify. Once you’ve selected the domain name you want to edit, you’ll see options to edit that domain. You need to click on the “Name Servers” tab.
You need to select “Use Custom NameServers” and type your CloudFlare “nameservers” in the boxes below. After that, you need to go back to the CloudFlare setup page, and click on the “I updated my server names, continue” button to complete the installation.
That’s it, your site is now served and powered by CloudFlare.