diff options
-rw-r--r-- | .htaccess | 8 | ||||
-rw-r--r-- | app/.htaccess | 8 | ||||
-rw-r--r-- | data/.htaccess | 8 | ||||
-rw-r--r-- | doc/.htaccess | 8 | ||||
-rw-r--r-- | tests/.htaccess | 8 |
5 files changed, 35 insertions, 5 deletions
@@ -9,5 +9,11 @@ </IfModule> <FilesMatch "(kanboard|config.php|config.default.php)"> - Deny from all + <IfVersion >= 2.3> + Require all denied + </IfVersion> + <IfVersion < 2.3> + Order allow,deny + Deny from all + </IfVersion> </FilesMatch> diff --git a/app/.htaccess b/app/.htaccess index 14249c50..c47998cb 100644 --- a/app/.htaccess +++ b/app/.htaccess @@ -1 +1,7 @@ -Deny from all
\ No newline at end of file +<IfVersion >= 2.3> + Require all denied +</IfVersion> +<IfVersion < 2.3> + Order allow,deny + Deny from all +</IfVersion> diff --git a/data/.htaccess b/data/.htaccess index 14249c50..c47998cb 100644 --- a/data/.htaccess +++ b/data/.htaccess @@ -1 +1,7 @@ -Deny from all
\ No newline at end of file +<IfVersion >= 2.3> + Require all denied +</IfVersion> +<IfVersion < 2.3> + Order allow,deny + Deny from all +</IfVersion> diff --git a/doc/.htaccess b/doc/.htaccess index 14249c50..c47998cb 100644 --- a/doc/.htaccess +++ b/doc/.htaccess @@ -1 +1,7 @@ -Deny from all
\ No newline at end of file +<IfVersion >= 2.3> + Require all denied +</IfVersion> +<IfVersion < 2.3> + Order allow,deny + Deny from all +</IfVersion> diff --git a/tests/.htaccess b/tests/.htaccess index 14249c50..c47998cb 100644 --- a/tests/.htaccess +++ b/tests/.htaccess @@ -1 +1,7 @@ -Deny from all
\ No newline at end of file +<IfVersion >= 2.3> + Require all denied +</IfVersion> +<IfVersion < 2.3> + Order allow,deny + Deny from all +</IfVersion> |