harden htaccess

This commit is contained in:
Moritz
2026-04-28 01:57:52 +02:00
parent 8e81f3f81c
commit 3b598e82dd
3 changed files with 20 additions and 2 deletions
+5
View File
@@ -1,3 +1,8 @@
# Protect sensitive files from direct access
<FilesMatch "^(wp-config\.php|\.htaccess|\.htpasswd|readme\.html|license\.txt)$">
Require all denied
</FilesMatch>
{{ if eq (env "MULTISITE") "" -}}
# BEGIN WordPress