# Prevent direct execution of uploaded files
<FilesMatch "\.(php|php5|phtml|phps)$">
    Deny from all
</FilesMatch>

# Allow only specific file types
<FilesMatch "\.(pdf|doc|docx|xls|xlsx|ppt|pptx|txt|jpg|jpeg|png|gif|mp4|mp3|wav)$">
    Allow from all
</FilesMatch>