# .htaccess for profile photos
# Generated: 2025-10-30 14:53:53
############################################################

# Allow image files
Options -Indexes
php_flag engine off

<FilesMatch "\.(jpg|jpeg|png|gif|webp)$">
    Order Allow,Deny
    Allow from all
</FilesMatch>

# Cache images for 30 days
<IfModule mod_headers.c>
    Header set Cache-Control "max-age=2592000, public"
    Header set X-Content-Type-Options "nosniff"
</IfModule>

# Deny non-image files
<FilesMatch "\.(php|html|js|css|sh|sql)$">
    Order Deny,Allow
    Deny from all
</FilesMatch>
