InMotion Hosting Support Center

As we continue our series on the cPHulk security features, we will show you the steps to blacklist and whitelist IP addresses via SSH. In the last guide we showed you how to blacklist and whitelist IP addresses in the Web Host Manager or WHM. But doing this with command line using SSH can save time since you do not have to go through the WHM interface.

Blacklist IP Address

  1. Connect to your server via SSH as the 'root' user.
  2. Run the following command, but be sure to replace the example IP address (123.45.67.89) with the address you want to blacklist.

    /scripts/cphulkdblacklist 123.45.67.89

    You will then see a response similar to the following:

    123.34.56.78 has been blacklisted

    At this time the IP address has been blacklisted. repeat these steps for any IP addresses you want to blacklist.


Now that you know how to blacklist an IP address via SSH, we will show you how to whitelist IP addresses.

Whitelist IP Address

  1. Connect to your server via SSH as the 'root' user.
  2. Run the following command, but be sure to replace the example IP address (123.45.67.89) with the address you want to whitelist.

    /scripts/cphulkdwhitelist 123.45.67.89

    You will then see a response similar to the following:

    123.34.56.78 has been whitelisted

    At this time the IP address has been whitelisted. repeat these steps for any IP addresses you want to whitelist.


Congratulations, now you know how to whitelist and blacklist IP addresses via SSH!

Was this article helpful?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!