WHMCS provisioning module for Flowtriq DDoS detection and auto-mitigation. Lets hosting providers sell DDoS protection as a WHMCS product with fully automated provisioning, suspension, and termination -- integrated with Flowtriq's white-label system so each customer gets their own isolated dashboard.
- Automated provisioning -- creates a Flowtriq workspace + monitoring node when a customer orders
- White-label integration -- each customer gets their own branded dashboard with login credentials
- Billing lifecycle -- suspend, unsuspend, and terminate tied to WHMCS billing events
- Client area -- protection status, recent incidents, and agent install instructions
- Admin area -- node status, workspace details, and quick dashboard link
- Auto-setup -- required custom fields are created automatically when you configure a product
- WHMCS 8.0+
- PHP 7.4+
- A Flowtriq account with white-label enabled
-
Copy the module directory into your WHMCS installation:
cp -r modules/servers/flowtriq /path/to/whmcs/modules/servers/
-
In WHMCS Admin, go to Setup > Products/Services > Products/Services
-
Create or edit a product and set the Module to Flowtriq DDoS Protection
-
Configure the module settings:
- API URL -- your Flowtriq instance URL (default:
https://flowtriq.com) - Deploy Token -- your white-label workspace deploy token (found in Flowtriq > Settings > API)
- Show Install Instructions -- whether to display agent setup steps to customers
- API URL -- your Flowtriq instance URL (default:
-
Save the product. The required custom fields will be created automatically.
When a customer orders a product using this module:
- A sub-workspace is created in Flowtriq under your white-label account
- A user account is created so the customer can log into their dashboard
- A monitoring node is provisioned for the IP address in the Domain field
- The customer receives their dashboard credentials and agent install instructions
| WHMCS Action | What Happens |
|---|---|
| Create | Sub-workspace + user + node created |
| Suspend | Node deleted (stops per-node billing), workspace kept for history |
| Unsuspend | New node provisioned in existing workspace |
| Terminate | Node deleted + workspace deactivated |
Customers see:
- Protection status (online/offline/under attack)
- Current traffic levels
- Recent DDoS incidents with attack type, severity, and peak PPS
- Agent installation instructions with copyable credentials
- Link to their full Flowtriq dashboard
- Set the Domain field label to "IP Address" in your product's custom fields -- this is the IP that Flowtriq will monitor
- The module uses the customer's email address to create their Flowtriq dashboard login
- Each customer gets a randomly generated password, visible in the admin custom fields
modules/servers/flowtriq/
flowtriq.php # Main provisioning module
hooks.php # Auto-creates custom fields
logo.png # Module icon
lib/
FlowtriqApi.php # Flowtriq REST API client
templates/
client.tpl # Client area view
The module communicates with the Flowtriq REST API v1:
| Endpoint | Purpose |
|---|---|
POST /api/v1/workspaces |
Create sub-workspace for customer |
DELETE /api/v1/workspaces/{uuid} |
Deactivate sub-workspace |
POST /api/v1/nodes |
Provision monitoring node |
GET /api/v1/nodes/{uuid} |
Fetch node status |
DELETE /api/v1/nodes/{uuid} |
Remove monitoring node |
GET /api/v1/incidents |
Fetch recent incidents |
GET /api/v1/workspace |
Test API connection |
Start your free 14-day trial at flowtriq.com/signup.
Proprietary. Copyright Flowtriq.
Built by Flowtriq - Real-time DDoS detection and mitigation.