STS Admin

Well-Known Member
Jul 8, 2012
46
0
6
India
cPanel Access Level
Root Administrator
You can try CSF firewall. Block the cPanel ports in it and allow access only from your IP's.

Put the below lines in /etc/csf/csf.allow

# Advanced port+ip filtering allowed with the following format
# tcp/udp:in/out:s/d=port:s/d=ip

tcp:in:d=2082:s=YOUR_IP
tcp:in:d=2083:s=YOUR_IP
 

ttremain

Well-Known Member
Feb 16, 2003
216
0
166
cPanel Access Level
Root Administrator
Or if your IP is already in the allow list, you do not have to specifically allow yourself back in to just that port.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
23
143
Houston, TX
cPanel Access Level
Root Administrator
You can allow/disallow access to cPanel by IP address using Home » Security Center » Host Access Control, just like allowing/disallowing access to the WebHost Manager. The only difference is, you will use cpaneld for the daemon name instead of whostmgrd. Similarly, you can use the webmaild daemon name to allow/disallow access to Webmail.

I recently helped our documentation team rewrite the documentation for this feature, with a list of the daemon names you can use:

Host Access Control - cPanel Documentation