# Deny access to .json files
<Files "*.json">
    Order allow,deny
    Deny from all
</Files>

# Allow access to PHP files
<FilesMatch "\.(php)$">
    Order allow,deny
    Allow from all
</FilesMatch>

# Enable directory browsing for uploads folder
Options +Indexes

# Set proper MIME types
AddType image/jpeg .jpg .jpeg
AddType image/png .png
AddType image/gif .gif
AddType image/webp .webp
AddType application/pdf .pdf
AddType application/zip .zip
