Whitelisting IPs in WHMCS

WHMCS can be a little overzealous when it comes to security; it will occasionally ban IP addresses from logging in and requires that an IP address already be on a whitelist to access the API. This guide will provide a quick tutorial to whitelist specific IPs in WHMCS. If you’re looking to whitelist an IP in Bitninja or on an individual server, not a single WHMCS install, then follow this guide instead (you may have to end up doing both).

Whitelisting an IP address

After you get the IP address in question, log in to WHMCS and under the Setup tab hit General Settings.

Next, find and hit the Security tab.

Scroll down and find the Whitelisted IPs section. Here, click Add IP [1], and in the pop up box fill out the IP [2] and a reason for whitelisting it [3] (I recommend using the ticket number the request to whitelist the IP came from) . Once everything is filled out, hit the Add IP button on the popup box [4] and the IP will be exempt from being banned for invalid login attempts.

It will be the same process for whitelisting an IP address to use the WHMCS API. Just provide the IP and a note to why the IP is whitelisted. I recommend if at all possible to use the hostname of the machine being whitelisted, or at least the ticket number the request to whitelist the IP came from.

Whitelisting_IPs_4.png

Removing a banned IP address

Removing an IP is a little more complicated. You’ll have to do some database stuff. You can either run this command (replacing banned IP address with the actual banned IP address) on the server the WHMCS install is on.

echo “use $(echo “show databases like ‘%_whmc%’;” | mysql | tail -n 1); delete from tblbannedips where ip = ‘banned IP address’;” | mysql

Or you can just open up PHPMyAdmin on the cPanel account WHMCS is installed in, and find the tblbannedips table in the WHMCS database (which is usually username_whmc1).

Whitelisting_IPs_5.png

Then next to the IP address in question, hit delete.

Whitelisting_IPs_6.png

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more
Reclaim Hosting Support Hours
8:00 am - 5:00 pm ET, Monday through Friday
Submit a Ticket
Get a quick and helpful response from the pros.
Need Extra Support?
No problem, we're here to help! Talk to us about Professional Services or custom Service Level Agreements.