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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

protecting a folder containing .doc and .pdf, etc.

Status
Not open for further replies.

mechro99

Programmer
Nov 27, 2001
54
US
Hello,

While I know how to show/hide links to documents on an asp page using if/then statements and a list of authorized users, I'm at a loss as to how you protect the documents themselves if an unauthorized user should happen to learn the url of a word document or a PDF.

Can anyone make suggestions on how to make sure all of the contents of a folder is protected, in the event that the above situation should occur?
 
you could store the documents in SQL Server instead of on your server and serve the documents from your database.
 
Alternately, use something like below to let users download a file, rather than providing a direct link to the file:
Downloading any file using ASP, FSO and the ADODB Stream object

Then, make sure that the user is autorized before allowing that code to run.
 
Thank you both. This sounds like something I could use, guitarzan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top