Welcome to WebmasterWorld Guest from 54.198.232.79

Forum Moderators: incrediBILL

Message Too Old, No Replies

Save As Problem With htaccess Directory Protection

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

New User

10+ Year Member

joined:Apr 4, 2006
posts: 7
votes: 0


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)

Administrator from JP 

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

joined:Oct 12, 2000
posts:14763
votes: 80


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)

New User

10+ Year Member

joined:Apr 4, 2006
posts:7
votes: 0


Thank you for the reply, Bill.