
{"id":756,"date":"2011-11-01T18:16:06","date_gmt":"2011-11-01T18:16:06","guid":{"rendered":"http:\/\/www.nunoprospero.com\/blog\/?p=756"},"modified":"2018-04-20T23:16:08","modified_gmt":"2018-04-20T22:16:08","slug":"cloudflare-review","status":"publish","type":"post","link":"https:\/\/www.nunoprospero.com\/blog\/2011\/11\/cloudflare-review\/","title":{"rendered":"Cloudflare review"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-757\" title=\"CloudFlare-logo\" src=\"http:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/CloudFlare-logo-300x125.png\" alt=\"\" width=\"300\" height=\"125\" srcset=\"https:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/CloudFlare-logo-300x125.png 300w, https:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/CloudFlare-logo.png 600w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><a href=\"http:\/\/www.cloudflare.com\" target=\"_blank\" rel=\"noopener\">Cloudflare<\/a> is a content delivery network (CDN) which aims to enhance website performance and speed and providing security. It became famous for hosting the\u00a0<a href=\"http:\/\/en.wikipedia.org\/wiki\/LulzSec\" target=\"_blank\" rel=\"noopener\">LulzSec<\/a> services, the hacker group that attacked Sony network.<\/p>\n<p>My main interest in a CDN solution is caching resources, since I was having too much accesses to the database to retrieve static data chunks and images, for some sites I manage.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/cloudflare-diagram.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-763\" title=\"cloudflare diagram\" src=\"http:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/cloudflare-diagram.jpg\" alt=\"\" width=\"599\" height=\"239\" srcset=\"https:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/cloudflare-diagram.jpg 950w, https:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/cloudflare-diagram-300x120.jpg 300w\" sizes=\"(max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>I&#8217;ve been testing Cloudflare for the last 3 months, using the standard free plan for dealing with traffic from\/to a Hostmonster server. The setup is easy if you are keen on managing DNS entries, but the changes are not\u00a0immediate\u00a0so I recommend setting up in a low balance period, if possible, to avoid losing traffic. After the initial setup, Cloudflare has a lot of web management tools with &#8220;one click installation&#8221; so it&#8217;s a great opportunity to try tools for free &#8211; for instances, <a href=\"http:\/\/www.pingdom.com\" target=\"_blank\" rel=\"noopener\">Pingdom<\/a>. Cloudflare allows the user to turn Cloudflare service on\/off in realtime, so it&#8217;s real useful to use the &#8220;Development mode&#8221; when you want to force the Cloudflare to request the resource instead of sending the cached version. Its also possible to reset manually the Cloudflare cache.<\/p>\n<p>Results:<\/p>\n<p><a href=\"http:\/\/www.pingdom.com\" target=\"_blank\" rel=\"noopener\">Pingdom<\/a> &#8211; Uptime: in 90 days, only one downtime max 5 minutes.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-758\" title=\"pingdom_ping\" src=\"http:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/pingdom_ping.png\" alt=\"\" width=\"635\" height=\"453\" srcset=\"https:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/pingdom_ping.png 635w, https:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/pingdom_ping-300x214.png 300w\" sizes=\"(max-width: 635px) 100vw, 635px\" \/><\/p>\n<p>Pingdom &#8211; Response time: 19 ms is quite good. The pike in the graph refers to a development period, I guess. However, I&#8217;m not aware of such an\u00a0interruption.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-759\" title=\"pingdom_responsetime\" src=\"http:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/pingdom_responsetime.png\" alt=\"\" width=\"633\" height=\"401\" srcset=\"https:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/pingdom_responsetime.png 633w, https:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/pingdom_responsetime-300x190.png 300w\" sizes=\"(max-width: 633px) 100vw, 633px\" \/><\/p>\n<p><a href=\"http:\/\/www.google.com\/webmasters\/tools\/\" target=\"_blank\" rel=\"noopener\">Webmasters Tools<\/a> &#8211; Site Performance (beta): this is the most strangest information when using Cloudflare, since the site performance has not changed. This beta feature seems to report random data\u00a0regardless the traffic, the server availability, etc.<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-760\" title=\"webmasters\" src=\"http:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/webmasters.png\" alt=\"\" width=\"619\" height=\"135\" srcset=\"https:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/webmasters.png 774w, https:\/\/www.nunoprospero.com\/blog\/wp-content\/uploads\/2011\/10\/webmasters-300x65.png 300w\" sizes=\"(max-width: 619px) 100vw, 619px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Cloudflare reporting:<\/p>\n<ul>\n<li>50,9% requests are saved by Cloudflare<\/li>\n<li>58% saved bandwith<\/li>\n<li>CF Analytic stats (October): 1,6% requests were considered treats; 4,1% requests were from web bots<\/li>\n<\/ul>\n<p><a href=\"http:\/\/www.adsense.com\" target=\"_blank\" rel=\"noopener\">Adsense<\/a>: no problems were identified that could be correlated to CF. Ok, to be honest, the average CPC has been slowly falling this year (some cents) however is due to the economical context (at least for Portuguese advertisers&#8230;) so the Adsense behavior doesn&#8217;t seem to be affected by Cloudflare.<\/p>\n<p>Drawbacks:<\/p>\n<ul>\n<li>Only allows one CF account per domain. This means that all subdomains will be aggregated in one account.<\/li>\n<li>Some plugins have issues &#8211; e.g. Google Analytics. CF allows the user to define a default GA profile. In each request, CF checks if the GA tags are well placed &#8211; if the tracking codes are missing, CF injects the GA code with the default profile. However, for two times, CF has injected the default code in *all pages* in several subdomains, mixing up my GA account.<\/li>\n<li>It&#8217;s not an issue, but a feature, the user must reconfigure all the current connections to the web server and replace the domain name by something like direct.&lt;servername&gt; to access the server directly without passing through CF. Some old scripts will not function until you edit them&#8230;<\/li>\n<li>Error messages &#8211; in some cases, the site users will be confronted with CF messages that can be very confusing for them &#8211; &#8220;The site is offline&#8221;, &#8220;Unavailable&#8221;, captcha, etc. I still haven&#8217;t understand when each one appears and if I can change the behavior.<\/li>\n<li>Harder to diagnose DNS \/ hosting \/ site problems<\/li>\n<\/ul>\n<p>Conclusion:<\/p>\n<p>Despite all these drawbacks, mostly common to all CDNs, <a href=\"http:\/\/www.cloudflare.com\" target=\"_blank\" rel=\"noopener\">Cloudflare<\/a> is a perfect choice for mid sized websites. It&#8217;s a free solution with lots of features available (the paid version has more analytics and 3rd party webapps).<\/p>\n<p>The only price you really pay in these platforms is giving the CDN the knowledge about your site &#8211; since they intercept your traffic, they have even more information than Google Analytics, for instances.<\/p>\n<p>I&#8217;ve also signed-up for the <a href=\"http:\/\/code.google.com\/speed\/pss\/index.html\" target=\"_blank\" rel=\"noopener\">Google Page Speed Service<\/a>, the Google CDN still in beta (or alpha).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cloudflare is a content delivery network (CDN) which aims to enhance website performance and speed and providing security. It became famous for hosting the\u00a0LulzSec services, the hacker group that attacked Sony network. My main interest in a CDN solution is caching resources, since I was having too much accesses to the database to retrieve static [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":757,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/www.nunoprospero.com\/blog\/wp-json\/wp\/v2\/posts\/756"}],"collection":[{"href":"https:\/\/www.nunoprospero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nunoprospero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nunoprospero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nunoprospero.com\/blog\/wp-json\/wp\/v2\/comments?post=756"}],"version-history":[{"count":0,"href":"https:\/\/www.nunoprospero.com\/blog\/wp-json\/wp\/v2\/posts\/756\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.nunoprospero.com\/blog\/wp-json\/wp\/v2\/media\/757"}],"wp:attachment":[{"href":"https:\/\/www.nunoprospero.com\/blog\/wp-json\/wp\/v2\/media?parent=756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nunoprospero.com\/blog\/wp-json\/wp\/v2\/categories?post=756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nunoprospero.com\/blog\/wp-json\/wp\/v2\/tags?post=756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}