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

Restricting viewing of a PDF file, when specific address is known

Status
Not open for further replies.

Dynapen

Programmer
Apr 20, 2000
245
US
I have a web page, that in part displays a PDF file. That file is brought up in it's own page after the user inserts some specific information about the PDF file he wishes to view. The problem is that one the file is brought up, and the URL path of it is displayed, the user can go back into that same PDF withouth logging into the system again, but typing in the exact address of the PDF file. This means, as long as the address is known, there is no security on the file.

I need to find a why to write some script, hopefully in ASP or Javascript that will allow me to control someone access the PDF in this format. Pretty much any option suggested can be done..

Thanks in advance
 
I've seen people put the file in a directory, whose name is an encrypted version of the current date. Every 24 hours the directory is renamed to the next day's value.

Chip H.
 
Another option is to store the PDF inside a database as a blob, then you can only access the file through the page, the file itself dosn't exist in the directory listing just inside the database.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top