There is no way by coding. Your prob is related to host setting. Find the setting so that user can't directly access the file.
Do you use ASP.NET hosting? If yes you can trick like: Put the file in special folder. set the ASP.NET access rule to the folder so that only logged in user can access the folder. (recommended) Another way, try use URL mapping, the ~/orders/9May2009.xls will map to ~/orders/75874392748374/9May2009.xls (wrong dummy location). User might see 404 file not found. On May 11, 2:04 pm, jack me <[email protected]> wrote: > Thanks a lot, Sorry i did not mention i need this with coding. > > On Sun, May 10, 2009 at 1:11 AM, anna simookhin > <[email protected]>wrote: > > > in your host configuration, search an option like "deny direct access to > > files" and check it. it will deny direct access to your files by browsing.
