Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP