turn off listing & disallow certain files

This commit is contained in:
Miroslav Šedivý 2019-12-26 19:19:16 +01:00
parent b939cefb69
commit b5d70e11c7

View file

@ -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>