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
htaccess extension denial
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
My mistake, I was actually thinking of the <files> and <directory> section directives
http://httpd.apache.org/docs/1.3/sections.html
http://httpd.apache.org/docs/1.3/sections.html