mirror of
https://github.com/itflow-org/itflow
synced 2026-08-05 15:17:17 +00:00
Enhance .htaccess rules
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# Prevent access to .git, .github, and config.php
|
||||
RedirectMatch 404 ^/(\.git|\.github|config\.php)
|
||||
RedirectMatch 401 ^/(\.git|\.github|config\.php)
|
||||
|
||||
@@ -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
3
uploads/tmp/.htaccess
Normal file
@@ -0,0 +1,3 @@
|
||||
Require all denied
|
||||
Options -ExecCGI -Indexes
|
||||
php_flag engine off
|
||||
Reference in New Issue
Block a user