<FilesMatch “.(php|phtml|php3|php4|php5|pl|py|jsp|asp|sh|cgi)$”>
Order Deny,Allow
Deny from all
</FilesMatch>

<IfModule mod_headers.c>
    # Empêcher l'exécution de scripts dans les uploads
    Header set X-Content-Type-Options nosniff
# Cache control pour les images
<FilesMatch "\.(jpg|jpeg|png|gif|webp)$">
    Header set Cache-Control "public, max-age=31536000"
</FilesMatch>

<FilesMatch "\.(zip|exe|apk|dmg|deb)$">
    Header set Cache-Control "no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "0"
</FilesMatch>
</IfModule>

Options -Indexes

LimitRequestBody 524288000

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
