1st post
Connecting a subdomain (e.g., blog.yourdomain.com) managed
on Cloudflare to a Blogger blog requires configuring settings in both Blogger
and Cloudflare.
1.Get your CNAME records from Blogger:Prerequisite
step in Blogger Settings.
- Log
in to your Blogger
Dashboard.
- Select
the blog you want to connect.
- In
the left menu, go to Settings and scroll down to the Publishing
section.
- Click
on Custom domain.
- Enter
your full subdomain (e.g., blog.yourdomain.com or shop.yourdomain.com) and
click Save.
- Blogger
will display an error message with two CNAME records that you need
to add to Cloudflare:
- CNAME
1 (Domain verification):
- Name:
blog (or your chosen subdomain prefix)
- Target:
ghs.googlehosted.com
- CNAME
2 (Security verification):
- Name:
A unique security token (e.g., abc123xyz)
- Target:
A Google security domain (e.g., gv-xxx.dv.googlehosted.com)
2.Add DNS records in Cloudflare:Add the two Blogger
records to Cloudflare DNS.
- Log
in to your Cloudflare
Dashboard and select your domain.
- Go
to DNS > Records in the left sidebar.
- Click
Add record:
- Type:
CNAME
- Name:
blog (or your chosen subdomain prefix)
- Target:
ghs.googlehosted.com
- Proxy
status: Set to DNS only (Gray cloud icon).
Important: Keep Proxy turned OFF initially. If
Cloudflare proxies the traffic during setup, Blogger may fail to verify
SSL/ownership.
- Click
Save.
- Click
Add record again for the second verification record:
- Type:
CNAME
- Name:
Paste the unique security token string from Blogger.
- Target:
Paste the Google security target URL (gv-xxx.dv.googlehosted.com).
- Proxy
status: Set to DNS only (Gray cloud).
- Click
Save.
3.Verify and save in Blogger:Finalize custom domain
connection.
- Return
to your Blogger settings page.
- Click
Save on the Custom Domain settings. (If it throws an error
immediately, wait 2–5 minutes for DNS propagation and click Save again).
- Once
saved successfully, enable the following toggles under Settings >
Publishing:
- HTTPS
availability: Turn On.
- HTTPS
redirect: Turn On.
Important Troubleshooting Tips
- DNS
Propagation: SSL certificate generation on Blogger can take anywhere
from 15 minutes to 24 hours after verification.
- Proxy
Status: Once Blogger completely verifies your custom subdomain and
HTTPS is active, you can return to Cloudflare and toggle the Proxy status
back to Proxied (Orange cloud) if you want Cloudflare's CDN
and DDoS protections.
lab.gyani.top
Here is the exact configuration for lab.gyani.top:
1.Enter lab.gyani.top in Blogger:Perform this step in
Blogger Settings.
- Open
Blogger > Settings
> Publishing > Custom domain.
- Enter
lab.gyani.top and click Save.
- Copy
the unique security token (CNAME 2) that appears on your screen:
- Name:
A short string (e.g., 5k3j2x...)
- Target:
A Google security URL (e.g., gv-xxx.dv.googlehosted.com)
2.Add DNS Records in Cloudflare:Add both CNAME
records in Cloudflare.
- Go
to Cloudflare
Dashboard > select gyani.top > DNS > Records.
- Click
Add record for the subdomain:
- Type:
CNAME
- Name:
lab
- Target:
ghs.googlehosted.com
- Proxy
status: DNS only (Gray cloud icon)
- Click
Save.
- Click
Add record for Google security verification:
- Type:
CNAME
- Name:
(Paste the unique token string from Step 1)
- Target:
(Paste the Google security URL from Step 1)
- Proxy
status: DNS only (Gray cloud icon)
- Click
Save.
3.Verify in Blogger and Enable HTTPS:Complete setup
and enable SSL.
- Return
to Blogger and click Save on the Custom Domain popup.
- Under
Settings > Publishing, turn On both HTTPS availability
and HTTPS redirect.
Note: Always keep Cloudflare set to DNS only
(Gray Cloud) during verification. Once
[https://lab.gyani.top](https://lab.gyani.top) loads properly in your browser,
you can safely change the proxy status to Proxied (Orange Cloud) if you
prefer.
Blogger doesn't show the second CNAME security token if it
already verified ownership of your apex domain (gyani.top) previously under the
same Google account.
In this case, you only need to add one CNAME record
in Cloudflare:
DNS Record to Add in Cloudflare
Go to your Cloudflare Dashboard > gyani.top > DNS
> Records > Add record:
|
Field |
Value |
|
Type |
CNAME |
|
Name |
lab |
|
Target |
ghs.googlehosted.com |
|
Proxy status |
DNS only (Gray cloud icon) |
Next Steps
- Save
the record in Cloudflare.
- Go
back to Blogger > Settings > Custom domain.
- Type
lab.gyani.top and click Save. It should accept it immediately
without asking for a second token.
- Turn
on HTTPS availability and HTTPS redirect under Blogger
settings.
Comments
Post a Comment