Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Password protect directory won't work

Discussion in 'General Discussion' started by Canned_Heat, Mar 4, 2004.

  1. Canned_Heat

    Canned_Heat Member

    Oct 8, 2003
    Likes Received:
    Trophy Points:
    I want to password protect a directory and give access to many users.

    I previously asked if there was a way to upload a list of usernames and passwords as opposed to manually entering each name/pass but did not get an answer.

    So another question: is it possible to password protect a directory with a perl script that uses a standard ascii file to contain the usernames and passwords? I realize this may be a little insecure, but may be the only answer.

    Can you recommend a script?

  2. chirpy

    chirpy Well-Known Member Verifed Vendor

    Jun 15, 2002
    Likes Received:
    Trophy Points:
    Go on, have a guess
    The passwords that are stored in a .htpasswd file which relates to the .htaccess file are one way encrypted using the crypt() function. You cannot use clear-text passwords. So, you need a program that will generate the encrypted passwords for you - you might as well use the inbuilt cPanel Web Protect for that, otherwise you need to search on somewhere like:

    Or get a PHP/Perl/etc programmer to write one for you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice