Files

15 lines
301 B
ApacheConf
Raw Permalink Normal View History

# Protect uploads directory
Options -Indexes
# Allow only image files
<FilesMatch "\.(jpg|jpeg|png|gif|webp)$">
Order Allow,Deny
Allow from all
</FilesMatch>
# Deny all other file types
<FilesMatch "^(?!.*\.(jpg|jpeg|png|gif|webp)$).*$">
Order Deny,Allow
Deny from all
</FilesMatch>