Cloudflare is a really awesome CDN (content delivery network) that does more than just serve files across their global network. They claim to make your websites faster & safer and I can personally attest to these claims.

Cloudflare works as a reverse-proxy, meaning that instead of people connecting to your website, they are passed through Cloudflare’s network, which in turn forwards the traffic to your server. This puts Cloudflare in a great spot to prevent DDoS (Distributed Denial of Service) attacks and common exploits against web apps (which is available in their Pro versions). Cloudflare also provides free IPv6 support & validated SSL (more on this later).

In addition to preventing attacks, Cloudflare caches static content (CSS, JS, and images), meaning that when someone loads your website these files are sent directly from Cloudflare’s network, cutting down on bandwidth and page load times.  Using page rules you can tune the settings to maximize the effectiveness of Cloudflare’s network. Here’s a screenshot of a file server I have cached fully by Cloudflare.

Cloudflare has saved me 25TBs in bandwidth costs a month, which pays for itself tenfold.

Cloudflare comes with some drawbacks. Some applications will need to be rewritten to use Cloudflare’s IP header, as the requesting IP is Cloudflare’s server, not of your user. Cloudflare SSL also has some security and privacy implications, as Cloudflare by design decrypts all requests before passing them along to your server, and when using anything except the “SSL (Strict)” setting is vulnerable to man in the middle attacks between Cloudflare’s network and your server.

Overall Cloudflare is a really great product and I recommend most of my friends to add their website to it. It is amazing what they provide for the price.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.


1 2 3 4
February 28th, 2018

Concluding the February Challenge

Writing every day for the month of February has been an experience, and has changed my perspective on writing tremendously. […]

February 27th, 2018


Cloudflare stats are very useful, but they expire and can’t be tracked over a long period of time. That’s why […]

February 26th, 2018

Nightly Database Backups to Google Drive

If you have a Google Apps account (a business account with more than 5 users or one provided by your […]

February 25th, 2018

Sublime Text

Sublime Text is a really powerful text editor and includes tons of functionality relevant to programming. I will dive into […]

February 24th, 2018

Great Resources for Student Developers

Being enrolled in a university comes with its pros and cons (a topic itself worthy of many other blog posts), […]

February 23rd, 2018

What is MVC?

MVC is a term thrown around lots of software development projects. Laravel, Zend, CodeIgniter, Ruby on Rails, Django, iOS, and […]

February 22nd, 2018

Getting Started With Phalcon PHP

To get started with Phalcon, I already have my server stack setup with Ubuntu 16.04, Percona MySQL, Nginx, and PHP […]

February 21st, 2018

What is Phalcon?

Phalcon is a modern PHP framework with the typical feature set you’d expect. Database ORM, error handling, MVC architecture, and […]

February 20th, 2018

Setting Up a PHP Development Environment

If you do PHP development, moving to a PHP IDE is extremely beneficial especially when debugging. PHPStorm is a great […]