First App.
Your learning space A little progress, every day
CHAPTER 06Lesson 18 of 20

Add your own domain when you want one

A domain is a name such as littlegarden.com. It is optional: your free Cloudflare address already works.

In Cloudflare10 min read & do
By the end of this lesson

Compare annual domain costs and connect a purchased name to the working website.

Let’s do this

  1. 1
    In your browser

    Decide whether you need to buy a name

    Keep pages.dev while learning. A custom name can make a business site easier to remember. Domain registration pays for the name; hosting serves the files. Buying a name does not automatically create a website.

  2. 2
    In Cloudflare

    Compare the first year and renewal

    Open Cloudflare Domain Registration and search for your name. Cloudflare Registrar offers supported endings at cost, without its own markup. Check the actual checkout total, tax and renewal amount. Some first-year discounts elsewhere renew at a much higher price. Cloudflare Registrar requires Cloudflare nameservers.

    Cloudflare: register a new domain (opens a new tab)
  3. 3
    In Cloudflare

    Register only when you are ready

    Check spelling carefully, enter your own registrant details, review renewal settings and complete payment yourself. Keep a recovery method for the account and a valid payment method if using automatic renewal. If you already own a name, follow the existing-domain instructions instead of buying another.

    Cloudflare Registrar: domain registration (opens a new tab)
  4. 4
    In Cloudflare

    Attach the domain to your Pages project

    Open Workers & Pages, choose the working Pages project, then Custom domains and Set up a custom domain. Enter the name and follow the DNS steps. For a root domain such as littlegarden.com, its DNS zone must be on Cloudflare. With a Cloudflare-registered domain, that is already the normal arrangement.

    Cloudflare Pages: custom domains (opens a new tab)
  5. 5
    In your browser

    Check the secure address

    Wait for the domain and certificate to become active. Visit the https address in a private window and on your phone. If you want both the root name and www, add and test both through the supported setup and choose one to redirect to the other.

A message for your AI helper

My website already works on its pages.dev address. Help me decide whether I need a custom domain. If I do, compare the actual registration and renewal prices for [domain], including tax and nameserver requirements. I will complete the purchase. Then guide me through connecting the domain to the existing Cloudflare Pages project and checking HTTPS, the root name and www. Do not buy or transfer anything for me.

What you should see

Either you have deliberately kept the free address, or your chosen custom domain opens the same working website securely.

If you get stuck

Go at your own pace. There is no test to pass.

Checked 7 September 2026. Screens can change; the official guides below have the latest steps.

Cloudflare Registrar: domain registrationCloudflare: register a new domainCloudflare Pages: custom domains