Networking, DNS & IPAM Addon Module v1.0.0

Haikhavan Cloudflare Connect & Analytics

Give your customers instant access to Cloudflare's global edge network without leaving your WHMCS Client Area, while equipping your support and security teams with deep GraphQL traffic…

  • Zero-Friction Customer Onboarding: Eliminate support tickets about nameserver changes, missing MX records, and…
  • Full Fleet Visibility & SOC-Grade Forensics: See real-time requests, edge cache hit ratios, bandwidth savings…
  • Flexible Account Architecture: Let clients connect their own Cloudflare account via a 1-click pre-filled API…
  • Zero Plan Confusion, Built-In Upgrade Clarity: Every Cloudflare feature carries an unmistakable color-coded…
189,00€ / Annually · Instant ZIP download
WHMCS 9.1.x Ready PHP 8.2 – 8.4 Native Theme UI ionCube Protected
Product Overview

Features & Capabilities

One-Click Cloudflare Onboarding, Full Plan-Aware Control & Enterprise-Grade WAF Forensics — Directly Inside WHMCS.

Give your customers instant access to Cloudflare's global edge network without leaving your WHMCS Client Area, while equipping your support and security teams with deep GraphQL traffic telemetry, threat intelligence, and live WAF event forensics across your entire domain fleet.


Why Hosting Providers & Clients Love Cloudflare Connect

For Hosting Providers & Admins

  • Zero-Friction Customer Onboarding: Eliminate support tickets about nameserver changes, missing MX records, and SSL misconfigurations. One click provisions the zone, scans existing DNS records, updates registrar nameservers automatically via WHMCS localAPI, and verifies activation.
  • Full Fleet Visibility & SOC-Grade Forensics: See real-time requests, edge cache hit ratios, bandwidth savings, blocked threats, WAF events, and authoritative DNS volume across every connected customer domain—plus a built-in Admin Home Dashboard Widget.
  • Flexible Account Architecture: Let clients connect their own Cloudflare account via a 1-click pre-filled API Token deep-link, OR offer turnkey managed onboarding under your company's central Provider Cloudflare account.
  • Zero Plan Confusion, Built-In Upgrade Clarity: Every Cloudflare feature carries an unmistakable color-coded Free, Pro, Business, or Enterprise badge and automatically enables or locks based on the zone's real Cloudflare plan—eliminating cryptic API errors and support escalations.

For Your WHMCS Customers

  • 1-Click "Connect to Cloudflare" Everywhere: Prominent CTAs appear directly on My Domains, Domain Details, and the Domains navigation menu.
  • 10 Complete Management Tabs in One Modern UI: Manage DNS & DNSSEC, SSL/TLS, Security & WAF, Speed, Caching & Purge, Network, Page Rules, Scrape Shield & Logs, and Analytics without jumping between dashboards.
  • Instant Guided Authorization: No manual permission hunting—one click opens Cloudflare's API Token screen with all 12 required scopes pre-selected.

Complete Feature Breakdown

1. Automated One-Click Domain Onboarding

  • Smart Zone Detection: Automatically links an existing Cloudflare zone or provisions a new full zone on Cloudflare.
  • Automatic DNS Record Scan: Imports existing A, AAAA, CNAME, MX, and TXT records on creation so websites and email keep working seamlessly.
  • Automated Registrar Nameserver Sync: Calls WHMCS localAPI('DomainUpdateNameservers') to push Cloudflare's assigned nameservers directly to the domain's registrar.
  • Live Activation Verification: Triggers Cloudflare's activation check and compares live authoritative DNS NS records against Cloudflare's assigned nameservers.
  • Pause & Safe Disconnect: Toggle Cloudflare DNS-only pause mode anytime or cleanly disconnect domains.

