Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

turn off cpanel login pages

Discussion in 'General Discussion' started by craigedmonds, Jan 11, 2013.

  1. craigedmonds

    craigedmonds Well-Known Member

    Joined:
    Oct 29, 2007
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Europe
    cPanel Access Level:
    Root Administrator
    Twitter:
    I would like to turn off the cpanel login pages for outside users, ie lock it down so that only whitelisted ip addresses can access.

    I know there is a way to disable access to the WHM login through HOST ACCESS, but I am not clear on how to do it for the actual cpanel pages.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. STS Admin

    STS Admin Well-Known Member

    Joined:
    Jul 8, 2012
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    cPanel Access Level:
    Root Administrator
    You can try CSF firewall. Block the cPanel ports in it and allow access only from your IP's.

    Put the below lines in /etc/csf/csf.allow

    # Advanced port+ip filtering allowed with the following format
    # tcp/udp:in/out:s/d=port:s/d=ip

    tcp:in:d=2082:s=YOUR_IP
    tcp:in:d=2083:s=YOUR_IP
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. craigedmonds

    craigedmonds Well-Known Member

    Joined:
    Oct 29, 2007
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Europe
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks that worked perfect!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    215
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    Or if your IP is already in the allow list, you do not have to specifically allow yourself back in to just that port.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelJared

    cPanelJared Technical Analyst

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    20
    Trophy Points:
    143
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You can allow/disallow access to cPanel by IP address using Home » Security Center » Host Access Control, just like allowing/disallowing access to the WebHost Manager. The only difference is, you will use cpaneld for the daemon name instead of whostmgrd. Similarly, you can use the webmaild daemon name to allow/disallow access to Webmail.

    I recently helped our documentation team rewrite the documentation for this feature, with a list of the daemon names you can use:

    Host Access Control - cPanel Documentation
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Nice. Thanks, Jared!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice