PHPMatters Help You Better Hosting Your PHP-based Sites
How to Enable CloudFlare CDN in WordPress for Free

How to Enable CloudFlare CDN in WordPress for Free

CloudFlare CDN is a necessary hosting service used to accelerate your page loading speed, reduce the frequency of website downtime and protect your site away from some malicious visitors. This service provider has four plans that come with different charges and features. Among them, the most basic package is free of charge, allowing you to enjoy the services of fast website performance, broad website safeguard, SSL, detailed statistics about online readers and many more.

In this case, enjoying the free CDN service of CloudFlare is the recommended practice for all the webmasters. In the following, we’d like to introduce some methods about how to enable CloudFlare CDN in WordPress for free.

Method One – Enable from Your Control Panel

If your web host is a reliable one with rich features and peak performance, the CloudFlare CDN service is usually included into the hosting packages for free. In this case, you can enable the service simply through your control panel. Here, we take the most popular cPanel as an example.

After logging into your cPanel, you can target the CloudFlare icon under the area of Software and Services. Then, you are required to enter your valid email address to sign up a CloudFlare account.

CloudFlare Icon

Now, you will be redirected to the activation page. Here, you need to find your target website that you are going to enable the CDN function, and click the Edit button before the site address. After that, you can turn the CloudFlare status from the grey color to the orange color. Note that a confirming message will appear at the top of your screen to indicate the successful activation.

Enable CloudFlare

Now, the CloudFlare CDN is activated, and you can modify the settings, check your website reports and enjoy its benefits instantly. Note that your web host will set up your account and update the DNS on behalf of you automatically.

Method Two – Enable the Service Manually

If your web host does not offer this great hosting feature, you can also enable the CDN service manually. Firstly, you need to go to this page to register a new account. Then, you can get started with CloudFlare CDN via four steps.

  • Step One – Add your website for CloudFlare CDN service. This practice may take you a few minutes for website scanning.
  • Step Two – Activate the CDN function for your main domain. You only need to click the CloudFlare status to make it turn orange.
  • Step Three – Select CloudFlare plan. There are four plans available and you can choose the first free plan.
  • Step Four – Update your name servers. Now, you should navigate to your domain management dashboard and replace your current name servers with the new ones offered by CloudFlare.

Now, you only need to wait up to 24 hours for the change to be processed completely. Note that during the switch of name servers, your site can remain available on the internet without any downtime.

Method Three – Enable with the CloudFlare Plugin

CloudFlare has developed a plugin for WordPress users, with which you can activate its CDN service with much ease.

After downloading this plugin and activate it on your dashboard, you can go the Settings tab of WordPress admin and click the CloudFlare button. From this setting page, you only need to enter your domain name, email address and CloudFlare API key, then can have the CDN service enabled. If you do not know what your API key is, you can click the “Get This” button that redirects you to your CloudFlare account to get the related information.

Configure CloudFlare Plugin

CloudFlare API Key

CloudFlare API Key

In addition, do not forget to turn on the functions of Development Mode and HTTPS Protocol Rewriting. The former one allows you to suspend the edge caching and some mini features in three hours. The latter one allows the rewriting of all your links to start with “//” only, fixing the error of Mixed Content Warning from browsers.