bradabell Posted December 16, 2006 Share Posted December 16, 2006 Ok first of all I just started learning php today. I created php files to protect a page. However I am not sure how to protect pdf documents from being directly accessed if you have the exact path. Any suggestions? Thanks so much~Brad Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted December 16, 2006 Share Posted December 16, 2006 You would have to place the PDF documents in a directory that is not web-accessible. The method to access them would then be a through a php script that opens the file and passes the content through to the user. Quote Link to comment Share on other sites More sharing options...
bradabell Posted December 16, 2006 Author Share Posted December 16, 2006 hey roopurt18,Thanks! However I am kind of confused...If i post the files do you think you can help me a lil to guide me through it?Thanks~Brad Quote Link to comment Share on other sites More sharing options...
Hypnos Posted December 16, 2006 Share Posted December 16, 2006 Put the PDF files in a directory that isn't public, and have them fed through a PHP script, if the POST/cookie/session/referer/whatever is what it should be. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.