A security feature in WHM called Host Access Control enables you to grant, deny, or prevent access to particular services on your server according to IP address or network. This helps in preventing unwanted access to services like SSH, FTP, cPanel, and WHM.
Follow the steps:
- Log in to WHM.
- Select the “Security Center” section.
- Click on the “Host Access Control” sub-option.

-
Adding a Rule:

-
Port Number (for newer systems, such as AlmaLinux 8+).
Example ports:-
WHM: 2087
-
cPanel: 2083
-
SSH: 22
(Check your server’s service ports if custom.)
-
- Enter IP Address or CIDR
-
A single IP (e.g., 203.0.113.5)
-
CIDR subnet (e.g., 192.168.1.0/24)
-
Wildcards can also be used.
-
- Protocol
Choose TCP or UDP depending on the service (most are TCP).

-
Select Action:
REJECT – block traffic with an error response
DROP – block traffic silently
ACCEPT – allow the IP(s) access

- Save the Rule by clicking ‘Add Rule’.

-
This way, Host Access Control in WHM lets you secure server services by allowing or blocking access based on IP addresses. It is essential for hardening SSH, WHM, FTP, and other service access and must be used carefully to avoid accidental lockouts.
Feel free to contact eukhost support staff.