Page 1 of 1

htaccess extension denial

Posted: Thu Aug 10, 2006 12:03 pm
by Mohammad
Hello

I would like to restrict certain file extensions to be viewed from the user accessing my web page, what code should be added to the htaccess file if I want no one to access .conf file extension for example.

and what should be the proper chmod of the files such as configurations file to restrict their access.

Thanks in advance,
Mohammad

Posted: Thu Aug 10, 2006 1:10 pm
by feyd
I would imagine a <Filter> directive would take care of it.

Posted: Fri Aug 11, 2006 4:07 pm
by Mohammad
Can anyone elaborate more on this?? give some examples?

Posted: Fri Aug 11, 2006 5:06 pm
by feyd
My mistake, I was actually thinking of the <files> and <directory> section directives

http://httpd.apache.org/docs/1.3/sections.html