Hello!
I am trying to create a members only area on a website. I’m using PHP to log them in. I have a page that contains links to PDF documents stored in another directory. When they are logged in, the links appear. Otherwise they get a limited number of other links.
What I need to know is how to I prevent people from bypassing the page of links and going directly to the PDF. I can’t use .htaccess to password protect the directory because I have hundereds of users that are constantly expanding and changing.
Is there a way to allow linking to a file in a directory buy not direct access to the files in the directory? I have seen a way to do with with htaccess and allowing only requests with referrers I choose, but this doesn’t work on IE and I have limited control on the hosting server.
Is my only solution to convert all the PDFs to html then protect them with php?
Thanks for the help!!