Results 1 to 2 of 2

Thread: How to password protect several directories

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    1

    Question How to password protect several directories

    I need to protect several directories. cPanel allows me to do this by manually viewing each directory and set up the protection. But this is quite a hassle because I don't want to protect just one or two directories, but many.

    Does anyone know if cPanel has a feature I could use to speed things up? I imagine something like a batch file in which I enter the directory path and the passwords.
    It doesn't matter if all directories have the same password or different ones.

    Thank you!

    Best Regards,

    Sandra Erb

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by lucaskirsch View Post
    I need to protect several directories. cPanel allows me to do this by manually viewing each directory and set up the protection. But this is quite a hassle because I don't want to protect just one or two directories, but many.

    Does anyone know if cPanel has a feature I could use to speed things up? I imagine something like a batch file in which I enter the directory path and the passwords.
    It doesn't matter if all directories have the same password or different ones.

    Thank you!

    Best Regards,

    Sandra Erb
    This cPanel functionality is merely a frontend for .htaccess. If you are familiar with .htaccess files, just have the .htaccess file point to a centralized htpasswd file and copy the .htaccess file as needed, making any necessary modifications along the way.

Similar Threads

  1. Replies: 10
    Last Post: 06-24-2010, 12:12 PM
  2. Password Protect Directories
    By Jump Network in forum Security
    Replies: 2
    Last Post: 07-07-2008, 10:09 AM
  3. Password Protect Directories
    By wwwnz in forum New User Questions
    Replies: 14
    Last Post: 07-04-2008, 09:35 AM
  4. Password protect directories
    By bpmod in forum cPanel & WHM Discussions
    Replies: 7
    Last Post: 10-04-2006, 11:46 PM
  5. Password protect directories
    By futuron in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 01-10-2005, 11:11 PM