about summary refs log tree commit diff
path: root/modules/services/blocky
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-02-20 22:22:16 +0900
committersefidel <contact@sefidel.net>2024-02-20 22:22:16 +0900
commitdbaa055f6bdecf2a57c7cb5797a0a7ff326311ca (patch)
treead40d25bb0f9d1213b2d85b41fedb5a489158f7e /modules/services/blocky
parent7250ad345d364f1fe0b70c54cc5bc36295054fd8 (diff)
downloadnixrc-dbaa055f6bdecf2a57c7cb5797a0a7ff326311ca.tar.gz
nixrc-dbaa055f6bdecf2a57c7cb5797a0a7ff326311ca.zip
feat(modules/blocky): configure whitelist
Diffstat (limited to 'modules/services/blocky')
-rw-r--r--modules/services/blocky/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/services/blocky/default.nix b/modules/services/blocky/default.nix
index 4a36825..d308bf3 100644
--- a/modules/services/blocky/default.nix
+++ b/modules/services/blocky/default.nix
@@ -65,6 +65,18 @@ in
             ];
           };
 
+          whiteLists = rec {
+            # Blocky will block all domains except ones in the whitelist
+            # IF there is no matching entry in blacklists
+            falsePositives = [
+              "https://gist.githubusercontent.com/sefidel/7c7a8dbbc912bcd665d9005e2ba120e1/raw"
+            ];
+
+            ads = falsePositives;
+            phishing = falsePositives;
+            tracking = falsePositives;
+          };
+
           clientGroupsBlock = {
             default = [ "ads" "phishing" "tracking" ];
           };