Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Denying access with .htaccess

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How do I deny directory listing of certain directories?
ex
My webpage is in
C:\webpagethe webserver is in
C:\webpage\apacheI dont want people snooping in my apache directory =) (or my perl mysql php)

I want to do this with .htaccess files not my conf
 
Hello,

Another solution for you to not allow directory browsing would be to change permisions on your directories you don't want viewable to 711

Just a sugestion..
 
Hi,

The options directive that controls listing of directories (ftp style) is Indexes. If you have that on globally in httpd.conf (i.e. as part of an 'options' line like :

Options Indexes FollowSymLinks MultiViews

)

...you can either turn it off globally or you can add an Options directive in a <Directory> container or .htaccess file that turns it off :

Options -Indexes

That says remove Indexes from the existing options settings in the current context, i.e. directory or whatever.

Hope this helps


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top