mirror of
https://github.com/itflow-org/itflow
synced 2026-08-16 04:25:13 +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/users/index.php
|
||||||
uploads/tmp/*
|
uploads/tmp/*
|
||||||
!uploads/tmp/index.php
|
!uploads/tmp/index.php
|
||||||
|
!uploads/tmp/.htaccess
|
||||||
uploads/backups/*
|
uploads/backups/*
|
||||||
!uploads/backups/index.php
|
!uploads/backups/index.php
|
||||||
!uploads/backups/.htaccess
|
!uploads/backups/.htaccess
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# Prevent access to .git, .github, and config.php
|
# 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
|
||||||
Require all denied
|
Options -ExecCGI -Indexes
|
||||||
</FilesMatch>
|
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