1. bluehost knowledge base

VPS & Dedicated Hosting: cPHulk Brute Force Protection

Overview

This article will cover the use of cPHulk. cPHulk is software designed to protect your server from brute force login attempts. It does this through blacklisting IP addresses that have too many failed login attempts within a short period.

ATTENTION: When enabling cPHulk, it is critical that you whitelist your own IP address so that you do not block yourself from your server. If you believe you have been blocked from your server please refer to the Whitelisting in cPanel section.

Note: If you need your IP address, it can be found at www.Bluehost.com/ip
 

Tasks Involved

Click on any of the tasks to jump to that point in the guide.



Enable cPhulk

To enable cPHulk, you will need to be logged into WHM. If you have not done this before, please see Log in to WHM. Once logged in: 

  1. Click on Security Center.
    WHM - Security Center
  2. Click on the cPHulk Brute Force Protection icon.
    cPHulk Brute Force Protection
  3. Click on Enable under cPHulk is Currently Disabled.
The status should say cPHulk is Currently Enabled.

Whitelisting Your IP Address

These steps will explain how to whitelist an IP address. Whitelisted IP addresses will never be blocked by cPHulk.

  1. Click the White/Black List Management tab.
    Whitelist / Blacklist Manager
  2. Enter your IP address in the White list (Trusted IP list) entry field.
    WHM - Whitelist Entry
  3. Click Quick Add.

To modify multiple IPs at once, click Edit Whitelist
 

Whitelisting in cPanel

If you have been blocked from WHM or any other login on your server, you may still login to your Bluehost cPanel and whitelist your IP address.

Note: If you need your IP address, it can be found at www.Bluehost.com/ip

  1. Login to your Bluehost cPanel
  2. If you are not already on the hosting page, click the hosting link at the top.
  3. Click the performance link underneath the hosting tab.
  4. Click the system console link.
  5. Login with root as your username and your root password. 
    Note: If you aren't sure of the root password please see: Setting your Root password.
    Note: When typing in the password, the console will not act as if anything is being entered. This is done purposefully for security. Type your password carefully and hit enter as normal.
  6. Once you are logged into the console, run enter this command:
    /scripts/cphulkdwhitelist YOUR-IP
    Note: Please replace YOUR-IP with your actual IP address.
  7. Next, run this command:
    mysql cphulkd -e "delete from brutes where ip='YOUR-IP'"
    Note: Please replace YOUR-IP with your actual IP address.
  8. Your IP address should now be whitelisted. Finally, enter this command to close the console. exit
 

Blacklisting IP Addresses

  1. Click the White/Black List Management tab.
    Whitelist / Blacklist Manager
  2. Enter the IP address into the Blacklist (Rejected IP list) entry field.
    WHM - Blacklist Entry
  3. Click Quick Add.
To modify multiple IPs at once, click Edit Blacklist.