Update access rules to block all root '.' files

This commit is contained in:
Celly 2017-09-22 09:27:43 -04:00 committed by GitHub
parent e3e3b4da58
commit f54a812ad5

View file

@ -66,8 +66,8 @@ $HTTP["url"] =~ "^/admin/" {
} }
} }
# Block the github files from being accessible. # Block . files from being served, such as .git, .github, .gitignore
$HTTP["url"] =~ "^/admin/(.git|.gitignore|.github)" { $HTTP["url"] =~ "^/admin/\.(.*)" {
url.access-deny = ("") url.access-deny = ("")
} }