Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Secure a specific file types

Status
Not open for further replies.

fmrock

Programmer
Sep 5, 2006
510
US
I have a password protected site. On this site there are 2 types of files that I have links to. PDF and TIFF.

I have a special Java applet that to view the tiffs and a link to the PDF files.

Is there anyway to secure the files so you cant just browse to them if you know the file path and you have to be logged into the website.

I know I could put them below the web root and stream them back to the end user but that would be allot of code changes.
 
Hi Fmrock,

As far as I know there is no other way of doing this as web folders as it is you can't manage NTFS security in the same way that you would do otherwise.

The advantage of having a separate script to stream the file is that you can put in some script to log the download as well as querying a database to see if the user is allowed to download the file in question.

Thanks

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top