Blocking Spam Orders
Automated bots and the spam that they create are just part of doing business online. In addition to spam emails, you may also receive support requests and orders in bulk from automated bots.
Many methods exist both within and external to WHMCS to help you with this problem.
Firewalls
A responsive firewall that can quickly identify undesirable traffic and block it from your website entirely. This is the most effective method and will not have any impact on your legitimate customers.
We do not endorse any particular firewall service. However, the following list includes some of the most popular choices:
reCAPTCHA v3
reCAPTCHA v3 offers Google's best protection from spam and abuse, it uses advanced risk analysis techniques to tell humans and bots apart, this can help you prevent undesirable orders being placed.
We added support for reCAPTCHA v3 in WHMCS 8.11, or via a hotfix in WHMCS 8.10.
For WHMCS 8.10 you must first apply the hotfix:
- Click Download this Hotfix to the right of the hotfix download page.
- Upload and extract the file to your WHMCS installation's directory.
- If you have customised your admin directory, make sure to upload the contents of `admin` to your custom admin directory.
- When asked to override files, select yes.
For all versions, follow these configuration instructions:
- Go to https://www.google.com/recaptcha/admin
- Click + to register a new site
- Choose the Score based (v3) reCAPTCHA type.
- Enter your domain under the domains section.
- Click Submit
- Copy the Site Key and Secret Key that Google generated and enter them in WHMCS.
- Return to WHMCS and to to Configuration > System Settings > General Settings > Security tab.
- Enter the Google reCAPTCHA Site Key and Secret Key.
- Check Shopping Card Checkout and Client Registration under reCAPTCHA for Select Forms.
- For reCAPTCHA Score Threshold, enter the desired minimum score for reCAPTCHA verification. You can enter a value between 0 (least restrictive) and 1 (most restrictive). For example, `.5`.
- Click Save Changes.
- Submissions will start to be recorded on the Google reCAPTCHA site, alongside a score for each threshold. Use this information to adjust the reCAPTCHA Score Threshold setting as necessary to block automated submissions.
reCAPTCHA v3 adds a new setting reCAPTCHA Score Threshold at Configuration > System Settings > General Settings > Security tab.
For guidance setting this score, see: https://developers.google.com/recaptcha/docs/v3#interpreting_the_score
Banned Email Domains
If you are receiving multiple orders from different email addresses on the same domain, you can block it at Configuration > System Settings > Banned Emails.
For more information, see Banned Emails.
Unnecessary Forms
Spam bots often target automated forms in order to create more spam.
To help with this, disable any WHMCS forms that you don't need:
- Disable Allow Client Registration in the Other tab at Configuration > System Settings > General Settings.
- Use a support department for sales by selecting it for Presales Form Destination in the Mail tab at Configuration > System Settings > General Settings.
- Ensure that you have checked Clients Only for any support departments at Configuration > System Settings > Support Departments that do not need to be client-facing.
Custom Client Field
You can add a manual question that a human can easily understand and answer using a custom client field at Configuration > System Settings > Custom Client Fields.
Use the following configuration:
Field Name |
Are you human?
|
Field Type | Text Box |
Description |
To help prevent automated submissions, answer “YES”.
|
Validation |
|
Required Field | Yes |
Show on Order Form | Yes |
Require Client Email Verification
Use the Client Email Verification feature to prevent visitors placing orders until they have first verified their email address via a time-limited one-time link.
See our Prevent orders from clients with an unverified e-mail address guide to learn how to implement this.
Automatically detect fraudulent orders
If an order does get through, the MaxMind and FraudLabs Pro modules in WHMCS can automatically cancel orders from spam bots before payment. This will ensure they aren't able to make a fraudulent payment.
You can configure this at Configuration > System Settings > Fraud Protection.