Merge pull request #3259 from kaspernowak/patch-1
feat: add OpenLiteSpeed rewrite rule for protected files
This commit is contained in:
commit
febb4ede9c
|
|
@ -24,6 +24,10 @@
|
|||
</IfModule>
|
||||
</FilesMatch>
|
||||
|
||||
# Prevent Direct Access to Protected Files (OpenLiteSpeed syntax)
|
||||
RewriteCond %{REQUEST_URI} (^|/)(\.env|\.log|artisan)$ [NC]
|
||||
RewriteRule .* - [F,L]
|
||||
|
||||
# Prevent Direct Access To Protected Folders
|
||||
RewriteRule ^(app|bootstrap|config|database|overrides|resources|routes|storage|tests)/(.*) / [L,R=301]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue