URGENT : Directory structure exposed

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.

Easy fix is to put an index.htm file in there. Another is to use .htaccess

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


Thanks a lot Guys !!

u all rock !!