mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Update access rules to block all root '.' files
This commit is contained in:
parent
f54a812ad5
commit
3f20981aab
1 changed files with 2 additions and 2 deletions
|
@ -85,8 +85,8 @@ $HTTP["url"] =~ "^/admin/" {
|
|||
}
|
||||
}
|
||||
|
||||
# Block the github files from being accessible.
|
||||
$HTTP["url"] =~ "^/admin/(.git|.gitignore|.github)" {
|
||||
# Block . files from being served, such as .git, .github, .gitignore
|
||||
$HTTP["url"] =~ "^/admin/\.(.*)" {
|
||||
url.access-deny = ("")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue