# 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 ^/.reuse/.*$
RedirectMatch 404 ^/LICENSES/.*$
RedirectMatch 404 ^/README.md$

