commit 38ffc51d8efcdb1acc0bb33c434c57593441f68c parent f0ba8e77dafd5b4050d59028ffff67542e027391 Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Sat, 2 May 2026 20:25:42 +0200 feat: add htaccess file Diffstat:
| A | .htaccess | | | 14 | ++++++++++++++ |
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/.htaccess b/.htaccess @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: AGPL-3.0-or-later +# SPDX-FileCopyrightText: 2021-2024 JayVii <jayvii[AT]posteo[DOT]de> + +# Disallow file browsing +Options -Indexes + +# Ensure content is loaded as UTF-8 +IndexOptions +Charset=UTF-8 + +# Disallow browsing of certain sub-directories (redirect to 404) +RedirectMatch 404 ^/.git/.*$ +RedirectMatch 404 ^/.gitignore$ +RedirectMatch 404 ^/index.tt$ +RedirectMatch 404 ^/perlanetrc.yaml$