# Protect library submissions directory
Options -Indexes
# Allow only specific file types
<FilesMatch "\.(pdf|doc|docx|txt|ppt|pptx|xls|xlsx|epub|mobi)$">
    Order Allow,Deny
    Allow from all
</FilesMatch>
# Deny access to all other file types
<FilesMatch "\.(php|html|js|css)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>
