]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/system/unbound
unbound: Safe Search: Enable Restrict-Moderate for YouTube
[ipfire-2.x.git] / src / initscripts / system / unbound
index 3e372ff65fab038697327425bd0188c31e17117e..520525ea140c96971dfa72947cb6e7451cd287e2 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
 }