Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

closed as off-topic by HopelessN00b Jan 13 '15 at 20:16

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

This question appears to be off-topic because it is about working with a service provider's management interface, such as cPanel. – HopelessN00b Jan 13 '15 at 20:16
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

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