Report question

Question: Using htaccess, how to restrict seeing directory contents, but allow server to use the contents?