# Protection basique du dossier monitoring
<IfModule mod_rewrite.c>
    RewriteEngine On
    
    # Rediriger HTTP vers HTTPS si disponible
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

# Empêcher l'accès direct aux fichiers sensibles
<FilesMatch "^(config\.php|\.htaccess)$">
    Require all denied
</FilesMatch>