Results 1 to 10 of 10

Thread: .htaccess & .htpasswd

  1. #1
    Marmoset Warrior
    Join Date
    Feb 2004
    Location
    Hastings
    Posts
    1,390
    Thanks
    3
    Thanked
    0 times in 0 posts

    .htaccess & .htpasswd

    I'm having great trouble with this

    I have placed both my .htaccess and my .htpasswd files into the directory I want to protect (this is what I have been advised by my hosts) and I get a username & password prompt, but I input the password and nothing happens, it just brings the prompt up again.

    Can anyone point me out where I am going wrong?

    Thanks,
    R1zeeK

  2. #2
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    You need to describe the steps you took to generate the two files as you have probably missed something. If the password prompt appears and won't work then it sounds like the username or password don't match what it is expecting

  3. #3
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    Is .htaccess secure? I was thinking about implementing it myself

  4. #4
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    Yes provided the user doesn't have FTP access to your site

  5. #5
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    Ah that's good then, i'll probably do that on mine Is there a prompt box then?

  6. #6
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    Prompt box ??

    Adding a .htaccess and creating the relevant .htpasswd file will automatically create a login prompt for the folder the file is located in

  7. #7
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    Ja, like prompt box as in, a login prompt, ya know what i mean

  8. #8
    Marmoset Warrior
    Join Date
    Feb 2004
    Location
    Hastings
    Posts
    1,390
    Thanks
    3
    Thanked
    0 times in 0 posts
    I have written to .htaccess file myself, here are the contents:

    Code:
    AuthUserFile /admin/.htpasswd
    AuthGroupFile /dev/null
    AuthName Admin
    AuthType Basic
    
    require user R1zeeK
    My username is R1zeeK exactly, abd /admin/ is the directory that I want to password protect. Does this shed any light on what's going on?

    Thanks,

  9. #9
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    AuthUserFile "abd/admin/.htpasswd"
    AuthName "Admin"
    AuthType Basic
    require valid-user

    Then create the .htpasswd file to match the username R1zeek by using the following page http://www.poplarware.com/cgi-bin/htpasswd.cgi.

    That way the username is in the .htpasswd file rather than the .htaccess

  10. #10
    Marmoset Warrior
    Join Date
    Feb 2004
    Location
    Hastings
    Posts
    1,390
    Thanks
    3
    Thanked
    0 times in 0 posts
    I did exactly that and the same thing still happened

    I don't know the exact path to the UserFile, does it have to be from the web root or root?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help With .htaccess
    By Vini in forum Software
    Replies: 2
    Last Post: 03-02-2004, 02:18 PM

Posting Permissions

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