WHM/cPanel comes with a built-in firewall called cpHulk, with advanced protection for blocking brute force attacks and other intrusion attempts. Unfortunately, cpHulk will sometimes lock out the owner of the server, so he can’t log in to WHM.
If you are able to log in via shell (SSH), run the following commands to disable cpHulk and allow logins to WHM:
/usr/local/cpanel/etc/init/stopcphulkd
rm -f /var/cpanel/hulkd/enabled
If you would like to permanently disable cpHulk, follow the steps below to disable cpHulk from the WHM administrator panel. Permanently disabling cpHulk firewall is not recommended for server security.
From this panel you can also whitelist IP addresses, such as your home IP address or office IP address, to avoid being accidentally locked out in the future.
This article applies to…

Lightning-fast VPS hosting with enterprise SSD storage, global data centers, and 99.99% uptime. Built for developers, trusted by enterprises.
support@solvps.com
1-888-256-8213
Live Chat Now