Introduction
This guide provides a basic example for blocking access to WHM for all IP addresses except the specific IPs that you allow from the "Host Access Control" interface in WHM.
Before making changes in this interface, you must ensure that you know how to access your server via the console. If this interface is configured incorrectly, you can completely block yourself from accessing the server. In the event that you have completely blocked yourself from accessing the server, you would need to regain access by using console access. Obtaining and using console access is not supported by cPanel because it is configured and provided by your hosting provider or systems administrator.
Procedure
- Log into WHM as the ‘root’ user.
- Navigate to "Home / Security Center / Host Access Control."
- Remove all existing rules unless you know exactly how they will interact with the rules outlined in this guide.
- Enter
2087
in the "Port" textbox. - Enter your IP address or subnet in the "IP Address/CIDR" textbox.
- Ensure that
TCP
is selected in the "Protocol" dropdown menu. - Select
ACCEPT
from the "Action" dropdown menu. - Click the "Add Rule" button.
- Enter
2087
in the "Port" textbox. - Enter
ALL
in the "IP Address/CIDR" textbox. - Ensure that
TCP
is selected in the "Protocol" dropdown menu. - Select
REJECT
from the "Action" dropdown menu. - Click the "Add Rule" button.
Additional resources
Host Access Control: Allow or deny access
Comments
0 comments
Article is closed for comments.