WHMCS has no built-in CDN product, so offering Cloudflare, Bunny.net (BunnyCDN) or KeyCDN to your customers needs a provisioning module that creates the zone when an order activates and removes it when the service ends. We set that up for web hosts and agencies who want CDN on their price list, starting at $149. This page is about CDN sold to customers. If the goal is a faster WHMCS client area for your own visitors, WHMCS speed optimization covers that.
Provider options
| Provider | How customers connect a site | What the WHMCS module handles |
|---|---|---|
| Cloudflare | Point the domain's nameservers to Cloudflare. CNAME (partial) setup is limited to Cloudflare Business and Enterprise plans. | Zone creation by API token, DNS records, cache purge, SSL mode, plan changes |
| Bunny.net | Add a CNAME from their hostname to the pull zone | Pull zone with origin URL, custom hostname with a free certificate, purge, deletion on termination |
| KeyCDN | Add a CNAME to the zone, set up as a zone alias | Pull zone, alias, purge, deletion on termination |
For Cloudflare we normally use our WHMCS Cloudflare Integration Module, which provisions zones on order and gives customers DNS record editing (A, AAAA, CNAME, MX, TXT, SRV, CAA), cache purge by URL, tag or full zone, page rules, Flexible, Full or Strict SSL modes and, on Pro and Business zones, WAF rules. Upgrading a zone's Cloudflare plan raises a WHMCS invoice. If you only want to offer DNS hosting without the CDN features, the lighter DNS Management (Cloudflare) module is enough.
Bunny.net and KeyCDN have well-documented APIs but no module shipped with WHMCS. Where a maintained third-party module fits your version, we install and test it. Where none does, we write a small provisioning module against the provider's API, quoted separately under module development.
The lifecycle we wire up
- Create. The order activates, the module creates the zone or pull zone with the customer's origin, and the welcome email lists the CNAME or nameservers they need to set.
- Manage. The client area service page shows zone status and offers cache purge, plus DNS editing for Cloudflare. Admins get the same actions as module buttons on the service.
- Suspend and unsuspend. We agree the behavior per provider, for example pausing the zone or disabling it where the API allows, so an overdue invoice does not leave free CDN running.
- Change package. Moving between your plans changes the zone settings or Cloudflare plan and bills the difference.
- Terminate. The zone or pull zone is deleted at the provider, so you stop paying for traffic on a cancelled service.
Selling by traffic
Bunny.net and KeyCDN charge you per GB delivered, so flat-rate plans need a sensible cap. When the provider's API returns traffic per zone, the module can report it to WHMCS, and the product's overage settings bill usage above the included allowance. We decide with you whether to sell fixed bundles, metered plans or both, and set product names that make the limits obvious.
If your own WHMCS sits behind Cloudflare
Proxying the WHMCS site through Cloudflare is common, and it has one known side effect: unless Cloudflare's addresses are in the Trusted Proxies list on the Security tab at Configuration > System Settings > General Settings, staff and customers get logged out early and WHMCS logs the wrong client IPs. System Health flags it with a Cloudflare Proxy Check warning. We fix that while we are in the install.
What to have ready
- An account with the CDN provider and an API token or key with zone permissions
- A WHMCS admin account; 8.13 and 9.x both work, on PHP 8.1+ and PHP 8.2+ respectively
- The plans you want to sell, with prices and any traffic allowance
- A test domain or site we can put through the full order and termination cycle
Handover
CDN products in your catalog, a tested order that created a working zone, a tested cancellation that removed it, welcome email text with the customer's DNS steps, and a short admin note covering suspension rules and usage billing.
Prices by scope
| Scope | Price |
|---|---|
| Cloudflare through our module, or Bunny.net or KeyCDN through an existing module: products, lifecycle test, welcome email | From $149 |
| Usage reporting and overage billing | Fixed quote |
| Custom provisioning module for a provider without one | Fixed quote after reviewing the API |
Not part of this job
Provider fees and Cloudflare plan charges, module license fees, tuning your customers' origin servers or WordPress caching plugins, and DDoS incident response. To discuss a provider not listed here, start at the project form.