KNOWNHOST WIKI

User Tools

Site Tools


developmental:the-ultimate-cloudflare-guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developmental:the-ultimate-cloudflare-guide [2020/05/13 13:32]
Karson N.
developmental:the-ultimate-cloudflare-guide [2020/05/26 15:25] (current)
Karson N.
Line 39: Line 39:
 1) Create a free account at Cloudflare.com by clicking ‘Sign Up.’ You can use the following URL to go directly to the signup: 1) Create a free account at Cloudflare.com by clicking ‘Sign Up.’ You can use the following URL to go directly to the signup:
  
-https://​www.cloudflare.com/​a/​sign-up+((https://​www.cloudflare.com/​a/​sign-up)) 
 +[[https://​www.cloudflare.com/​a/​sign-up|Sign Up for Cloudflare here]]
  
 {{:​developmental:​cloudflare1.png?​nolink&​800|}} {{:​developmental:​cloudflare1.png?​nolink&​800|}}
Line 125: Line 126:
 A firewall will typically have a connection limit that limits simultaneous connections from a single IP. If all traffic for a busy site, or several sites, is coming from a small set of IPs, then it is easy to see how these IPs can exceed this limit and become blocked if these IP’s are not whitelisted,​ Cloudflare may become blocked in your server’s firewall and this could cause downtime for your sites! Thus, it is important to be sure to whitelist Cloudflare IP’s, which can be accomplished using the following lists of IPs: A firewall will typically have a connection limit that limits simultaneous connections from a single IP. If all traffic for a busy site, or several sites, is coming from a small set of IPs, then it is easy to see how these IPs can exceed this limit and become blocked if these IP’s are not whitelisted,​ Cloudflare may become blocked in your server’s firewall and this could cause downtime for your sites! Thus, it is important to be sure to whitelist Cloudflare IP’s, which can be accomplished using the following lists of IPs:
  
-https://​www.cloudflare.com/​ips-v4+((https://​www.cloudflare.com/​ips-v4)) 
 +[[https://​www.cloudflare.com/​ips-v4|Cloudflare IPv4]]
  
-https://​www.cloudflare.com/​ips-v6+((https://​www.cloudflare.com/​ips-v6)) 
 +[[https://​www.cloudflare.com/​ips-v6|Cloudflare IPv6]]
  
 This type of blocking will look like this, but the IPs will all belong to Cloudflare, which will be U.S. IPs rather than Indian IPs,  and the log entry may even display the rDNS of the IP blocked, which will sometimes explicitly state that it belongs to Cloudflare: This type of blocking will look like this, but the IPs will all belong to Cloudflare, which will be U.S. IPs rather than Indian IPs,  and the log entry may even display the rDNS of the IP blocked, which will sometimes explicitly state that it belongs to Cloudflare:
Line 164: Line 167:
 Unfortunately,​ there is no solution for this at this time.  There is a lot of speculation about how this could be resolved, however, none have been agreed upon as viable solutions without their own problems. There have been many posts discussing this, though, and a few are linked below for you to reference that explore the possibilities via cPHulk. ((https://​features.cpanel.net/​topic/​have-option-for-cphulkd-to-action-on-x-forwarded-for)) ((https://​www.aetherweb.co.uk/​solved-cpanels-cphulk-cloudflare-and-x-forwarded-for/​)) ((https://​forums.cpanel.net/​threads/​redirect-all-port-2083-requests-to-the-servers-hostname.606527/​)) Unfortunately,​ there is no solution for this at this time.  There is a lot of speculation about how this could be resolved, however, none have been agreed upon as viable solutions without their own problems. There have been many posts discussing this, though, and a few are linked below for you to reference that explore the possibilities via cPHulk. ((https://​features.cpanel.net/​topic/​have-option-for-cphulkd-to-action-on-x-forwarded-for)) ((https://​www.aetherweb.co.uk/​solved-cpanels-cphulk-cloudflare-and-x-forwarded-for/​)) ((https://​forums.cpanel.net/​threads/​redirect-all-port-2083-requests-to-the-servers-hostname.606527/​))
  
-Page rules and/or Rate Limiting could possibly be used to help circumvent this issue (the first 10,000 requests and blocked requests are free, and the cost is $0.05 per 10,000 legitimate (non-blocked) requests thereafter.),​ but hopefully, Cloudflare and cPanel can come together to find a definite solution for this.((https://​support.cloudflare.com/​hc/​en-us/​articles/​115001635128)) ((https://​blog.cloudflare.com/​introducing-pagerules-fine-grained-feature-co/​))+Page rules and/or Rate Limiting could possibly be used to help circumvent this issue (the first 10,000 requests and blocked requests are free, and the cost is $0.05 per 10,000 legitimate (non-blocked) requests thereafter.),​ but hopefully, Cloudflare and cPanel can come together to find a definite solution for this. 
 +((https://​support.cloudflare.com/​hc/​en-us/​articles/​115001635128)) 
 +[[https://​support.cloudflare.com/​hc/​en-us/​articles/​115001635128|Configuring Cloudflare Rate Limiting]] 
 +((https://​blog.cloudflare.com/​introducing-pagerules-fine-grained-feature-co/​)) 
 +[[https://​blog.cloudflare.com/​introducing-pagerules-fine-grained-feature-co/​|Introducing Page Rules: Fine Grained Control over CloudFlare'​s Features]]
  
   * //Allow the IPs of the services you use to access your website//   * //Allow the IPs of the services you use to access your website//
Line 213: Line 220:
 Cloudflare has some excellent tutorials for Page Rules here Cloudflare has some excellent tutorials for Page Rules here
  
-https://​www.cloudflare.com/​features-page-rules/​+((https://​www.cloudflare.com/​features-page-rules/​)) 
 +[[https://​www.cloudflare.com/​features-page-rules/​|How to Optimize Your Domain With Page Rules]]
  
 You get 3three page rules with the free account and these can be found in the Cloudflare dashboard under the Page Rules tab: You get 3three page rules with the free account and these can be found in the Cloudflare dashboard under the Page Rules tab:
Line 241: Line 249:
   *  //Enable Asynchronous Javascript Loading Rocket Loader ​ (BETA)//   *  //Enable Asynchronous Javascript Loading Rocket Loader ​ (BETA)//
  
-This is also BETA at the time of writing this article, and pricing for this feature is subject to change. Get more information about how this feature improves the load times of your external resources here. ((https://​blog.cloudflare.com/​how-cloudflare-rocket-loader-redefines-the-modern-cdn/​))+This is also BETA at the time of writing this article, and pricing for this feature is subject to change. Get more information about how this feature improves the load times of your external resources here. ((https://​blog.cloudflare.com/​how-cloudflare-rocket-loader-redefines-the-modern-cdn/​))[[https://​blog.cloudflare.com/​how-cloudflare-rocket-loader-redefines-the-modern-cdn/​|How CloudFlare Rocket Loader Redefines the Modern CDN]]
  
 The article states that //Rocket Loader does a bunch of things:// The article states that //Rocket Loader does a bunch of things://
Line 250: Line 258:
       -  //Uses LocalStorage on most browsers and nearly all smartphones to more intelligently store scripts so they aren't refetched unless necessary.//​       -  //Uses LocalStorage on most browsers and nearly all smartphones to more intelligently store scripts so they aren't refetched unless necessary.//​
     ​     ​
-https://​blog.cloudflare.com/​how-cloudflare-rocket-loader-redefines-the-modern-cdn/​+((https://​blog.cloudflare.com/​how-cloudflare-rocket-loader-redefines-the-modern-cdn/​))[[https://​blog.cloudflare.com/​how-cloudflare-rocket-loader-redefines-the-modern-cdn/​|How CloudFlare Rocket Loader Redefines the Modern CDN]]
  
 \\ \\
Line 318: Line 326:
 Cloudflare even offers a cPanel plugin, which would both be awesome for resellers to offer their clients. Here is a link containing more information (namely installation and configuration instructions):​ Cloudflare even offers a cPanel plugin, which would both be awesome for resellers to offer their clients. Here is a link containing more information (namely installation and configuration instructions):​
  
-https://​www.cloudflare.com/​static/​media/​pdf/​cloudflare-cpanel-installation-activation-guide.pdf+((https://​www.cloudflare.com/​static/​media/​pdf/​cloudflare-cpanel-installation-activation-guide.pdf)) 
 +[[https://​www.cloudflare.com/​static/​media/​pdf/​cloudflare-cpanel-installation-activation-guide.pdf|cPanel Installation Guide]]
  
 We’ll explore Cloudflare for Resellers in an upcoming article. ​ We’ll explore Cloudflare for Resellers in an upcoming article. ​
  
-There are also amazing CMS-specific plugins for Cloudflare, too, which let you manage Cloudflare for that domain via your CMS dashboard (How cool is that!).((https://​blog.cloudflare.com/​introducing-the-cloudflare-joomla-extension/​))+There are also amazing CMS-specific plugins for Cloudflare, too, which let you manage Cloudflare for that domain via your CMS dashboard (How cool is that!). 
 + 
 +((https://​blog.cloudflare.com/​introducing-the-cloudflare-joomla-extension/​)) 
 +[[https://​blog.cloudflare.com/​introducing-the-cloudflare-joomla-extension/​|Introducing the CloudFlare Joomla Extension]] 
 ((https://​www.cloudflare.com/​integrations/​magento/​)) ((https://​www.cloudflare.com/​integrations/​magento/​))
 +[[https://​www.cloudflare.com/​integrations/​magento/​|Cloudflare Magento Extension for Performance and Security]]
 +
 ((https://​wordpress.org/​plugins/​cloudflare/​)) ((https://​wordpress.org/​plugins/​cloudflare/​))
 +[[https://​wordpress.org/​plugins/​cloudflare/​|Cloudflare plugins]]
  
 More information on the CMS integrations and many more can be found here: More information on the CMS integrations and many more can be found here:
  
-https://​www.cloudflare.com/​integrations/​+((https://​www.cloudflare.com/​integrations/​)) 
 +[[https://​www.cloudflare.com/​integrations/​|Cloudflare Integration Resources]]
  
 Cloudflare now even offers resolvers as of April 1st (they chose to introduce it on April Fool's Day because of the '​4'​ and the '​1'​ in the date to represent the 4 '​1'​s of the resolver)! ​ Cloudflare now even offers resolvers as of April 1st (they chose to introduce it on April Fool's Day because of the '​4'​ and the '​1'​ in the date to represent the 4 '​1'​s of the resolver)! ​
  
-These are proclaimed to be the fastest resolvers of all (image taken from https://​1.1.1.1/​ ):+These are proclaimed to be the fastest resolvers of all (image taken from [[https://​1.1.1.1/​|https://​1.1.1.1/​]] ​):
  
 {{:​developmental:​fastest_resolvers_cf.png?​nolink&​900|}} {{:​developmental:​fastest_resolvers_cf.png?​nolink&​900|}}
Line 365: Line 382:
 {{:​developmental:​cloudflare_resolvers_set.png?​nolink&​1200|}} {{:​developmental:​cloudflare_resolvers_set.png?​nolink&​1200|}}
  
-Ctrl X  +  y  +  Enter to save the changes when editing with Nano. You should now see a 28% increase in the speed of your resolvers (according to https://​1.1.1.1/​)!+Ctrl X  +  y  +  Enter to save the changes when editing with Nano. You should now see a 28% increase in the speed of your resolvers (according to [[https://​1.1.1.1/​|https://​1.1.1.1/​]])!
  
 Note that you can even configure an IPv6 Resolver if you have IPv6 enabled on your server. ​ Note that you can even configure an IPv6 Resolver if you have IPv6 enabled on your server. ​
developmental/the-ultimate-cloudflare-guide.1589394767.txt.gz · Last modified: 2020/05/13 13:32 by Karson N.