Re: Restricted access

From: Date: Thu, 14 Aug 2003 12:30:41 +0000
Subject: Re: Restricted access
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159560@lists.php.net to get a copy of this message
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


« previous php.general (#159560) next »