View Single Post
  #4 (permalink)  
Old October 17th, 2005, 01:41 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

You can't hide the link to the file directly; after all the browser needs to know which fie to download.

You could clear the status bar when the mouse hovers over the link so you can't directly see what file it is linking to. However, a simple right-click on the link, or View Source will reveal the link anyways.....

A better alternative might be to have a generic download page, like Download.asp that accepts the Id of a file users can download. Inside that file, look at the Id, find the related file and stream it to a browser. Take a look here for some ideas on how to do this:


This still doesn't really hide the file name though. Download.asp?Id=123 will always get you the same file though....

Imar Spaanjaars
Everyone is unique, except for me.