in reply to Protecting a PDF file

I'm not familiar with the script you mentioned, but if you're using Apache, can you configure it in there? Although I didn't set it up myself, that's how we are doing something similar on our intranet.