If you require professional help to fix the WHMCS security, hire us and check out our plans at Proactive Server Management .
In today’s world of online businesses, WHMCS (Web Host Manager Complete Solution) is a vital tool for many hosting providers. However, securing WHMCS from spam orders or tickets is crucial to maintaining the integrity of your business and safeguarding client data. Here are actionable steps to secure your WHMCS and block spam effectively.
1. Implement CAPTCHA for Forms
Spam bots often exploit the absence of CAPTCHA on forms to flood your WHMCS system with fake orders or tickets. To combat this:
- Navigate to
- Enable
- Use Google reCAPTCHA v2 or v3 for enhanced protection.
Setup > General Settings > Security in your WHMCS admin panel.
reCAPTCHA for client login, registration, ticket submission, and password reset forms.
2. Restrict Email Domains
Spam orders are frequently made using disposable email addresses. Restrict such email domains by:
- Going to
- Adding domains like
- Regularly updating this list to include newly discovered disposable email providers.
Setup > Other > Banned Emails .
@mailinator.com , @tempmail.com , and others to your blacklist.
3. Enable Client Email Verification
Requiring clients to verify their email addresses ensures that only legitimate users gain access. To enable this:
- Navigate to
- Go to the
- Check the box for
- WHMCS will send a confirmation email to new users, verifying their identity before they can complete any actions.
- Request users to confirm their email address on signup or change of email address.
Configuration () > System Settings > General Settings .
Security tab.
Require Email Verification .
4. Leverage Custom Order Validation Hooks
Hooks are a powerful feature in WHMCS that allow custom scripting. To block spam orders:
- Use the
- Reject orders with suspicious patterns, such as mismatched IP and country details or invalid phone numbers.
OrderValidation hook to create a script that checks order details against predefined criteria.
Example:
add_hook('ShoppingCartValidateCheckout', 1, function($vars) {
if (!filter_var($vars['email'], FILTER_VALIDATE_EMAIL)) {
return ['Invalid email address provided.'];
}
});
5. Block IP Addresses with High Spam Rates
Spam often originates from specific IP ranges. To block these:
- Use
- Integrate third-party services like
- Regularly review logs for patterns and update your blacklist.
Setup > Other > Banned IPs to manually ban known spam IPs.
Cloudflare to block or challenge suspicious IPs at the DNS level.
6. Enable Ticket Spam Control
WHMCS includes built-in spam protection for support tickets. To enable and customize:
- Navigate to
- Define keywords, phrases, and email addresses commonly used in spam.
- Adjust the sensitivity settings to suit your business requirements.
- Disable client-only ticket opening on specific ticket departments to prevent unauthorized submissions.
Setup > Support > Spam Control .
7. Use Secure Payment Gateways
Spam orders often exploit unsecured payment gateways. To mitigate this:
- Use trusted payment gateways like PayPal, Stripe, or Authorize.Net.
- Enable
- Configure rules for high-risk countries, requiring additional verification steps or outright blocking orders.
Fraud Protection Modules such as MaxMind or FraudLabs Pro within WHMCS.
8. Keep WHMCS Updated
An outdated WHMCS installation is a goldmine for attackers. Regularly updating ensures you’re protected against known vulnerabilities:
- Monitor the official WHMCS website for updates.
- Enable notifications for new patches and apply them promptly.
9. Enable Two-Factor Authentication (2FA)
Protect your WHMCS admin panel and client accounts with 2FA:
- Go to
- Enable 2FA for both admins and clients.
- Use apps like Google Authenticator or Authy for secure authentication.
Setup > Staff Management > Two-Factor Authentication .
10. Review Logs Regularly
Keep a close eye on your WHMCS logs to identify suspicious activities early:
- Use the
- Investigate anomalies promptly and take necessary action.
Activity Log and Ticket Mail Import Log to track failed login attempts, order submissions, and email usage.
11. Restrict Registration Without Orders
To reduce spam signups, disable the option allowing users to register without ordering any products or services:
- Navigate to
- Uncheck the box for
Setup > General Settings > Other .
Allow Registration Without Ordering Products/Services .
Final Thoughts
Securing your WHMCS system and blocking spam orders or tickets requires a multi-layered approach. By following these steps, you’ll not only safeguard your platform but also enhance the user experience for your genuine clients. Remember, proactive measures are always better than reactive solutions.
For professional assistance or more insights on WHMCS management, visit iServerSupport .
Want an engineer to manage the server behind this problem?
iServerSupport provides monitoring, maintenance, security, and incident response for infrastructure you already control.



