Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    North East England
    Posts
    853
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .htaccess | .htpasswd - problems

    I'm having a problem with this, the .htaccess located in the directory I want to protect calls the login box but when u/name and p/word are inserted it fails.


    AuthUserFile /data/web/_r/_o/_b/robotguru.com/.htpasswd
    AuthGroupFile /dev/null
    AuthName EnterPassword
    AuthType Basic

    require user username


    And in the .htpasswd file:


    usernameassword
    [+] Computer/PC issues [+] Silverpaw3D
    ------------------------------------------------
    Never buy a dwarf with learning disabilities...

    ...it's not big, and it's not clever.

  • #2
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Location
    Los Angeles, CA Maxim: Subvert Society
    Posts
    404
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm, that should work...a better method would be to switch out your require with

    <Limit GET>
    require user username
    </Limit>

    or if you need multiple types of password challenges replace GET with GET POST PUT.

    Did you crypt the password properly?

    Is the path to htpasswd a valid server path? Well, obviously it is if you are getting the challenge...

    Have you tried only doing a require valid-user instead of trying to limit to a certain user?
    Moderator, Perl/CGI Forum
    shadowstorm.net - subvert society

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    North East England
    Posts
    853
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Got it working now, went through the different options, ended up with the original method and it worked fine.
    [+] Computer/PC issues [+] Silverpaw3D
    ------------------------------------------------
    Never buy a dwarf with learning disabilities...

    ...it's not big, and it's not clever.


  •  

    Posting Permissions

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