How to Use a Custom Domain for Blogspot via CloudFlare

How to Use a Custom Domain for Blogspot via CloudFlare

Want to use a custom domain for Blogspot via CloudFlare? If that is what you are looking for, or perhaps you have been trying but it is not working, then you need to follow the tutorial on this page to the end.

Before starting, make sure you have

  • Connected your domain to CloudFlare
  • A blog on Blogspot or blogger.com that is not yet using a custom domain

If you have completed both prerequisites, let us go straight to the steps for using a custom domain for Blogspot via CloudFlare.

Add a Custom Domain to Blogspot

The first step you need to take is to add a custom domain to Blogspot to get the CNAME that you will need to add in CloudFlare later. To do this, you can open the Settings page in Blogspot, then click on Custom domain

Enter the domain name you want to use and make sure to add www at the beginning, for example www.wpgan.biz.id, then click the save button.

If your domain has not been verified, you will get an error message like the image above, or something similar to this

We have not been able to verify your authority to this domain. On your domain registrar's website, locate your Domain Name System (DNS) settings and enter the following two CNAMEs: (Name: www, Destination: ghs.google.com) and (Name: eqvtor3ofpo2, Destination: gv-oioebzt5hsfgrr.dv.googlehosted.com). See https://support.google.com/blogger/answer/1233387 for detailed instructions. Support page link

That is the CNAME record you need to add in CloudFlare. From that error message, you will get the following 2 CNAME records (each domain will get different records, do not use the records in the table below because it will not work)

Record TypeHostAddress/Name
CNAMEwwwghs.google.com
CNAMEeqvtor3ofpo2gv-oioebzt5hsfgrr.dv.googlehosted.com

Make sure you save both records and continue to the next step.

Add CNAME to CloudFlare

Now you can log in to CloudFlare to add the CNAME you obtained from Blogspot. Once logged in, just select your domain name in CloudFlare to open its management page.

From the domain management page, you can open the DNS menu to start adding the CNAME record you obtained earlier. Just click the Add Record button if you are already on the DNS management page

When adding DNS, make sure the Proxy status option is disabled so that it turns gray. If you do not disable the Proxy, your domain will never be able to be saved in Blogspot.

After adding the 2 previous CNAMEs, also add the following A Record so that your blog website can be accessed with or without www

Record TypeHostAddress/Name
A@216.239.32.21
A@216.239.34.21
A@216.239.36.21
A@216.239.38.21

When all records have been added, the result will look something like this

Check DNS Propagation

Before you save the domain in Blogspot, you can first check the propagation using online tools, for example from propagasi.web.id, and check its propagation status. If the propagation has been read, you will get the Address/Name information that was read, as well as a checkmark.

If the propagation result, especially from the Google server, has been successful, then you can continue to the next step.

Save Domain in Blogspot

Back to the Blogspot settings page, you can repeat the first step earlier, which is adding a custom domain to Blogspot. Because you have now added verification, the saving will be successful and the result will look like this

Once saved, also make sure to enable Redirect domain so that when your website is accessed without www, it will automatically be redirected to www.

Easy, right? But this is not finished yet, because if you only go up to this step, then when the blog link is shared and clicked from social media (usually mostly through WhatsApp), your website will get an error message ERR_CONNECTION_CLOSED. The solution is that you need to add SSL to your blog.

Adding SSL to Blogspot

To add SSL, you can open the Theme > click the arrow icon next to customize > Edit HTML

When you are on the edit HTML page, look for text that uses http://, then change all of them to https:// and save the changes

Some links might return to http:// after being saved (for example http://www.google.com/2005), but just ignore it and you can return to the Settings page and in the HTTPS availability section, change the toggle to green or enabled (if it was already active, you can disable it first and then enable it again).

If all http have been successfully changed to https, then when you reload the settings page after enabling the toggle, you will get the message Status: Pending – HTTPS Availability is being processed. Check back later. As the message says, you just have to wait for the SSL issuance. Once issued, the HTTPS availability status will change to Available and your blog is ready to be accessed using a custom domain.

Written by

Muhammad Khoirun Nasikin

I enjoy tinkering with WordPress, hosting, VPS, web development, and various small experiments related to websites. I have over 3 years of experience in the web hosting industry.

COMMENTS

Loading...