From 960aa934d0a1322add00e9fc919a108b335fa8ac Mon Sep 17 00:00:00 2001
From: Jonas Leder <jonas@jonasled.de>
Date: Sat, 19 Dec 2020 23:54:01 +0100
Subject: [PATCH] deny access to database file from webserver via htaccess

---
 .htaccess | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.htaccess b/.htaccess
index 9fded1e..48960e7 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1 +1,6 @@
-ErrorDocument 404 /404.html
\ No newline at end of file
+ErrorDocument 404 /404.html
+
+<FilesMatch "\.(sql)$">
+    Order Deny,Allow
+    Deny from all
+</FilesMatch>
\ No newline at end of file
-- 
GitLab