Options -Indexes
<Files ~ '.*\..*'>
Order Allow,Deny
Deny from all
</Files>
<FilesMatch '\.(pdf|png|jpg|jpeg|jpe)$'>
Order Deny,Allow
Allow from all
</FilesMatch>