URGENT : Directory structure exposed


#1

Hi Guys,
I have a security issue with my website. If I goto any directory like http://www.mydomain.com/private then I can see the full contents of the directory and then any user can traverse through my whole webiste and get any files he wants.

Please can someone help me how to avoid this? How can I secure my directory structure?

Please let me know.
Thanks


#2

Easy fix is to put an index.htm file in there. Another is to use .htaccess
http://wiki.dreamhost.com/index.php/Modifying_directory_indexes


#3

This is fairly standard, any directory without an index file will simply show the directory contense. To avoid this, one way is to just place a index file into every directory.

You can also use htaccess to control this behavior, check out this article from the wiki

-Matttail


#4

Thanks a lot Guys !!

u all rock !!