2. Full 10-Tab Client Area Control Panel

  1. Overview & Nameservers: Live zone status, assigned nameserver chips, registrar sync status, 1-click NS push & activation verify, Pause Cloudflare toggle, and live plan quota cards.
  2. DNS & DNSSEC: Full record CRUD (A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, HTTPS, PTR), orange/grey Proxy toggles, TTL & priority controls, search & type filters, DNS Auto-Scan, BIND Zone Export & Import, and 1-click DNSSEC with DS record display.
  3. SSL / TLS Encryption: Encryption mode (Off, Flexible, Full, Full Strict), Always Use HTTPS, Automatic HTTPS Rewrites, Minimum TLS Version, TLS 1.3 + 0-RTT, Opportunistic Encryption, Authenticated Origin Pulls, HSTS configuration, and live Edge Certificate Packs viewer.
  4. Security, WAF & Bot Protection: Security Level (including 1-click I'm Under Attack! mode), Challenge Passage TTL, Browser Integrity Check, Bot Fight Mode, Managed WAF & OWASP Core Ruleset, Super Bot Fight Mode, Leaked Credential Detection, Page Shield, Custom WAF Rules builder (with live plan quota meter), and IP/CIDR/ASN/Country Access Rules.
  5. Speed & Optimization: Brotli Compression, Early Hints (HTTP 103), HTTP/2, HTTP/3 (QUIC), 0-RTT Resumption, Rocket Loader, Speed Brain, Polish Image Optimization, WebP Conversion, Mirage, Enhanced HTTP/2 Prioritization, Argo Smart Routing, and Prefetch URLs.
  6. Caching & Purge: Caching Level, Browser Cache TTL, 3-hour Development Mode, Always Online, Crawler Hints, Argo Smart Tiered Cache, Query String Sort, Purge Everything, Purge by URL (up to 30), and Enterprise Purge by Cache-Tag / Hostname / Prefix.
  7. Network Settings: IPv6 Compatibility, WebSockets, Pseudo IPv4, IP Geolocation (CF-IPCountry), Onion Routing (Tor), gRPC, Maximum Upload Size (100 MB to 500 MB), CNAME Flattening, True-Client-IP Header, and Response Buffering.
  8. Page Rules: Create and manage URL pattern Page Rules with live plan quota tracking (3 / 20 / 50 / 125).
  9. Scrape Shield, Custom Pages & Logs: Email Address Obfuscation, Server-Side Excludes (SSE), Hotlink Protection, Custom Branded Error Pages viewer, and Enterprise Logpush Jobs viewer.
  10. Client Analytics: Interactive 6H / 24H / 7D / 30D HTTP traffic, cache ratio, bandwidth, and threat charts right inside WHMCS.

Crystal-Clear Plan-Tier Gating (Free / Pro / Business / Enterprise)

Cloudflare Connect automatically detects every domain's live Cloudflare subscription and renders clear visual tier badges on every single setting and dropdown option:

Plan Badge Unlocked Highlights Rule Quotas
Free Full DNS/DNSSEC, Universal SSL, HSTS, Always Use HTTPS, TLS 1.3, Under Attack Mode, Bot Fight Mode, Brotli, HTTP/3, Tiered Cache, Purge Everything/URLs, Email Obfuscation, Hotlink Protection 5 Custom WAF Rules, 3 Page Rules, 100 MB Upload
Pro Everything in Free + Managed WAF & OWASP Core Ruleset, Super Bot Fight Mode, Leaked Credential Detection, Polish + WebP, Mirage, Enhanced HTTP/2 Prioritization, Argo Smart Routing, Flatten All CNAMEs, Custom Error Pages 20 Custom WAF Rules, 20 Page Rules, 100 MB Upload
Business Everything in Pro + Page Shield (Magecart/JS supply-chain protection), Custom Edge SSL Certificates, Short Browser Cache TTLs (2m/5m), up to 200 MB Max Upload 100 Custom WAF Rules, 50 Page Rules, 200 MB Upload
Enterprise Everything in Business + Enterprise Bot Management (ML Score & JA3/JA4), Advanced L7 DDoS Overrides, Purge by Cache-Tag/Host/Prefix, Logpush Real-Time Streaming, Custom TLS Ciphers, Prefetch URLs, Query String Sort, 30s/60s Browser TTL, True-Client-IP, Response Buffering, 500 MB Max Upload 1,000 Custom WAF Rules, 125 Page Rules, 500 MB Upload

Dual Enforcement Guarantee: Higher-tier controls aren't just greyed out in the browser—FeatureCatalog::validateMutation() enforces both plan-tier rules and Cloudflare's live editable entitlement flag server-side on every request.


Admin Fleet Dashboard & Deep WAF / Threat Forensics

Built for hosting operations, abuse teams, and enterprise support engineers:

  • Fleet Telemetry Command Center: Track total connected zones, active vs. pending onboarding status, aggregate HTTP requests, cache hit percentage, bandwidth offloaded, threats mitigated, WAF events, DNS query volume, and plan-tier distribution across 6H, 24H, 7D, and 30D windows.
  • Deep Per-Domain Analytics & Interactive Charts:
    • Time-series charts for HTTP Requests vs. Cached Requests, Bandwidth vs. Cached Bandwidth, and Threats & Security Mitigations Over Time.
    • WAF Actions Breakdown (block, managed_challenge, jschallenge, challenge, log) & Mitigation Engine Sources (Managed WAF, Custom Rules, Rate Limiting, L7 DDoS, Bot Protection, Browser Integrity Check).
    • Top Attacking IPs & ASNs + Top Countries (Traffic & Threats) tables.
    • Searchable Live WAF & Firewall Events Stream: Instant client-side filtering by IP address, URI path, Rule ID, ASN, Cloudflare Ray ID, or action—showing full HTTP method, host, path/query, User-Agent, and Ray ID for rapid incident response.
    • Authoritative DNS Telemetry: Query volume by record type (A, AAAA, TXT, MX, etc.), response codes (NOERROR, NXDOMAIN), and top queried hostnames.
  • Deep WHMCS Admin Integration:
    • Admin Home Widget: Live 24-hour Cloudflare Security & Traffic summary right on the WHMCS Admin Dashboard.
    • Client Domain Tab Field: Instant zone status, plan badge, nameservers, and 1-click View Cloudflare Stats, Threats & WAF Events button directly on every client's Domain profile.
    • Complete Activity Audit Log & Daily Cron Sync: Every credential connection, DNS edit, WAF rule change, cache purge, and registrar sync is logged with user/admin ID and IP address.

Security & Architecture Highlights

  • Bank-Grade Credential Encryption: All Cloudflare API Tokens and Global Keys are encrypted at rest using AES-256-CBC + HMAC-SHA256 (Encrypt-then-MAC with domain-separated subkeys derived from WHMCS $cc_encryption_hash).
  • Built-In Sandbox / Demo Mode: Test the entire onboarding flow, switch between Free, Pro, Business, and Enterprise plan locks in one click, and demo populated WAF forensics locally without touching production domains.
  • Zero External Composer Bloat: Pure PHP 8.1+ / WHMCS 9.x native architecture using WHMCS\Database\Capsule and cURL.

Frequently Asked Questions (FAQ)

Q: Which WHMCS and PHP versions are supported? A: Built and tested on WHMCS 9.1.2 with PHP 8.3 and MySQL 8.4, and compatible with WHMCS 8.9+ and PHP 8.1+.

Q: Do clients have to share their Cloudflare Global API Key? A: No! Clients are guided to create a least-privilege Scoped API Token with one click via our pre-populated Cloudflare deep-link URL. Global API Key is also supported as an optional fallback.

Q: Can we host client domains under our own central Cloudflare account instead? A: Yes. You can enable Allow Provider/Default Cloudflare Account, allow clients to bring their own Cloudflare account, or enable both simultaneously.

Q: Will connecting a domain break existing website or email DNS records? A: With Auto-Scan Existing DNS Records enabled (default on), Cloudflare scans and imports existing DNS records automatically before nameservers are updated.

Q: What happens if a domain doesn't have a WHMCS registrar module assigned? A: The module gracefully marks ns_sync_status = manual_required and displays Cloudflare's assigned nameservers prominently so the client can paste them at their external registrar and click Verify Nameservers.

Q: How does Analytics caching avoid hitting Cloudflare API rate limits? A: All GraphQL responses are cached in mod_hk_cf_stats_cache for your configured TTL (default 10 minutes), refreshed automatically by the WHMCS DailyCronJob, and refreshable on demand whenever an Admin or Client clicks Live Refresh.

Q: Does deactivating the module delete our customers' connected zones? A: No. Deactivating the module preserves all four mod_hk_cf_* database tables so your mappings, encrypted credentials, and audit trail remain completely intact.