PDA

View Full Version : problems p*ssword protecting directory


dhard
11-17-01, 10:48 PM
I have put the .httaccess file in a directory called secure. Put the password file in a directory called lock. The user authentication box comes up and asks for a user name and password but it does not take my user name or password and fails to connect with the page I am trying to open. It says that the user could not be authenticated. I used notepad to build the files and changed the security level to 755. I have also tried changing AuthUserFile to about 10 different combinations.

This is my .htaccess file :


AuthUserFile /www/h/hardisty/htdocs/lock/.htpasswd
AuthName "Restricted Area"
AuthType Basic

<Limit GET POST PUT>
require user put_in_a_username_here
</Limit>


This is my .htpasswd file: (user: dh and passwd: dh


dh:F5OUBqi1WhjrU



Thanks for your help!

Dustin

Starr
11-18-01, 03:01 AM
Powweb does not support password protected directories.

This is covered w/in our FAQ section under "Pre Sales Questions".

Steve Bird
11-29-01, 10:56 PM
My site requires security - I can't allow one customer (or the public) to see another customer's proposals, billing statements, software, etc.

I do it with secret directories:
If the project number is AB01CD01, I create a directory called AB01CD01X75ggT413xx13 or something (random characters), and put that customer's files in there.
Then I give that URL to the customer. There are no links to it from the public side. The client can bookmark it, if desired.
It's not without risks (If a client prints a document, the URL likely appears on the page), but I warn them about that.

delvedesigns
11-30-01, 01:43 AM
or you can use a database for relative security

Jeff321
12-8-01, 05:57 AM
I have a protected directory and it works just fine. I use a password-protector script that lets me add the standard user/pass protection for any directory of my site. If you would like the script, PM me.