AdGuardHome
AdGuardHome copied to clipboard
Manage safesearch for each service
(Updating the top post to summarize the discussion and make sure nothing is lost; original content is under the <details>
tag. — @ainar-g)
The way I see it, we'll need the following changes:
-
UI:
-
The single Use Safe Search boolean should be changed into a section of seven booleans:
- enabled (to enable or disable Safe Search entirely);
- Bing;
- DuckDuckGo;
- Google;
- Pixabay;
- Yandex;
- YouTube;
-
-
Internals:
-
We should probably finally switch to the lists from the Hostlists Registry, at least in SafeSearch. That means using the same machinery that we already use for
dnsrewrite
rules. -
The support for these more fine-tuned settings should be extended to persistent clients as well.
-
-
Configuration file:
-
The current
safesearch_enabled
should be replaced by an object containing per-service settings. E.g.:safe_search: enabled: true bing: false duckduckgo: true google: false pixabay: false yandex: true youtube: false
-
The same in the
clients.persistent
objects.
-
Original post content
Hello,
it would be great to manage a safesearch for each service separately. Because safesearch for engines disables sites for adults mostly, but for YouTube disables half the content marked as unacceptable for kids. For example, this video is not available in safesearch mode: https://www.youtube.com/watch?v=6YoFkb-LOzg
IMHO this is excessive, but you can only disable it with a safesearch for other services.
Thank you.
I have the exact same request, definitely want this!
I have the same request. I would like to have the SafeSearch feature enabled, but for YouTube it is to much. Thanks!
I now disabled SafeSearch, but added DNS rewrites for Google and Bing: www.google.com > forcesafesearch.google.com www.bing.com > strict.bing.com
This works as expected, but it would be nice if this is possible with a GUI option.
I now disabled SafeSearch, but added DNS rewrites for Google and Bing: www.google.com > forcesafesearch.google.com www.bing.com > strict.bing.com
This works as expected, but it would be nice if this is possible with a GUI option.
can you walk me through how you did that?
Filters -> DNS rewrites -> add these two rewrites there
And also make sure to disable the SafeSearch function at the general settings.
I now disabled SafeSearch, but added DNS rewrites for Google and Bing: www.google.com > forcesafesearch.google.com www.bing.com > strict.bing.com
This works as expected, but it would be nice if this is possible with a GUI option.
Of course that won't work. You just type google.co.uk or whatever country tld. Only way to get it to work is do this for all google, bing etc tld's.
Do we have a timeline when we can get this feature?
Propose implementation change:
Again, this's only a suggestion. I assume you guys going to display services list (companies names) in UI with toggle button for each. Isn't it good to categorize them instead?
- Search engines (Google, Bing, Yandex and more)
- Video platforms (Youtube, Vimeo and more)
- Image & video sharing sites (Pixelbay, Behance and more)
We can suggest many other safe search available services and i dont see any cons when those under categories.
@ameshkov is there possible with manual rewrite (temporary measure) to have the switch checked and exclude YouTube only ?
@michaelb-ae here are the rewrites you need to add to implement safe search: https://github.com/AdguardTeam/AdGuardHome/blob/master/internal/dnsfilter/safesearch.go#L150
@ameshkov Thanks a lot for this file i had some but not all who is harder to find (yandex)
@ameshkov one question (it about safesearch but i don't want to pollute the issue with this simple question), if i enable safe search but do @@ before www.bing.com ,it will force safesearch anyway on bing or don't do it (because it's on allowlist) ?
if i enable safe search but do @@ before www.bing.com ,it will force safesearch anyway on bing or don't do it (because it's on allowlist)
Yes, it will force it anyway.
if i enable safe search but do @@ before www.bing.com ,it will force safesearch anyway on bing or don't do it (because it's on allowlist)
Yes, it will force it anyway.
Well, I want to enable safe search, but only disable youtube restricted mode on my local Adguard home DNS server. How can I do that? @ameshkov
Just as explained in the comments, you can add necessary rewrites manually.
Just as explained in the comments, you can add necessary rewrites manually.
How to edit the rewrites manually? (Only for Youtube)
@michaelb-ae here are the rewrites you need to add to implement safe search: https://github.com/AdguardTeam/AdGuardHome/blob/master/internal/dnsfilter/safesearch.go#L150
How can I edit this file on my adguard server ? @ameshkov
Settings -> DNS rewrites -> add rewrites there one by one.
Settings -> DNS rewrites -> add rewrites there one by one.
I know that, but there's is hundreds of url. Any ways to just edit the youtube DNS rewrite? And how? @ameshkov
It's not efficient to do that. Any workarounds to disable YouTube Restricted mode, but enable Safe search?? @ameshkov
No, there're no alternatives for now.
What is the normal URL of Youtube. I think I can edit that via DNS rewrites. Is is possible? @ameshkov
@ameshkov Is any ways to edit "internal/dnsfilter/safesearch.go" or anything similar on my server ?
No, there're no alternatives for now.
Nope.
You can only fork AdGuard Home, edit it, build your own version.
No, there're no alternatives for now.
Well, do you have a timeline when we can get this feature?
Planned to v0.107 (may be postponed to v0.108) so I'd say it's Q2 2021
Planned to v0.107 (may be postponed to v0.108) so I'd say it's Q2 2021
@ameshkov We have been waiting for so long, cloud you please release that earlier?
Any progress on this? It would be nice to see this roll out soon.
I have also recently realized a need for this feature.
As a temporary solution, is there a way to achieve these DNS rewrites on a per client basis?
For example, I have kids devices grouped together by MAC addresses. I would like to have safe search on Google and Bing, but not on YouTube because it is causing more problems for the YouTube Kids app. So I need to exclude YouTube from safe search.
Is there an easy way to achieve this temporarily without affecting adult devices?