Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Thanked 0 Times in 0 Posts

    .htaccess help newbie

    Im trying to setup pass protection on a website with .htaccess. I get the popup login/pass window but when I enter the 1 login/pass combo I have in my .htpasswd file, it acts like its an incorrect login. It just keeps prompting me for the password. Finally get an unauthorized error from server. I know I have the path to the .htpasswd set right. Could it be how the password is being encrypted?

  2. #2
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Los Angeles, CA Maxim: Subvert Society
    Thanked 0 Times in 0 Posts
    Did you actually encrypt/hash the password?

    Also note that going to your password protected URL with or without the WWW can often cause you to have to enter it twice, depending on the server configuration.

    The fact that you are getting an authorization challenge at all means you are working, it is just a matter of finding out what is wrong with the user.

    Also, in your htaccess, are you using require valid-user (which works for anybody in the htpasswd), or require username for individual user access only?
    Moderator, Perl/CGI Forum
    shadowstorm.net - subvert society


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts