maj designe

This commit is contained in:
lfirmin
2026-02-28 20:11:30 +01:00
parent fc9f384b47
commit 2f78c8d6f7
16 changed files with 330 additions and 173 deletions
+34
View File
@@ -0,0 +1,34 @@
# ─── Désactiver le listing des répertoires ──────────────────────────────────
Options -Indexes
# ─── Bloquer les fichiers sensibles ─────────────────────────────────────────
<FilesMatch "\.(zip|tar|gz|rar|7z|sql|log|env|bak|old|orig|save|swp|tmp|sh|py|rb|pl)$">
Order allow,deny
Deny from all
</FilesMatch>
# ─── Bloquer l'accès direct aux fichiers cachés (.htaccess, .env, etc.) ─────
<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>
# ─── Headers de sécurité ─────────────────────────────────────────────────────
<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>
# ─── SPA routing (React Router / Vite) ──────────────────────────────────────
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Ne pas réécrire les fichiers et dossiers existants
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Tout le reste → index.html
RewriteRule ^ index.html [L]
</IfModule>
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB