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.

Disabling cPanel interface access EasyApache 4

Discussion in 'Security' started by Kevin Ho, Jun 5, 2017.

  1. Kevin Ho

    Kevin Ho Registered

    Joined:
    Jun 5, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    Hello,
    We are trying to completely disable access to cPanel/WHM/Mail on clients' accounts.
    There's a few older topics with instructions that we followed:
    Rename /cpanel or /WHM become /newname and here:
    I want /webmail gone!
    but it looks the procedure is different with EasyApache 4, as it does not support
    apache_conf_distiller script.
    Any help with this would be greatly appreciated, thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Would you like to only disable access to the /cpanel, /whm, and /webmail links, or would you like to completely block access to cPanel and Web Host Manager? To completely block access, you can use the Host Access Control feature documented at:

    Host Access Control - Documentation - cPanel Documentation

    Thank you.
     
  3. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    982
    Likes Received:
    75
    Trophy Points:
    78
    cPanel Access Level:
    DataCenter Provider
    I would think that rather than messing with the apache config, it would be easiest to just close the ports for those services in your firewall, and whitelist your own IPs to access them.
     
  4. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,399
    Likes Received:
    52
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    There is no need to play with the firewall in the first place. What Michael said is the appropriate way to deal with this. You just have to deny access for all and allow access only to certain IPs if you required, otherwise, you can disable the access for any service you like. The hostaccess is the traditional TCP wrapper thing that uses hosts.allow in the backend..
     
Loading...

Share This Page