Page 1 of 1

Block folder access, but not PHP include's access

Posted: Sun Apr 15, 2007 2:54 pm
by tecktalkcm0391
How can I edit the .htaccess file to block access to http://site.com/config/... tried putting this in the .htaccess file, but i get a 500 error on all pages on the site:

Code: Select all

<Directory /home/config/>
Order Deny,Allow
Deny from all
</Directory>
What can i do to block (client-side) access to the config folder (and allow PHP in there still)?

Posted: Mon Apr 16, 2007 7:46 am
by feyd
PHP doesn't attempt access though Apache unless you're using remote requests.