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.

How to password protect several directories

Discussion in 'General Discussion' started by lucaskirsch, Oct 10, 2008.

  1. lucaskirsch

    lucaskirsch Registered

    Joined:
    Oct 8, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page