From fc7d93b920b196e654502e1a2b720d56bae05711 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Tue, 6 Nov 2018 15:03:42 +0300 Subject: [PATCH] Force safe search on Youtube --- client/src/components/Settings/index.js | 2 +- dnsfilter/safesearch.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/components/Settings/index.js b/client/src/components/Settings/index.js index aa654cc2..54de37c0 100644 --- a/client/src/components/Settings/index.js +++ b/client/src/components/Settings/index.js @@ -27,7 +27,7 @@ export default class Settings extends Component { safesearch: { enabled: false, title: 'Enforce safe search', - subtitle: 'AdGuard Home can enforce safe search in the following search engines: Google, Bing, Yandex.', + subtitle: 'AdGuard Home can enforce safe search in the following search engines: Google, Youtube, Bing, and Yandex.', }, }; diff --git a/dnsfilter/safesearch.go b/dnsfilter/safesearch.go index 8936d74b..af8813ca 100644 --- a/dnsfilter/safesearch.go +++ b/dnsfilter/safesearch.go @@ -198,4 +198,10 @@ var safeSearchDomains = map[string]string{ "www.google.vu": "forcesafesearch.google.com", "www.google.ws": "forcesafesearch.google.com", "www.google.rs": "forcesafesearch.google.com", + + "www.youtube.com": "restrict.youtube.com", + "m.youtube.com": "restrict.youtube.com", + "youtubei.googleapis.com": "restrict.youtube.com", + "youtube.googleapis.com": "restrict.youtube.com", + "www.youtube-nocookie.com": "restrict.youtube.com", }