mirror of
https://github.com/michaelstaake/mainty.git
synced 2026-04-16 11:30:13 +00:00
Security improvement - disallow direct access to download DB
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user