# Dossier d'images envoyées : aucun script ne doit pouvoir s'y exécuter
Options -Indexes -ExecCGI
RemoveHandler .php .phtml .php3 .php4 .php5 .php7 .php8 .phar .cgi .pl .py
RemoveType .php .phtml .php3 .php4 .php5 .php7 .php8 .phar
<FilesMatch "\.(?i:php\d*|phtml|phar|cgi|pl|py|sh|html?|svg|js)$">
  Require all denied
</FilesMatch>
<FilesMatch "\.(?i:webp|jpe?g|png|gif)$">
  <IfModule mod_headers.c>
    Header set X-Content-Type-Options "nosniff"
    Header set Cache-Control "public, max-age=31536000, immutable"
  </IfModule>
</FilesMatch>
<IfModule mod_php.c>
  php_flag engine off
</IfModule>
