Init Git Prod Mars 2026

This commit is contained in:
Oleg Barykin committed 2026-03-05 10:25:39 +01:00
commit d81efe93b1
362 files changed
+86627

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
# --- Bloquer l’exécution & l’index de dossier ---
Options -Indexes
# (FPM : pas besoin de php_flag engine off)
# --- Bloquer toute URL qui contient ".php" même en double extension (ex: .php.jpg) ---
RewriteEngine On
RewriteCond %{REQUEST_URI} \.php [NC]
RewriteRule ^ - [F]
# --- Interdire l’accès aux extensions exécutables ---
<FilesMatch "\.(php|phtml|phps|phar|cgi|pl|py|sh|rb|jsp|asp|aspx)$">
Require all denied
</FilesMatch>
# --- Neutraliser tout handler scripts dans ce répertoire ---
RemoveHandler .php .phtml .phps .phar .cgi .pl .py .sh .rb .jsp .asp .aspx
RemoveType .php .phtml .phps .phar .cgi .pl .py .sh .rb .jsp .asp .aspx
# --- (Optionnel) Renforcer la politique locale pour les SVG ---
<IfModule mod_headers.c>
<FilesMatch "\.svg$">
Header set Content-Security-Policy "script-src 'none'; style-src 'unsafe-inline'"
Header set X-Content-Type-Options "nosniff"
</FilesMatch>
</IfModule>
# (Optionnel) Forcer le téléchargement pour types sensibles
# AddType application/octet-stream .svg .xml .json