turn off listing & disallow certain files
This commit is contained in:
parent
b939cefb69
commit
b5d70e11c7
1 changed files with 3 additions and 6 deletions
|
@ -1,14 +1,11 @@
|
|||
RewriteEngine on
|
||||
Options -Indexes
|
||||
|
||||
RewriteRule ^app/?.*$ - [F,L]
|
||||
RewriteRule ^data/logs/?.*$ - [F,L]
|
||||
|
||||
<Files ~ "\.(ini|sql|yml|md)$">
|
||||
<Files ~ "\.(ini|sql|log|class.php)$">
|
||||
Order Allow,Deny
|
||||
Deny from All
|
||||
</Files>
|
||||
|
||||
<Files ~ "^(\.|Dockerfile)">
|
||||
<Files ~ "^(\.|Dockerfile|docker-compose.yml|README.md)">
|
||||
Order Allow,Deny
|
||||
Deny from All
|
||||
</Files>
|
||||
|
|
Loading…
Reference in a new issue