.htaccess with apache2

Darrin Chandler dwchandler at stilyagin.com
Tue May 23 16:19:56 MST 2006


On Tue, May 23, 2006 at 04:14:38PM -0700, Miles Beck wrote:
> I have a file I would like to put up on my web server. But I would
> also like to password protect the file so that only myself can view
> it. This is a list of links I have organized into a html document. I'd
> like this to be accessible from my server so I can maintain it in one
> place.
> 
> The problem is I have never been able to figure out .htaccess and
> refreshing or reloading the file will prompt for the password again.
> 
> Is there a way to password protect it and also use a session id? This
> way I would not have to enter the password everytime I want to reload
> the file.
> 
> I looked at pages.google.com but you have to publish the file to it
> can then be seen by everyone.

Sounds like you've figured it all out except for the refresh part.
Right?

Make your bookmark something like
http://user:pass@www.domain.com/secret.html and you should be able to go
there directly or refresh without a password. Unless you're worried
about someone filching the password from your bookmarks...

-- 
Darrin Chandler            |  Phoenix BSD Users Group
dwchandler at stilyagin.com   |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/  |


More information about the PLUG-discuss mailing list