diable directory browsing

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
jaylin
Forum Commoner
Posts: 68
Joined: Fri Nov 18, 2005 4:44 am

diable directory browsing

Post 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,
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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)
Post Reply