CloudFlare in front of a hosted WordPress blog

·

1 min read

This blog is hosted on WordPress and it would cost me money if I would buy a certificate through WordPress. To add HTTPS to my blog, I route it through the free service CloudFlare. I never found a decent blog post how to do it, so I'll detail what I know in this post.

The process is super easy: log into CloudFlare and begin a scan to add a new site. On the DNS records page, delete the two A records. This will cause a circular reference otherwise. Instead add a CNAME record for your site to lb.wordpress.com. The final step is to choose the free tier so it won't cost you a cent.

The only drawback is that WordPress can't identify the IP address of the visitor anymore. So the stats on the countries can't be determined by WordPress anymore. Those numbers can be found on CloudFlare. Installing the CloudFlare plugin can solve that problem, but on a free blog, installing plugins isn't allowed.

That's it. Enjoy your site with HTTPS.