Posted in CDN Server

How to Enable Cloudflare CDN on website for Fast Content Delivery

How to Enable Cloudflare CDN on website for Fast Content Delivery Posted on May 9, 2020Leave a comment
I'm Hari Prasad Chaudhary from Nepal, developer of the finest educational website/app "MeroSpark" and the finest eCommerce system "PasalaY". Here I share the code snippet which I learn during development.

Cloudflare network as expanded its datacenter to more than 200 cities in 95 countries, whenever you get visitor, Cloudflare will deliver your site content like the web page, images, files from the nearest server. It increased the site loading speed by two times.

Benefits of Cloudflare:

  • Fast loading speed
  • Security from DDoS or malicious attack.
  • Free SSL (HTTPS) for your website.
  • Low bandwidth consumption on your main server.
  • Low resource consumption on your main server.
  • It will help to handle high traffic on low resourced server.

How Cloudflare Work ?

Cloudflare works as a proxy to your server. For example, it caches the web pages, images from your server to its delivery network, and later delivers from its own datacenters. Your visitor will not connect directly to your server, which increased the security from the malicious attack.

how cloudflare works

Enable Cloudflare CDN on your website:

Step 1: Signup with Cloudflare and login to your account. After that go “Add Site”.

add website
Add Website Panel

Step 2: After this, you have to choose the Cloudflare plan. If you want premium then choose the Pro or Business plan. The free plan is also good, I’m using my every website with free plan expect some hi-traffic website.

Step 3: When you choose the plan, Cloudflare scans all the existing DNS records of your website. Review it, if there is any DNS record to be added then add there.

DNS scan cloudflare

Here all the existing DNS will be listed, if you want to edit any then edit or add. The Proxy status with orange colors are enabled one and the gray icon is disabled. On disabled DNS records, the content will be delivered directly from your main server.

Last Step: After you proceed further, you will be given name server for your domain. Update your domain name server with given name server address. It will point your domain to Cloudflare DNS nameserver.

cloudflare nameservers

Login to your domain registration panel, and update it with given name server. That’s all now your website content is delivering from Cloudflare data centers. You can further configure the cloud flare setting for better performance.

I'm Hari Prasad Chaudhary from Nepal, developer of the finest educational website/app "MeroSpark" and the finest eCommerce system "PasalaY". Here I share the code snippet which I learn during development.

Leave a Reply

Your email address will not be published. Required fields are marked *