# Prevent PHP execution in uploads directory
<FilesMatch "\.(php|php5|php7|php8|phtml|pl|py|jsp|asp|htm|shtml|sh|cgi)$">
    Order Deny,Allow
    Deny from all
</FilesMatch>

# Force download or display as text for unknown types
ForceType text/plain

# Only allow certain extensions
<FilesMatch "\.(jpg|jpeg|png|gif|webp|pdf|doc|docx|xls|xlsx|ppt|pptx)$">
    ForceType none
    Allow from all
</FilesMatch>

Options -Indexes
