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.

Password protect directory won't work

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

  1. Canned_Heat

    Canned_Heat Member

    Joined:
    Oct 8, 2003
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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?

    Thx,
    CH
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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:

    http://www.hotscripts.com

    Or get a PHP/Perl/etc programmer to write one for you.
     
Loading...

Share This Page