Home > NERDNESS OF > Enhance your speed and security with Cloudflare for Free

Enhance your speed and security with Cloudflare for Free

cloud flare tips to integrate

Cloudflare is a content delivery network (CDN). A CDN is a distributed network of servers that provides several advantages for a web site.

Use Cloudflare to maintain speed and security in our website

Cloudflare is essential for our websites because it gives high performance in loading the site, and the most critical point is that it protects our sites from the different attack such as (DDoS) attacks which can keep our site down for more than a days and this can give the bad impression to the visitors and can stop our daily transactions. Cloudflare helps to improve security by blocking threats before they even reach a site. Cloudflare’s CDN can also provide some protection against Distributed Denial of Service (DDoS) attacks.

Set Cloudflare for Maximum Speed and Protection.

After you log in to the Cloudflare set up all the domain nameservers and do all the setup you should in the beginning what the Cloudflare system responds.

1. Choose a speed on the menu bar

Enhance your speed and security with Cloudflare for Free - NerdHub
Choose Speed option from menu

2. Enable AutoMinify on javascript,CSS,HTML

Enhance your speed and security with Cloudflare for Free - NerdHub

After clicking on the speed button and make sure to enable Javascript, CSS, HTML present on the right side.

It shortened your code removing unnecessary characters in the source code, which helps to load your website faster

Enable Brotli

Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding, and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods.

Enhance your speed and security with Cloudflare for Free - NerdHub

Enable Mobile Accelerated Links

Enhance your speed and security with Cloudflare for Free - NerdHub
scroll down to see enable mobile accelerated link option

Enable Rocket Loader™

It helps to improve the paint time for pages which include JavaScript.

Enhance your speed and security with Cloudflare for Free - NerdHub

Click on Caching from the menu bar

Enhance your speed and security with Cloudflare for Free - NerdHub

Caching Level

Enhance your speed and security with Cloudflare for Free - NerdHub

Browser Cache Expiration

Enhance your speed and security with Cloudflare for Free - NerdHub

Click on the Page rule from the Menu bar

Enhance your speed and security with Cloudflare for Free - NerdHub
  • Go to Page rule.
  • Click on Create Page Rule.
  • Copy the URL of your website and put /* at last just like HTTP://*exapmle.com/*
  • Click on +Add a Setting.
  • Choose pick a setting and
  • Choose Browser Cache TTL
  • Select a day or 12 hours from right option

Click again on + Add Setting

  • Choose pick a setting and
  • Choose Cache Level
  • Select Cache everything/standard from right side option
Enhance your speed and security with Cloudflare for Free - NerdHub
Click on Save and Deploy

Now you have to +Add new page rule for your Dashboard

  • Click new page
  • Copy the URL of your website and put /* at last just like Http://*exapmle.com/wp-admin/* ( your dashboard slug )
  • Click on +Add a Setting.
  • Choose pick a setting and
  • Choose Browser Integrity Check
  • Make it On
Enhance your speed and security with Cloudflare for Free - NerdHub
Cloudflare’s Browser Integrity Check (BIC) is similar to Bad Behavior and looks for common HTTP headers abused most commonly by spammers and denies access to your page.  It will also challenge visitors that do not have a user agent or a non-standard user-agent (also commonly used by abuse bots, crawlers or visitors).
Click again on +Add Setting
  • choose Browser Cache TTL
  • make it 30 minutes.
Enhance your speed and security with Cloudflare for Free - NerdHub
Click again on +Add Setting
  • Choose pick a setting and
  • Choose Always Online
  • Make it Off
Enhance your speed and security with Cloudflare for Free - NerdHub
Click another +Add Setting
  • Choose pick a setting and
  • Choose Security Level
  • Select High to get the high-security level
Enhance your speed and security with Cloudflare for Free - NerdHub
Since its the dashboard login page
Click another +Add Setting
  • Choose pick a setting and
  • Choose Cache Level
  • Select Bypass
Enhance your speed and security with Cloudflare for Free - NerdHub
We don’t wanna store cache in the dashboard login page.
Click another +Add Setting
  • Choose pick a setting and
  • Choose Disable Apps
Enhance your speed and security with Cloudflare for Free - NerdHub
Recommended by Cloudflare
Click another +Add Setting
  • Choose pick a setting and
  • Choose Disable Performances
Enhance your speed and security with Cloudflare for Free - NerdHub
Recommended by CloudFlare
Enhance your speed and security with Cloudflare for Free - NerdHub
Note: All the settings should be listed according to the Pic.
Click on Save and Deploy

Let’s make a Last Page Rule for Preview by Clicking the +Add new page rule button.

  • Copy the URL of your website and put http://*.exapmle.com/*preview=true*
  • Click on +Add a Setting.
  • Choose pick a setting and
  • Add all the settings as we did for the homepage rule.
  • Browser Integrity Check
  • Always Online
  • Security Level
  • Browser Cache TTL
  • Cache Level
  • Disable Apps
  • Disable Performances
Enhance your speed and security with Cloudflare for Free - NerdHub
All settings that you should add
Click on Save & Deploy

If you are using WordPress with W3 TOTAL CACHE than you have to change some settings.

  • Go to the dashboard of your sites.
  • You will see Performance on the left side, hover over it and choose Cloudflare and activate it.
  • After that, you need to specify account credentials. ( sign in with same mail as registered in Cloudflare and you will get your API key token in Cloudflare Dashboard on overview section on the bottom right page )
  • After that copy your Global API key and paste over the credentials.
You may also like
c++ programming
c++ programming

1 Response

  1. Pingback : Pro Tips for Privacy and security concerns: Updated Tips - NerdHub

Leave a Reply