• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to use Host Access Control in WHM/cPanel

{{postValue.id}}

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


hsot_acccess

To deny a service

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


deny

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.


deny
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

terminal
Now you can see the connection closed message.

To allow a service

Remove the blocked IP ' 192.168.5.182' .


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


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


comment

Tags:
benjamin
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

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

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

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

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.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Lucas ?
Various options in Top command

Am using Top command only to view the load average, what are the various options in Top command..??

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.