aboutsummaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-10-11 09:25:43 +0200
committerGravatar GitHub <noreply@github.com> 2024-10-11 09:25:43 +0200
commit91624037c7d73eb545478aab2f8abc55fc224453 (patch)
treec1de6a07d7e30c5e88c3de40fd152e5304722cca /extensions
parentb30a8fa652018025f8ccc6b361823486d04cf390 (diff)
Apache protect more non-public folders and files (#6881)
* Apache protect more non-public folders * Also protect root * Do the same for /p/ * Simplify Require all denied In case of Apache 2.2, it will just make an error 500 instead of 403 * .htaccess.dist * Simplify * Better comment
Diffstat (limited to 'extensions')
-rw-r--r--extensions/.htaccess1
-rw-r--r--extensions/index.html13
2 files changed, 14 insertions, 0 deletions
diff --git a/extensions/.htaccess b/extensions/.htaccess
new file mode 100644
index 000000000..b66e80882
--- /dev/null
+++ b/extensions/.htaccess
@@ -0,0 +1 @@
+Require all denied
diff --git a/extensions/index.html b/extensions/index.html
new file mode 100644
index 000000000..85faaa37e
--- /dev/null
+++ b/extensions/index.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
+<head>
+<meta charset="UTF-8" />
+<meta http-equiv="Refresh" content="0; url=/" />
+<title>Redirection</title>
+<meta name="robots" content="noindex" />
+</head>
+
+<body>
+<p><a href="/">Redirection</a></p>
+</body>
+</html>