The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    107
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  2. STS Admin

    STS Admin Well-Known Member

    Joined:
    Jul 8, 2012
    Messages:
    47
    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
     
  3. craigedmonds

    craigedmonds Well-Known Member

    Joined:
    Oct 29, 2007
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Europe
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks that worked perfect!
     
  4. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Or if your IP is already in the allow list, you do not have to specifically allow yourself back in to just that port.
     
  5. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    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
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,471
    Likes Received:
    199
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Nice. Thanks, Jared!
     
Loading...

Share This Page