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.
- On the first empty line, enter
whostmgrd
in the "Daemon" column. - On the same line, enter
ALL EXCEPT 203.0.113.2
in the "Access List" column.
Please note that "203.0.113.2" must be replaced with your IP address or subnet. - On the same line, enter
deney
in the "Action" column. - Scroll to the bottom of the page.
- Click the "Save Host Access List" button.
Additional resources
Host Access Control: Allow or deny access
What does "console access" mean?
How to deny access to WHM via Host Access Control on a RHEL-based server
Comments
0 comments
Article is closed for comments.