Re: [PHP] Restrict where PHP is Usable?
Hi, Take a look at the ScriptAlias directive of the Apache webserver. I'm not sure how other webservers limit execution, but apache does it using that directive. http://httpd.apache.org/docs/ http://httpd.apache.org/docs/misc/security_tips.html http://httpd.apache.org/docs/vhosts/mass.html Hope that helps. = * Know more about me: http://www.geocities.com/mimodit * __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Restrict where PHP is Usable?
I've seen this done before on servers, but I'm not sure how to do it. Is there a way to restrict PHP to certain directories, so that it can only be used by files within those directories? For example: I'm starting a web page hosting service, and I'd like to make it so that most users can't use PHP. They'll have to pay a (very small) monthly fee to have access to it. This is partly as a very loose security measure, so that not everyone has access to PHP. -- Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.282 / Virus Database: 150 - Release Date: 9/25/2001