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

1
.gitignore vendored
View File

@@ -20,6 +20,7 @@ uploads/users/*
!uploads/users/index.php
uploads/tmp/*
!uploads/tmp/index.php
!uploads/tmp/.htaccess
uploads/backups/*
!uploads/backups/index.php
!uploads/backups/.htaccess

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)

View File

@@ -1,3 +1,3 @@
<FilesMatch "\.(php)$">
Require all denied
</FilesMatch>
Require all denied
Options -ExecCGI -Indexes
php_flag engine off

3
uploads/tmp/.htaccess Normal file
View File

@@ -0,0 +1,3 @@
Require all denied
Options -ExecCGI -Indexes
php_flag engine off