Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2006
    Posts
    17

    Default Password-Protect Web Root - Not Possible?

    Hi,

    I am using cPanel to password-protect a web root directory (public_html), since the site is currently in development and I don't want any visitors or the search engines to index it yet.

    After password-protecting the directory, the protection is working fine - but then when I check again the next day, the password-protection is gone.

    I have gone through the password-protection process 3 times, and each time it later removes itself. This is on a new hardened server and nobody else has access, and there isn't any other unusual activity.

    The passwd file is still in the correct .htpasswds directory, but the .htaccess is missing the Auth lines.

    I'm wondering if cPanel (or WHM) has some sort of 'dummy-protection' to stop people from accidentally password-blocking their own homepage...

    Has anybody else experienced this?

    Server is running WHM 11.15.0, cPanel 11.18.3-C21703, CENTOS Enterprise 5

    Thanks,
    Jin

  2. #2
    Member
    Join Date
    May 2002
    Posts
    27

    Default Password Protected Web Root

    Hi JinGu,

    I'm not sure if this will help. I've password protected root directories on ocassion when developing a site for a design client. One such example is:

    http://www.harlemanproducts.com

    I do it by going into the cPanel of the subject domain, then clicking on "Password Protect Directories". First, I click on the "public_html" text link (not the folder) and enter the desired message for the alert box. After this step, I create an authorized user(s) with corresponding password(s).

    I've also discovered the process works when clicking on the "/" at the root folder level and following the procedure outlined above.

    It sounds like you're doing the same thing, but I wanted to offer the steps I take just in case you may be overlooking something.

    Best wishes,

    johndoe
    if it isn't broken, break it...

  3. #3
    Member
    Join Date
    Mar 2006
    Posts
    17

    Default

    Thanks for your reply. I believe I was following the same steps, but since the last time that I attempted the password protection it seems to have finally stayed intact. I'm not sure what the problem was previously, but I'm happy that it's now working. Thanks again for offering your thoughts.

    Regards,
    Jin

Similar Threads & Tags
Similar threads

  1. Password protect a folder inside of root
    By einternet in forum Security
    Replies: 1
    Last Post: 03-17-2008, 09:55 AM
  2. Password protect web page folder
    By jdc2000 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-09-2006, 11:42 AM
  3. Password Protected Directories - How to Protect Root?
    By ckizer in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 10-26-2004, 01:21 PM
  4. How do you password protect the root directory?
    By kencl in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 04-30-2004, 04:31 AM
  5. password protect and index protect users root www directory
    By cyberspirit in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-04-2003, 01:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube