How to Block CPanel Login Subdomain

mr.bob

Registered
Aug 4, 2021
3
1
1
u.s.
cPanel Access Level
Website Owner
Hi
How to block cpanel.domain.com from access by anyone, and also all other subdomains mail.domain.com, webdisk.domain.com?
There's a problem, on CPanel, IP Blocker, CPHulk options missing.
.htaccess in folder "above" public_html doesn't work or rule is misspelled.
public_html folder doesn't contain any subdomains, and /home/user too, because search did not find a subdomain or system file.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,496
1,009
313
cPanel Access Level
Root Administrator
Hey there! The Service Subdomains are configured directly in the Apache configuration, so you'd need to remove those entries using the Service Subdomain toggle in WHM >> Tweak Settings. Can you try that and see if that gets the results you expect?
 

mr.bob

Registered
Aug 4, 2021
3
1
1
u.s.
cPanel Access Level
Website Owner
Hi,
Sorry forgot to say that I'm using shared hosting. I guess WHM is too high level I can't access? The server is run by a company.
 

mr.bob

Registered
Aug 4, 2021
3
1
1
u.s.
cPanel Access Level
Website Owner
Okay, only Two-Factor auth I enabled seemed to work to protect Cpanel, as I didn't see any other way to do it (to protect it), except maybe upgrading the hosting plan that seem to add some features that I can't recall at this moment.
Thanks
 
  • Like
Reactions: cPRex