How to use Host Access Control in WHM/cPanel

To access/deny services using Host access Control in WHM/cPanel

A client sends request to the server by using the services like ftp, smtp, ssh etc.,. These services can be allowed or restricted to a particular client by using Host access control . It allows you to set up a connection to the server using specific rules. The procedure to access or deny services using Host Access Control in WHM/cPanel is explained in this article.

First Login to WHM Page, then navigate to Security Center -> Host Access Control



To deny a service

Open the terminal and type the following command to get the IP of the system that you want to restrict.


To set up rule in Host access control. Enter the Service name, IP address and select the action to be taken.
Here, we are denying the IP ' 192.168.5.182' and allowing all other IP' s through sshd daemon. Finally Click Save host access list to apply the configuration.



In the terminal, try to connect the server by running the following command.

#ssh root@192.168.7.6
ssh_exchange_identification: Connection closed by remote host


Now you can see the connection closed message.

To allow a service

Remove the blocked IP ' 192.168.5.182' .



Once again try to connect the server and now you can see the connection is established.



If you want to mention any reason for denying, enter it in comment section.


Tag : WHM cPanel
FAQ
Q
How to deny a service in WHM/cPanel?
A
To follow the instruction to deny a service in WHM/cPanel
1. Open the terminal and type the following command to get the IP of the system that you want to restrict.
2. To set up the rule in Host access control. Enter the Service name, IP address and select the action to be taken.
3. Denying the IP ' 192.168.5.182' and allowing all other IP' s through sshd daemon.
4. Finally, Click Save host access list to apply the configuration.
Q
how to access/deny services using Host access Control in WHM/cPanel?
A
A client sends request to the server by using the services like ftp, smtp, ssh etc.,. These services can be allowed or restricted to a particular client by using Host access control . It allows you to set up a connection to the server using specific rules. The procedure to access or deny services using Host Access Control in WHM/cPanel is explained in this article.
Q
Why we are using host access controller in cpanel?
A
host access controller is used to allow or deny the particular services of the particular IP's or users.
Q
what is the use of leech protect in cPanel?
A
Leech Protect is a security feature which is additionally given in cPanel.
This will block the unwanted access to the site
with some username and irrelevent passwords. Leechprotect prevents
Q
How to point cpanel domain to another server?
A
Just follow the simple steps to cpanel domain

1. Assume you have a domain called "example.com".
2. Just go to Home > DNS functions > Edit DNS zone
3. Choose the example.com and edit.
4. There, after the 2 en