PDA

View Full Version : password protect


Tjobbe
February 13th, 2005, 19:48
I know its possible to protect directories with .htaccess, so that when you request access to that directory, a windows login box pops up.

Is it possible, by using a form on a previous page, to post the username and password thus over-riding the windows login box?

I just want to try and get away with a custom solution if iuts as simple as making a little form.

sonicgroup
February 13th, 2005, 20:45
I don't think you can because forms post to a file. Maybe it would be better to integrate some sort of PHP login/access scheme?

Tjobbe
February 13th, 2005, 20:49
thats fine - i wasnt sure if you could use some sort of php to submit the login data to the pop-up box or not. never mind - a custom jobby it is!

Anoop
February 13th, 2005, 21:17
Hey Tjobbe

Please check this,
http://www.sitepoint.com/forums/archive/index.php/t-153595.html

Digiscape
February 13th, 2005, 22:32
Please check this,
http://www.sitepoint.com/forums/archive/index.php/t-153595.html

Using the format htp://user:pass@domain.com no longer works in IE6, since a security update a few months back

Regards
Jason

Tjobbe
February 13th, 2005, 23:01
thanks Anoop for the link and digiscape for the heads-up!