Yes, put the files outside of web root or protect them using .htaccess file. After authorization use readfile90 to serve the file. There are lots of tutorials on authentization and if you are using some CMS you might have all you need.

Ciprian Trofin wrote:

Hi All,

I want to give access to resources (PDFs and some RTFs) only to registered
users and I also want to deny that kind of access to people that "guess"
the URL. I guess it is all about putting these files outside the web-tree
and somehow putting PHP to work.

Could you enlighten me ? :))

--
Thnx,
Cip




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to