Disabling cPanel interface access EasyApache 4

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello,

Would you like to only disable access to the /cpanel, /whm, and /webmail links, or would you like to completely block access to cPanel and Web Host Manager? To completely block access, you can use the Host Access Control feature documented at:

Host Access Control - Documentation - cPanel Documentation

Thank you.
 

quizknows

Well-Known Member
Oct 20, 2009
1,008
87
78
cPanel Access Level
DataCenter Provider
I would think that rather than messing with the apache config, it would be easiest to just close the ports for those services in your firewall, and whitelist your own IPs to access them.
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

There is no need to play with the firewall in the first place. What Michael said is the appropriate way to deal with this. You just have to deny access for all and allow access only to certain IPs if you required, otherwise, you can disable the access for any service you like. The hostaccess is the traditional TCP wrapper thing that uses hosts.allow in the backend..