Security improvement - disallow direct access to download DB

This commit is contained in:
Michael Staake
2025-12-27 12:36:35 -08:00
parent a4cf82a470
commit 444c94c898

View File

@@ -2,6 +2,9 @@ RewriteEngine On
#if this is in a folder, edit this. example.com/mainty/ would be /mainty/
RewriteBase /
# Block access to data directory
RewriteRule ^data/ - [F,L]
# Redirect to HTTPS (optional, uncomment if needed)
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]