Options -Indexes
Order Deny,Allow
Deny from all
<FilesMatch "\.(jpg|jpeg|png|gif|webp)$">
    Allow from all
</FilesMatch>