There was a problem loading the comments.

How do I enable the Cloudflare CDN on my domain via cPanel?

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
1) This tutorial assumes that you’re already logged into cPanel.

2) Scroll down to the SOFTWARE section and click on the Cloudflare icon

cPanel > Software > Cloudflare

4e024bd5d27f44e11a1f3093863e293048c0a764e27e275a48d0f8acc013c4ab885415cf29bb515f?t=93f12aedda3584361168e0c57dcd70a6

3) If you don’t have an account with Cloudflare, go ahead and click the Create Your Free Account button.

3e63efea23732ab9c84b1179359501a4c5e831918a56c404fe37fbfe5d89ae6226d3607a623e0ca1?t=5f19a8b01eb57f6024b8ee026d7b5f5b

4) A new window will appear. Type in your email address, set a password then click the Create Account button.

f0df225a68fb364a6f0c3c5f52fe6eff22d95bf31fe8d3665ba3f69d56d6df881d5e11bcd75f6192?t=42a3839eb89bf1ac0b361a9cf24171f7


5) After entering your email and password, Cloudflare will ask you for your domain name:

74f12bc34f9a8f4204486ddb412b4c99d97dcc4acf5c0a48384cef74298dcd8efeee6cd79d1c6e33?t=573a23be1468e36922a5d261c66ea25b

6) Next, you’ll see a list of the Cloudflare plans. To proceed with the free plan, scroll down and click on Free, then click Continue.
Cloudflare offers a number of different plans for customers, but most users will find their free plan is a great start.

e362a163d40510c98bdff7d956d1951018e1244f46a4113bff49edd81920028464144fe360e6cba5?t=f4fac97f42308772b915a85842c009fb

7) Cloudflare will scan the existing DNS records of your website based on the domain you previously entered.

73123a2605c936d54567e567326ad686bd00b0f44c5a0ac6157c54dd5340ccd3af9b75feaa1f10d0?t=a40fcf159acfd4a71cb623f166b2549a

After your records are scanned, they will be presented to you. You’ll also have the option to add any records which may have missed.


Be sure to review your DNS records carefully as Cloudflare’s scanner is not 100% perfect. It is suggested to compare the records you see here with the ones in your cPanel > DNS > Zone Editor to be certain.

On this page, you can also see which DNS record types will be proxied (or placed behind) by Cloudflare and which ones cannot be proxied.

6765a86bab514d382239a27992ca6012f054560a78ace93f69d1795612a2a9282d9278a72b4a8f17?t=360c13dd46e9229d8c8c4207aacb534a
8) After verifying, click Continue to proceed to the last step.

The last step is to change the DNS nameservers for your domain from your web hosts or domain registrar’s DNS to Cloudflare. You will be assigned two random DNS nameservers from the Cloudflare network. In the example below, you can see mine are matteo and walk.

The nameservers must be changed at your domain registrar, not your web hosting company unless you purchased your domain from your web hosting company.

After you have changed the DNS nameservers with your domain registrar, it may take a few minutes to a few hours to update, but you can click the blue “Done, check nameservers” button to proceed.

c920f173f33f09a6c1712d1d5f81c16fc1e32f32e8845e0e8aa30c3a45ccd28991192dc958023bd4?t=9a905f6981906283c5023b0e37394f9c


Cloudflare Quick Start Guide

Next, you will be prompted to complete the Cloudflare Quick Start Guide.

4b8e1ab9e9cf1a836dbb8a3ae3ea4d24b21fdf3beff6f8185c616d42e619a4161be1298878418ff4?t=a0cd8878b51953a82b47f3cd1f268822

The Cloudflare Quick Start Guide will help you improve security, optimize performance, and get the most from the free plan.

Step one is to improve security by turning on Automatic HTTPS Rewrites. This is for sites that may have mixed content on them, such as a link you inserted where you may have forgotten to link it as https://. You’ll definitely want this feature enabled:

a80c8bc61afb81f1d99394600307ab2afc0cdb25e1c920e5ec01a61413067f95b44f884f444da8a1?t=ae4656340cd999a2402e9222f390d003

Next is the Always Use HTTPS feature. This means if someone types your website in their browser as http://www.yourwebsite.tld, Cloudflare will automatically reroute them to https://www.yourwebsite.tld, the secure version of your site. This feature is toggled off by default. You also want this one enabled, so click the toggle to enable this feature. Then click save.

The next performance feature is to enable Auto Minify for your JavaScript, CSS, and HTML. This is a really handy feature that can speed up the delivery of code on your website by removing unnecessary characters, like whitespaces, comments, and more from the code without changing the functionality of the code. Let’s leave these three features are unchecked by default.

The final performance option you can enable is Brotli Compression. Brotli, not to be confused with Broccoli, is a fairly new web standard that uses data compression techniques to compress data as it is requested by the web browser, and can actually outperform gzip in many situations. Brotli is commonly used to compress fonts as they are delivered to the browser, but it’s also important to know, Brotli is being used a general compression method by Chrome and Firefox, rather than being one just used for fonts. On the fly, dynamic content compression Brotli may have some performance issues. Cloudflare did some testing and published their findings which is an interesting read if you have some time.

Ensure this option is toggled to on, then click the blue Enable button to continue.

On the summary page, you’ll see a recap of the changes you’ve made, just click the blue Finish to complete the quick start guide.

Complete Cloudflare Setup

After you complete the Quick Start Guide, you’ll be directed to your Cloudflare Dashboard. By now, your Domain Registrar has probably updated their DNS records to reflect your changes to CloudFlare, so it’s a great time to re-check your nameservers using the tool at the bottom of the Cloudflare Dashboard:

6aa8725bd4f9a1e56b64ae2aeabb8528e606c2cab5a800b05247c7608556c23c0a68ce795c743e68?t=dec8617bc1e14b42d7ff98c5b8621eeb

After clicking re-check, your request will be placed in the queue for Cloudflare to check in a few hours. It probably won’t take that long though. If you refresh the page a few minutes after clicking “Re-check now”, you’ll likely see this:
Congrats! Your site is now using Cloudflare CDN!

419c2fcd97fcb2e530b161cf827b9f5f634864764603e8aa805f9c143ec8912078235b0c35773c30?t=ee4a63b991fa002aaa85d02ec0f4bda1

Share via
Did you find this article useful?  

Related Articles

© Brixly