cfgcjm Posted March 18, 2008 Share Posted March 18, 2008 Hi everyone, I'm not sure at all how to do this so i figured I'd ask...I have a portal that is secured using php. The organization whose website it is sends out a newsletter to it's members and wants to make it available in the portal. It is currently a pdf. Is there a way to secure a pdf so that a user must be logged in to view it? The pdf would always just be sitting on the server so i don't know how to do this. Unless someone has an easy way of doing it, converting to HTML is not an option. There is far too much formatting in the document. Thanks for your help! Link to comment https://forums.phpfreaks.com/topic/96703-securing-pdf/ Share on other sites More sharing options...
trq Posted March 18, 2008 Share Posted March 18, 2008 You need to place the pdf's within a directory either outside of the web root, or locked down via .htaccess. You can then use a php script to serv up the pdf's to logged in users. Theres a force download script in the FAQ/Code Snippet.. board that should get you started. Link to comment https://forums.phpfreaks.com/topic/96703-securing-pdf/#findComment-494853 Share on other sites More sharing options...
cfgcjm Posted March 18, 2008 Author Share Posted March 18, 2008 thanks! i'll take a look Link to comment https://forums.phpfreaks.com/topic/96703-securing-pdf/#findComment-494857 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.