Page 1 of 1

diable directory browsing

Posted: Mon Apr 03, 2006 12:49 am
by jaylin
i now using apache as web server. i want to disable directory browsing for my website. how can i do for that? although i saw many articles, ways from google, when i applied, it does nothing. so, plz help me
regards,

Posted: Mon Apr 03, 2006 12:52 am
by John Cartwright
Hrmm, you could possibly use an htaccess file to prevent it..

an easier method would be to create a blank index.html file and place it in each directory.

Posted: Mon Apr 03, 2006 2:39 am
by timvw
I use the security infrastructure of my filesystem. The webserver runs as nobody:services so she ends up in my other group and i simply don't give that group the rights to read my directory contents.

I've found it a major pita to maintain access rights when i'm constantly uploading files, etc... So i have written a chmoder.txt script that takes care of it for me (lazy as i am :p)