diff --git a/cmd/bind/config.go b/cmd/bind/config.go index c0d7ecd..a9f7935 100644 --- a/cmd/bind/config.go +++ b/cmd/bind/config.go @@ -48,6 +48,7 @@ type configFileStruct struct { DomainListURLs []string `yaml:"domainListURLs"` } `yaml:"sources"` AllowLists []string `yaml:"allowList"` + DenyList []string `yaml:"denyList"` } var config = configStructure{ diff --git a/cmd/bind/get-remote-data.go b/cmd/bind/get-remote-data.go index a1a3a42..266d9c1 100644 --- a/cmd/bind/get-remote-data.go +++ b/cmd/bind/get-remote-data.go @@ -52,6 +52,9 @@ func getListData() []string { } } + // append deny list items to list of blocked domains + badDomains = append(badDomains, config.Config.DenyList...) + return badDomains } diff --git a/config/config.yaml b/config/config.yaml index ffa03d0..5c059b1 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -58,4 +58,7 @@ allowList: - (^|\.)msn\.com - (^|\.)nexusrules\.officeapps\.live\.com - (^|\.)playfabapi\.com -- (^|\.)vercel-dns\.com \ No newline at end of file +- (^|\.)vercel-dns\.com +denyList: +- jindlecleanings.xyz +- "*.jindlecleanings.xyz" \ No newline at end of file