# Protect uploads directory
# Only allow image files to be accessed directly

<FilesMatch "\.(php|php3|php4|php5|phtml|pl|py|jsp|asp|sh|cgi)$">
    Order allow,deny
    Deny from all
</FilesMatch>

# Allow only images
<FilesMatch "\.(jpg|jpeg|png|gif|svg|webp)$">
    Order allow,deny
    Allow from all
</FilesMatch>

# Prevent directory listing
Options -Indexes
