# Prevent PHP execution inside the uploads folder
Options -Indexes -ExecCGI

<IfModule mod_php.c>
    php_flag engine off
</IfModule>

<IfModule mod_php8.c>
    php_flag engine off
</IfModule>

# Only allow image file types
<FilesMatch "(?i)\.(php|php\d|phtml|phar|cgi|pl|py|asp|aspx|sh|bat|exe)$">
    Require all denied
</FilesMatch>
