Security update

Update security by preventing access to hidden and .sqlite files via the .htaccess file.
This commit is contained in:
Julian Prieber 2022-02-27 23:12:22 +01:00 committed by GitHub
parent 3db8d5b8fd
commit 81e5c5a377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -19,3 +19,13 @@
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
# Restrict access to critical files
<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>
<Files ~ "\.sqlite$">
Order allow,deny
Deny from all
</Files>