Forum Moderators: phranque

Message Too Old, No Replies

Creating a login form for a .htaccess protected directory

         

Synthetic

11:52 pm on Jan 20, 2004 (gmt 0)

10+ Year Member



How would I go about creating a login form on my website for users to enter a .htaccess protected directory?

I'm sure this is possible, I'm just not sure how to do it.

hakre

5:20 pm on Jan 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



have you checked out one of the following directives?:

AuthType Basic
AuthName "[i]Realm[/i]"
AuthUserFile [i]passwordfile[/i]
require valid-user

if you use this 'as is' it will create a login-box, but makes no sense, because the passwordfile won't be found. but for a first step this information might help you.

-hakre

jdMorgan

6:32 pm on Jan 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Synthetic,

Here's a good place to start, too: Apache Authentication, Authorization, and Access Control [httpd.apache.org].

Jim