Enhance .htaccess rules

This commit is contained in:
wrongecho
2026-08-03 17:51:04 +01:00
parent 315768d651
commit 5ee1c9580f
4 changed files with 8 additions and 4 deletions

View File

@@ -1,2 +1,2 @@
# Prevent access to .git, .github, and config.php
RedirectMatch 404 ^/(\.git|\.github|config\.php)
RedirectMatch 401 ^/(\.git|\.github|config\.php)