pub / stagit-scripts

Building src.jayvii.de with stagit
git clone https://src.jayvii.de/pub/stagit-scripts.git
Home | Log | Files | Exports | Refs | README | RSS

commit 1db0cb932a73515684bcc6b2ebffc3b14631ca78
parent 0f0ab22d542e0fa308fea518acff0b2a27d2b456
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 27 Apr 2024 15:35:28 +0200

Disallow access to .git directories

Diffstat:
M.htaccess | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/.htaccess b/.htaccess @@ -1,8 +1,6 @@ -# Default index site -DirectoryIndex index.html README.md.html readme.md.html README.txt.html readme.txt.html log.html - # Set 404 Document ErrorDocument 404 /404.html +ErrorDocument 403 /404.html # Disallow file browsing Options -Indexes @@ -10,3 +8,4 @@ Options -Indexes # Disallow browsing of certain sub-directories (redirect to 404) RedirectMatch 404 ^/.git/.*$ RedirectMatch 404 ^/bin/.*$ +RedirectMatch 404 ^/.*?\.git/.*$