How you disable directory browsing depends on the server that you are using. I can tell you that for
Tomcat 4.1 you want to go to the web.xml file in $CATALINA_HOME/conf. In there you will an entry for the default
servlet:
Just change the value of the listings init-param to false.
I hope this helps,
Mark