Discussion Locked

Members signup and authentication

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need to add a members only area to my site, primarily to limit access to PDF documents. There are lots of scripts out there, that work well enough, but they require inserting a script at the head of the document you wish to protect - obviously I can't do this for PDF doc's.

Does anyone know of a free/cheap set of scripts (preferably PHP/mySQL) that will allow members to sign-up and provide authentication and protection for PDF docs?

1 reply

by brent_d

well if you were in the windows enviroment you could just set file permissions and use windows authentication.

But since your probably not in the windows enviroment, I would limit the PDF file access to the system account(if linux has one). Then make a form authentication system and instead of linking directly to the PDF make a handler page that spits out the pdf. if you know anything about the headers of a request, you could use Content-Disposition to force the document to be send using a pdf request. But I would not recommend going this route unless you are very familiar with asp/php and headers.

This discussion is closed to new replies.