Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Save As Problem With htaccess Directory Protection



10:57 pm on Mar 25, 2008 (gmt 0)

5+ Year Member

I have a web site that uses HTAccess to protect files from unauthenticated site visitors. The content is in a protected directory, but the pages that have the links to that protected content are publicly available. When I just click on a link before logging in, the authentication dialog appears as expected. However, before logging in, when I right click on the same link and select Save Link As, the authentication dialog does not appear. Instead, the Save As dialog appears and when I try to save the files (which can be fairly large), the Downloads window appears a shows a very fast download. If I open the file with a text editor it says inside that I have to authenticate to before I can get the file I want.

If, before authenticating, I try to download a file with Safari, IE and Opera, I get the expected behaviour: Authentication dialog appears, I log in, then the download starts.

Am I missing something or this this a Firefox issue?


2:58 am on Mar 26, 2008 (gmt 0)

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

It sounds like you're just saving the link in FF. As you say it's not downloading the actual content without authentication.


3:34 pm on Mar 26, 2008 (gmt 0)

5+ Year Member

Thank you for the reply, Bill.

Featured Threads

Hot Threads This Week

Hot Threads This Month