View Full Version : Apache2 Deny Access to Directory
rowanparker
11-17-2005, 04:47 PM
I am running WinXP and Apache2, and would like to stop all users from accessing a certain folder. Would i use the httpd.conf or .htaccess? and how would i do it?
darksidepuffin
11-18-2005, 05:38 PM
httpd.conf:
<Directory />
Order Deny,Allow
Deny from all
</Directory>
change / to the directory you want to protect.
For more information see: http://httpd.apache.org/docs/2.0/mod/core.html#directory
rowanparker
11-18-2005, 05:44 PM
thanks, but i used .htaccess instead as i found this easier.
RetroGamer1991
02-12-2006, 02:42 PM
how do u block just 2 file types with that command?
i want to block .inc, and .dat files
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.