How do custom domains work through Cloudflare?

Bweb publishes to your own Cloudflare account and sets up CNAME and HTTPS automatically. See what to prepare, how binding works and common failures.

Why the customer's own Cloudflare account

Site files are published to your Cloudflare Pages project, so the domain, DNS and certificates stay in your account. Bweb does not hold your domain or place your site on shared hosting.

That also means you provide a Cloudflare Account ID and an API token with Pages and DNS permissions.

Prepare the Account ID and API token

  • Account ID: the 32-character hex string in the Cloudflare dashboard URL.
  • Account → Cloudflare Pages → Edit: create projects, upload files and manage domains.
  • Zone → DNS → Edit: create or adjust the CNAME record.
  • Zone → Zone → Read: list your domains.
  • Do not use the Global API Key. Delete a leaked token in Cloudflare immediately.

The binding flow

  • Enter the Account ID and API token in Bweb settings and click verify.
  • Publish the site first so the matching Pages project exists.
  • Add the domain from the site's domain settings.
  • Bweb calls the Cloudflare API to add the custom domain and create the CNAME.
  • Wait for Cloudflare to issue the HTTPS certificate and the status to become active.

Domain limits

The number of domains per Cloudflare Pages project depends on your Cloudflare plan: 100 on Free, 250 on Pro, and 500 on Business/Enterprise.

Bweb treats the first domain as primary and the rest as aliases. When several domains serve the same content, set a canonical URL or redirect the others.

HTTPS and propagation

  • Cloudflare issues and renews certificates automatically; no separate purchase is needed.
  • DNS usually takes minutes to propagate, depending on caches and the registrar.
  • The first certificate can take a few minutes; use Full (strict) once it is active.

Common failure causes

  • The token lacks Pages or DNS permissions.
  • The Account ID is wrong, or a token was pasted instead of the Account ID.
  • The domain is not in the current Cloudflare account, so records cannot be created automatically.
  • The domain is already attached to another Pages project.
  • A conflicting A, AAAA or CNAME record exists.

About the author

Bweb Editorial Team

Content and editorial

Turning first-hand building, publishing, domain and acquisition work into steps readers can follow.

Reviewed by: SHUOFENG

Facts are checked by a person before publishing; AI only assists with drafts and translation.

Editorial standards

Related questions

Do I have to configure DNS myself?
If the domain is in the same Cloudflare account, Bweb creates or adjusts the CNAME automatically. Otherwise follow the prompt to add DNS records manually.
Do I need to buy an HTTPS certificate?
No. Cloudflare issues and renews certificates for connected domains automatically.
How many domains can one project hold?
100 on Free, 250 on Pro and 500 on Business/Enterprise, following Cloudflare's limits.
Can I connect a domain that is not on Cloudflare?
Yes, if you can edit its DNS. The automatic CNAME and HTTPS flow is smoothest after the domain is added to Cloudflare.

Keep reading

Want to try it yourself?

Sign in with an email code (your account is created on first sign-in), build a site and see the result before choosing a plan.