How to setup Cloudflare on your site

  • SSL — if your site doesn’t already have an SSL certificate, Cloudflare can help you use HTTPS on your site to get the green padlock in visitors’ browsers
  • DNS — Cloudflare is one of the fastest DNS providers, which can speed up your site’s time to first byte (TTFB)
  • DDoS protection — Cloudflare can help you protect against distributed denial of service (DDoS) attacks. It can also help you just generally filter out malicious traffic
  • Other performance benefits — Cloudflare can help you minify your code, enable Brotli compression, and implement other performance best practices

1. Cloudflare setup

For my example, I’ll use a WordPress blog, which is already working with my custom domain name: example-blog.ml. You can follow the exact same steps with your own domain.

2. Waiting!

After the setup is finished, there is one last step: waiting. DNS is a complex matter and there are lots of cache levels, so be patient. You probably need to wait only a few minutes, but in some cases, it can be several hours.

  • If you see a 404 Not found error, a ERR_SSL_PROTOCOL_ERROR, or any other result, wait a little bit more. DNS propagation can take up to 24 hours.
  • If you see a ERR_TOO_MANY_REDIRECTS, you just need to change a setting in your Cloudflare dashboard. Follow this short guide to fix it.

3. Next steps

Now that Cloudflare runs on your site, you can add a login form on all pages you want to protect using Octauthent.

  1. Create a new site, choose one or multiple user/password combos
  2. Go the install tab and follow the instructions

--

--

Password protection made easy

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store