Skip to main content
We are aware of an issue after updating to cPanel versions 11.110.0.65, 11.126.0.21, or 11.128.0.11, some cPanel plugins or features are no longer functioning properly including WP Toolkit. Presently, updates for releases are temporarily disabled while we continue working on a solution for the missing addon features directory. Please see the following article for more information and updates:
Update to latest cPanel 110, 126, or 128 versions removes "addonfeatures" directory.

Block access to whm.domain.com and cpanel.domain.com

Comments

14 comments

  • quietFinn
    /scripts/proxydomains --subdomain=whm remove

    and

    /scripts/proxydomains --subdomain=cpanel remove

    https://support.cpanel.net/hc/en-us/articles/4405754485527-How-to-remove-service-subdomains-WHM-cPanel-Webmail-Webdisk

     

    1
  • milo695

    Thanks mate

    0
  • Simon Blackburn

    Is there a way to block access to WHM subdomain AND port 2087 except for a certain domain.

    I have several domains on my cPanel and they can all access WHM via 2087 if they had the root credentials. I have set up a random domain such as kabcbcldnbeinsbxhdj.com and I want this to be the only domain to be able to access port 2087 or WHM as a subdomain.

    0
  • quietFinn

    Anyone can access WHM using any of the domains in that server or the server's IP address.

    "if they had the root credentials"?

    It like asking "how to prevent people from coming to my home if they have my keys?"

    I'd suggest to use 2FA:
    https://docs.cpanel.net/cpanel/security/two-factor-authentication-for-cpanel/

     

    0
  • Simon Blackburn

    Ok. You can tell I’m new.

    Is there a way of only allowing access to WHM or 2086/2087 from only my ip address while blocking it from absolutely any other ip address?

    0
  • Simon Blackburn

    I tried that. I set deny to ALL and accept to my Macs IP address but I could still access WHM on my mobile that was using mobile data.

    0
  • cPRex Jurassic Moderator

    Did you ensure the deny rule was placed after the allow rules?

     

    0
  • Simon Blackburn

    Yes, exactly as it shows in the cpanel documentation

    0
  • cPRex Jurassic Moderator

    This is one of the core functions of cPanel that "just works" so if that isn't working as expected it would be best to create a ticket so this can be investigated.

    0
  • Simon Blackburn

    I've just restarted my server and it does appear to be blocking access via port 2087. That's part one sorted.
    How can I block access to whm.mydomain.com from all IP addresses except mine?

    0
  • cPRex Jurassic Moderator

    There isn't going to be a way to do that portion besides removing the proxy domain.

    0
  • Simon Blackburn

    Could I go to my cpanel and create the sub domain whm.mydomain.com and redirect it my domain.com?

    0
  • cPRex Jurassic Moderator

    You could do that after the proxy domains were removed, but if you try it before it will conflict with those proxy service domains.

    0

Please sign in to leave a comment.