unbound: Safe Search: Enable Restrict-Moderate for YouTube
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 May 2019 14:29:32 +0000 (15:29 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 May 2019 14:29:32 +0000 (15:29 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/unbound

index 3e372ff..520525e 100644 (file)
@@ -707,6 +707,10 @@ write_safe_search_conf() {
                # Yandex
                echo "  local-zone: yandex.ru transparent"
                echo "  local-data: \"yandex.ru A 213.180.193.56\""
+
+               # YouTube
+               echo "  local-zone: youtube.com transparent"
+               echo "  local-data: \"www.youtube.com CNAME restrictmoderate.youtube.com.\""
        ) > /etc/unbound/safe-search.conf
 }