# Audit Express Self - Sécurité Apache (OVH)
# Forcer HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Désactiver l'affichage du contenu des répertoires
Options -Indexes
# Bloquer l'accès aux fichiers sensibles
Require all denied
# Protection contre le hotlinking des images (optionnel)
#
# RewriteEngine On
# RewriteCond %{HTTP_REFERER} !^$
# RewriteCond %{HTTP_REFERER} !^https?://(www\.)?votredomaine\.fr [NC]
# RewriteRule \.(jpg|jpeg|png|gif|svg|webp)$ - [F]
#