Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to only allow access to Cpanel/WHM to certain IP's? I know how to do it for standard folders, but I don't believe that will work for this purpose as they are on different ports or something & don't exist in the standard directory structure.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Yes, using Host Access Control which is part of cPanel.

For example:

Daemon      Access List  Action  Comment
cpaneld      allow   Allow cPanel from my specific IP
cpaneld     ALL          deny    Deny access from all other IPs
share|improve this answer
Thanks. I have just been having a dig around WHM & found the Configure Security Policies section & something about "Limit logins to verified IP Addresses" - any idea if that's basically the same thing? –  Brett Mar 10 '13 at 17:25

In apache2 configuration

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
    Order Deny,Allow
    Allow from IP.AD.DR.ESS
    Deny from All

Then restart apache2

share|improve this answer
What does phpmyadmin have to do with cpanel/whm? –  Brett Mar 10 '13 at 17:34
Oops my bad. a VirtualHost container has a directory statement. It is within this area you can ALLOW or DENY by IP address. But i see CPanel provides a means to do this without having to edit configuration files manually. –  CodeCryptor Mar 10 '13 at 18:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.