Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    12

    Default .htaccess to restrict Cpanel/WHM access

    Hi,

    After having my server hacked last week or so, I;ve been paranoid when it comes to closing all possible access points to the server.

    Anyone know how to setup a .htaccess file so that only certain IPs or subnets are allowed to access the panels?

    Thanks!!

  2. #2
    Registered User
    Join Date
    Dec 2010
    Posts
    1

    Default Re: .htaccess to restrict Cpanel/WHM access

    any ideas ?

  3. #3
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,033

    Default Re: .htaccess to restrict Cpanel/WHM access

    This thread is almost seven (7) years old, so it is unlikely that the original poster still needs help with this question, but there is no need to create a .htaccess file to restrict access to the WebHost Manager or cPanel. Instead, you can use Main >> Security Center >> Host Access Control in the WebHost Manager.

    cpsrvd is the daemon that provides access to cPanel and the WHM, and webmaild is the daemon that provides access to Webmail, so you can use these settings to restrict access to certain portions of the interface, as well as to SSH.

    Please use caution with this configuration. If you access the Internet through a service that uses dynamic IP addresses, your IP address could change without warning and leave you without access to your server. It is best to allow access to more than one IP address or range of IP addresses, to leave you at least one other option to access the server should your normal workstation's IP address change.

    You may find the following section in our documentation to be helpful:

    Host Access Control
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

Similar Threads & Tags
Similar threads

  1. .htaccess to restrict Cpanel/WHM access
    By bwwt in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-30-2010, 03:26 AM
  2. Restrict WHM Access by IP
    By LGRCompEnt in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 09-11-2010, 07:42 AM
  3. Restrict WHM access
    By vajjra in forum Security
    Replies: 0
    Last Post: 01-26-2010, 02:32 PM
  4. WHM Restrict Access
    By grayloon in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-31-2009, 10:10 AM
  5. Restrict access to WHM
    By kardukov in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-03-2003, 01:56 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube