27 lines
640 B
ApacheConf
27 lines
640 B
ApacheConf
# Pas de listing
|
|
Options -Indexes
|
|
|
|
# Réécriture activée
|
|
RewriteEngine On
|
|
|
|
# Autoriser UNIQUEMENT /sms/notify_rdv.php en HTTP
|
|
RewriteCond %{REQUEST_URI} !/sms/notify_rdv\.php$ [NC]
|
|
RewriteRule ^ - [F]
|
|
|
|
# notify_rdv.php : POST uniquement
|
|
<Files "notify_rdv.php">
|
|
<LimitExcept POST>
|
|
Require all denied
|
|
</LimitExcept>
|
|
</Files>
|
|
|
|
# Interdire l'accès direct aux fichiers sensibles
|
|
<FilesMatch "^(config|config\.sample|wa_client|templates)\.php$">
|
|
Require all denied
|
|
</FilesMatch>
|
|
|
|
# Bloquer les fichiers cachés/artefacts
|
|
<FilesMatch "^(\.env|\.git|composer\.json|composer\.lock|.*\.md|.*\.txt)$">
|
|
Require all denied
|
|
</FilesMatch>
|