Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Password protect a directory


  • Please log in to reply

#1
Diego8

Diego8

    Member

  • Member
  • PipPipPip
  • 189 posts
I have been searching for password protecting an entire directory in my web site and found that i could do that using two files: .htaccess and .htpasswd
The problem i have is that i can't access the directory using the user and password i made up. I mean, the little window asking for the user and pwd keeps showing up.
Am i doing something wrong or is it that the server does not allow doing this?
Any help would be appreciated.

Here are both my .htaccess and .htpasswd files.

.htaccess file:

AuthUserFile /pass/.htpasswd
AuthGroupFile /dev/null
AuthName "Restricted Access"
AuthType Basic

<Limit GET>
require user test
</Limit>

.htpasswd file:

test:rHkJ3JtI2pi4.


The password is 1234 and the encryption was made at http://awtrey.com/software/htpass.php

Edited by Diego8, 19 November 2006 - 08:29 PM.

  • 0

Advertisements


#2
DKasler

DKasler

    Member

  • Member
  • PipPip
  • 34 posts

I have been searching for password protecting an entire directory in my web site and found that i could do that using two files: .htaccess and .htpasswd
The problem i have is that i can't access the directory using the user and password i made up. I mean, the little window asking for the user and pwd keeps showing up.
Am i doing something wrong or is it that the server does not allow doing this?
Any help would be appreciated.

Here are both my .htaccess and .htpasswd files.

.htaccess file:

AuthUserFile /pass/.htpasswd
AuthGroupFile /dev/null
AuthName "Restricted Access"
AuthType Basic

<Limit GET>
require user test
</Limit>

.htpasswd file:

test:rHkJ3JtI2pi4.


The password is 1234 and the encryption was made at http://awtrey.com/software/htpass.php


is the .htpasswd actuall in the /pass folder? If not you need to edit the files location in the .htaccess file.
  • 0

#3
Diego8

Diego8

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 189 posts
Today i talked with the person who owns the server and could solve the issue. The problem was that the route to reach the .htpasswd was not correct.

Edited by Diego8, 20 November 2006 - 07:36 PM.

  • 0

#4
DKasler

DKasler

    Member

  • Member
  • PipPip
  • 34 posts

Today i talked with the person who owns the server and could solve the issue. The problem was that the route to reach the .htpasswd was not correct.


Thats what I figured. Glad you got it working.
  • 0






Similar Topics

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP