Setup Domain For WordPress Click to Deploy on GCP using Cloudflare

by Fred Osei

This tutorial will guide you on how to setup or point your domain name to your WordPress Click to Deploy instance using Cloudflare, Kindly note that you’ll be required to create a Cloudflare account if you don’t have one by default. Read more About Cloudflare Here.


Before we begin:

  1. Make sure you have a domain name if not you can purchase one from Namecheap (recommended) for just $8.88/yr as at the time this post was written or from any other domain name registrar. We recommend Namecheap for a whole lot of reasons, one being for the fact that they provide you with a lifetime WHOIS protection for free which is sold separately by other registrars.
  2. Make sure you have already Install WordPress Click to Deploy on Google Compute Engine 

Let’s get on with it…

1. Launch your internet browser, navigate to and then click on the Sign Up button as in the screenshot below.

2. Enter your email address, choose a password and click on the Create Account button below to continue.

3. Enter your website’s root domain (e.g. if your website domain is, type as in the screenshot below and click on the Add Site button to continue.

4. Click to select the Free plan in example 1 below and click on the Confirm Plan button as in example 2 below to continue.

5. Wait as Cloudflare attempts to automatically identify your default DNS records as in the screenshot below. This shouldn’t take longer than necessary.

6. Review the imported DNS records, do not make any changes or adjustments, we’ll get there. Scroll down and click on the Continue button as shown below.

Pointing your domain name to Cloudflare’s. (for the purpose of this tutorial we’ll be using Namecheap as the domain name registrar).

7. Navigate to your domain name registrar (in our case,, enter your username or email and password as in the screenshot below and click Sign In button to continue.

8. Click on Domain List from the Left sidebar as in the screenshot below.

9. Click on the Manage button next to the domain name whose nameservers you want to replace with that of Cloudflare as in the screenshot below.

10. Scroll down and find the Nameservers section, click the drop-down arrow as in example 1 below and select “Custom DNS” from the drop-down menu as in example 2 below.

11. Switch to the tab where your Cloudflare is opened, then copy Nameserver 1 and Nameserver 2 as in the screenshot below.

12. Switch back to your domain name cPanel, delete the old nameservers and paste the new nameservers you have just copied from step 11 above into their respective fields and then click on the checkmark icon as in the screenshot below to save the updated changes.

13. Switch back to the Cloudflare tab, scroll down and then click on the button “Done Check Nameservers” as shown below.
14. From Cloudflare when presented with the Security and Speed configuration screen, choose Flexible from the right sidebar as shown in the picture below and then scroll down and click on the Done button to continue.

Take note that nameservers updates do not propagate instantly. AFter nameservers are updated, it may take up to 24 hours (more, in rare cases) for local ISPs to update their DNS caches to make your website available to everyone or for whatever changes you made to take effect.

You can however check your website your domain name using any Proxy server as Proxy servers do not store cache.
15. Scroll down and click on the re-check now button as in screenshot 1 below or on the Cloudflare logo as in screenshot 2 below. (this will direct you to the main Cloudflare dashboard). Your dashboard should show your domain name with a checkmark with an Active status as in screenshot 3 below.

Screenshot 1

Screenshot 2

Screenshot 3


Updating WordPress URL

16. Navigate back to the deployment manager and take note of your WordPress Admin user and WordPress Admin password as in the screenshot below then click on the Admin URL to open in a new tab or suffix your domain name with wp-admin (e.g. if your domain name is, your Admin URL should be

17. Enter or paste the WordPress Admin user in and the WordPress Admin password in their respective fields as shown below and click login.

18. From your WordPress dashboard, navigate to Settings and then click on General. Change the URL fields from your IP address to the domain name you have just setup on Cloudflare. Ensure you prefix with your domain name http:// and not https:// as shown below unless you have already Configured SSL For WordPress Click to Deploy on Google Cloud.

That’s it.

I hope you found this post useful and that you have successfully Setup Your Domain For WordPress Click to Deploy on Google Cloud using Cloudflare.

Drop any questions you may have in the comments section below and I will respond as soon as I can. Remember to like, share and subscribe to our Social Media channels (links sidebar and footer). @KwikHacks

Leave a Comment