pub / newsplanet

Planet-Style Newsfeed generated with perlanet
git clone https://src.jayvii.de/pub/newsplanet.git
Home | Log | Files | Exports | Refs | README | RSS

commit 4ab02c26a8837d408dc26c3c1fb020526164c60c
parent b34459aa9ad01c1fd9c9a6252cf3a3c9098cedaa
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Fri, 31 May 2024 20:03:38 +0200

Add htaccess

Diffstat:
A.htaccess | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/.htaccess b/.htaccess @@ -0,0 +1,17 @@ +# 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 ^/.ssh/.*$ +RedirectMatch 404 ^/.config/.*$ +RedirectMatch 404 ^/.local/.*$ +RedirectMatch 404 ^/.cache/.*$ +RedirectMatch 404 ^/config.yaml$ +RedirectMatch 404 ^/template.html$