WHMCS firewall and brute-force protection is a one-time hardening job for the traffic that hits your billing system. We add rules at three layers (Cloudflare or your CDN, the web server, and WHMCS itself) so password guessing, card testing on checkout and spam signups are stopped early while real customers and gateway notifications pass. One WHMCS install starts at $199.
Signs you need it
- The admin log shows failed staff logins from IPs you do not recognize
- Stripe has emailed you about a burst of small declined charges
- New client accounts with junk names appear overnight
- Customers ask about password reset emails they never requested
- Your server load spikes while real orders stay flat
Which WHMCS endpoints attract attacks
Bots do not spread their effort evenly. A handful of pages take most of the abuse, and each one needs a different rule:
- Admin login. Credential stuffing against the admin directory, very often at the default /admin path.
- Client login and password reset. Password spraying and floods of reset emails.
- Cart and checkout. Card testing, where stolen card numbers are tried through small orders. Enough of it and your Stripe account gets flagged.
- Registration, contact and ticket forms. Fake accounts and spam tickets.
- includes/api.php. Requests from addresses that should never be calling your API.
Layer 1: Cloudflare or your CDN
When WHMCS sits behind Cloudflare, most bad traffic can be dropped before it touches your server. We write WAF custom rules and rate limiting rules for the paths above, add a managed challenge for countries or networks you want to screen, and put Cloudflare Access or an IP allowlist in front of the admin directory. Paths that must stay open are excluded, above all /modules/gateways/callback/, so Stripe, PayPal and NOWPayments notifications are never challenged.
One setting is easy to miss. WHMCS needs Cloudflare's ranges listed under Trusted Proxies in its security settings. Without that, WHMCS sees every visitor as a Cloudflare address, and a handful of failed logins can ban a shared edge IP along with every honest customer routed through it.
Layer 2: the web server
On cPanel/WHM servers we work with ModSecurity and the OWASP Core Rule Set, or with Imunify360 if it is already installed. On Nginx we add limit_req zones for login and checkout. The usual headache at this layer is false positives: admin pages that save email templates, knowledge base articles or module settings can trip generic rules. We exempt specific rule IDs on specific admin paths instead of turning the WAF off.
Layer 3: inside WHMCS
- Admin directory renamed through $customadminpath in configuration.php
- The built-in login ban length set, with your own IPs on the whitelist
- CAPTCHA, such as Google reCAPTCHA, on checkout, registration, login, domain search and ticket forms
- API IP access restriction so only your known servers can call the API
- Fraud module settings (MaxMind or FraudLabs Pro) checked against your order flow
Rolling rules out without blocking customers
New Cloudflare rules go live as challenges rather than hard blocks, and we read the Security Events log for a day before tightening anything. ModSecurity changes start in DetectionOnly mode, so we can see which requests a rule would have stopped before it stops them. Only after real admin work, real orders and real gateway callbacks have passed cleanly do we switch rules to block.
What you get at handover
- A list of every rule added, where it lives and the reason for it
- Test results: the login ban triggers, checkout completes, each gateway callback succeeds, and API calls from your servers pass
- Steps for getting yourself unblocked when your office IP changes
Outside this job
This service deals with traffic arriving at WHMCS. A full review of your configuration, modules and files is the WHMCS security audit. Hardening a WHM server that also hosts customer sites belongs to WHM setup and hardening, and order screening rules beyond the basics sit under spam and fraud protection.
Timeline and pricing
| Scope | Price |
|---|---|
| Cloudflare rules plus WHMCS-level settings for one install | From $199 |
| ModSecurity or Nginx tuning on your server, including false-positive cleanup | Fixed quote |
| Several WHMCS installs, multiple domains or a CDN other than Cloudflare | Fixed quote |
| Rule changes after handover | $65/hour |
A Cloudflare plus WHMCS setup normally takes two to three business days, including a day of reading logs for false positives before handover. Server-level tuning adds time, depending on how much real traffic we need to observe. To add exploit detection inside the application itself, combine this with the WHMCS Security module.
Under attack right now? Say so in your first message to us and the scoping call will begin with containment rather than a full plan.