Page 1 of 1

htaccess & 403

Posted: Sat Nov 19, 2005 4:30 pm
by illuminationed
Hi !!

Can Anyone tell me wot to add to a .htaccess file to forbid access to a directory (403)

Thanks

Posted: Sat Nov 19, 2005 4:35 pm
by php3ch0
do you mean adding password protection to a directory. If so check out this link

http://www.e2.u-net.com/htaccess/make.htm

It will work out what you need to add to the .htaccess file.

Posted: Sat Nov 19, 2005 4:36 pm
by Chris Corbyn

Code: Select all

<Directory "/absolute/path/here">
    Order allow, deny
    Deny from all
</Directory>