htaccess extension denial

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Mohammad
Forum Newbie
Posts: 24
Joined: Tue Jul 26, 2005 5:31 am

htaccess extension denial

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I would imagine a <Filter> directive would take care of it.
Mohammad
Forum Newbie
Posts: 24
Joined: Tue Jul 26, 2005 5:31 am

Post by Mohammad »

Can anyone elaborate more on this?? give some examples?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

My mistake, I was actually thinking of the <files> and <directory> section directives

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