Operating System & Version
CentOS v7.9
cPanel & WHM Version
106.0.15

Ekushey

Active Member
Oct 26, 2011
44
7
133
Bangladesh
cPanel Access Level
Root Administrator
Twitter
Hello,

I'm trying to block access to WHM for rest of the world accept me. After denying whostmgrd from Host Access Control for others, I see the "HTTP error 401" page with cPanel logo, but I completely want to deny access without even showing this.

Is there a different way of accomplishing this?

Thanks.
 

Attachments

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,163
2,410
363
cPanel Access Level
Root Administrator
Hey there! This is controlled through various files at /usr/local/cpanel/base/unprotected/cpanel/templates/, specifically the access_denied.tmpl and _error_wrapper template files. However, this isn't designed to be overwritten as we overwrite that every time the system performs an update.

If you'd like to manually adjust those files you could add them to the exclude file that we describe at https://support.cpanel.net/hc/en-us...-How-can-I-exclude-cPanel-files-from-updates- and that will keep them from being overwritten as part of the update process.