mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-17 11:47:27 +02:00
Improve security
Block access to .log files
This commit is contained in:
parent
f20b3d4a43
commit
2d3f5ac16b
21
.htaccess
21
.htaccess
@ -33,20 +33,27 @@ Deny from all
|
|||||||
Order allow,deny
|
Order allow,deny
|
||||||
Deny from all
|
Deny from all
|
||||||
</Files>
|
</Files>
|
||||||
|
<Files ~ "\.log$">
|
||||||
|
Order allow,deny
|
||||||
|
Deny from all
|
||||||
|
</Files>
|
||||||
|
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
<IfModule mod_negotiation.c>
|
<IfModule mod_negotiation.c>
|
||||||
Options -MultiViews -Indexes
|
Options -MultiViews -Indexes
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
# Block access to .env files
|
# Block access to .env files
|
||||||
RewriteRule ^.*\.env$ - [F,L]
|
RewriteRule ^.*\.env$ - [F,L]
|
||||||
|
|
||||||
# Block access to SQLite database files
|
# Block access to SQLite database files
|
||||||
RewriteRule ^.*\.sqlite$ - [F,L]
|
RewriteRule ^.*\.sqlite$ - [F,L]
|
||||||
|
|
||||||
# Block access to ZIP files
|
# Block access to ZIP files
|
||||||
RewriteRule ^.*\.zip$ - [F,L]
|
RewriteRule ^.*\.zip$ - [F,L]
|
||||||
|
|
||||||
|
# Block access to LOG files
|
||||||
|
RewriteRule ^.*\.log$ - [F,L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user