Previous | Next | (P-PDF) PDF Accessibility
Topic: Making PDF file password protected on website.
Conf: (P-PDF) PDF Accessibility, Msg: 136437
From: dafringe
Date: 7/18/2005 03:56 PM
Your best bet is to use a server-side language, something like vb.net.
Store your pdfs in a secret folder that is a couple of sub-folders deep. Set your folder security to protect it from prying eyes.
When someone clicks on a button to access a pdf, instead of linking them directly to the pdf, you call a vb.net application, instead.
The vb.net app uses server-side code to process the login information against a database, and if the person is authenticated, the app grabs the pdf from the secret folder and passes the bitstream of the pdf back to the browser.
That way only authorized persons can access your pdf files. And since the app executes on the server, instead of in the browser (like javascript does), the folder location of the pdf file remains secret.
I use this technique to protect images, and will be using it to protect pdfs in the future. Maybe I should start a business! ;-)
Anyway, have your programmer check out this link for more info, especially to code at the bottom:
http://www.eggheadcafe.com/articles/20011006.asp
Hope that gives you some ideas.
George