Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage safesearch for each service #1163

Closed
ammnt opened this issue Nov 7, 2019 · 41 comments
Closed

Manage safesearch for each service #1163

ammnt opened this issue Nov 7, 2019 · 41 comments

Comments

@ammnt
Copy link

ammnt commented Nov 7, 2019

(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.

@ammnt ammnt changed the title Manage secure search for each service Manage safesearch for each service Nov 7, 2019
@ameshkov ameshkov modified the milestones: v0.102, v0.103 Jan 13, 2020
@DebrodeD
Copy link

I have the exact same request, definitely want this!

@theovds
Copy link

theovds commented Apr 2, 2020

I have the same request. I would like to have the SafeSearch feature enabled, but for YouTube it is to much.
Thanks!

@theovds
Copy link

theovds commented Apr 9, 2020

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.

@DebrodeD
Copy link

DebrodeD commented Apr 9, 2020

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?

@ameshkov
Copy link
Member

ameshkov commented Apr 9, 2020

Filters -> DNS rewrites -> add these two rewrites there

@theovds
Copy link

theovds commented Apr 10, 2020

And also make sure to disable the SafeSearch function at the general settings.

@rori999
Copy link

rori999 commented May 12, 2020

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.

@nikeshjauhari
Copy link

Do we have a timeline when we can get this feature?

@temporallyaccount
Copy link

temporallyaccount commented Aug 8, 2020

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.

@ghost
Copy link

ghost commented Dec 7, 2020

@ameshkov is there possible with manual rewrite (temporary measure) to have the switch checked and exclude YouTube only ?

@ameshkov
Copy link
Member

ameshkov commented Dec 8, 2020

@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

@ghost
Copy link

ghost commented Dec 8, 2020

@ameshkov Thanks a lot for this file i had some but not all who is harder to find (yandex)

@ghost
Copy link

ghost commented Dec 18, 2020

@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) ?

@ameshkov
Copy link
Member

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.

@ainar-g ainar-g self-assigned this Jun 3, 2021
@WildByDesign
Copy link

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?

@17721
Copy link

17721 commented Aug 7, 2021

This is total bs... YouTube is already filtered-out of crap by Google. You have such a complicated piece of software, yet you fail to implement some simple option to manually whitelist YouTube. It have been an on going issue for more than 2 years - that's crazy! Don't you know how to code or something? As others have mentioned, I'd like to keep Family DNS on, but I want fully functional YouTube search with comments.

@WildByDesign

This comment has been minimized.

@EugeneOne1
Copy link
Member

@WildByDesign, a single $ is enough to mark the begining of rule's modifiers section so it shouldn't appear after , and you may simply write:

||www.google.com^$dnsrewrite=forcesafesearch.google.com,client='Child1-iPad'

Also, please consider using discussions for such questions.

@sholdee
Copy link

sholdee commented Apr 10, 2022

Is this still planned for implementation soon? I have the same problem. YouTube "safe search" is too restrictive and annoying, but I want the rest enabled.

@sholdee
Copy link

sholdee commented Apr 12, 2022

For anyone else with this problem, here is how I worked around it. This method saves you the time it would take to tediously enter each one of these rules in the GUI.

Stop service
sudo /opt/AdGuardHome/AdGuardHome -s stop

Open /opt/AdGuardHome/AdGuardHome.yaml in your preferred text editor and paste in these rewrite rules:

rewrites:
  - domain: www.bing.com
    answer: strict.bing.com
  - domain: bing.com
    answer: strict.bing.com
  - domain: yandex.com
    answer: 213.180.193.56
  - domain: www.yandex.com
    answer: 213.180.193.56
  - domain: yandex.ru
    answer: 213.180.193.56
  - domain: yandex.ua
    answer: 213.180.193.56
  - domain: yandex.by
    answer: 213.180.193.56
  - domain: yandex.kz
    answer: 213.180.193.56
  - domain: www.yandex.ru
    answer: 213.180.193.56
  - domain: www.yandex.ua
    answer: 213.180.193.56
  - domain: www.yandex.by
    answer: 213.180.193.56
  - domain: www.yandex.kz
    answer: 213.180.193.56
  - domain: duckduckgo.com
    answer: safe.duckduckgo.com
  - domain: www.duckduckgo.com
    answer: safe.duckduckgo.com
  - domain: start.duckduckgo.com
    answer: safe.duckduckgo.com
  - domain: www.google.com
    answer: forcesafesearch.google.com
  - domain: pixabay.com
    answer: safesearch.pixabay.com
  - domain: www.google.ad
    answer: forcesafesearch.google.com
  - domain: www.google.ae
    answer: forcesafesearch.google.com
  - domain: www.google.com.af
    answer: forcesafesearch.google.com
  - domain: www.google.com.ag
    answer: forcesafesearch.google.com
  - domain: www.google.com.ai
    answer: forcesafesearch.google.com
  - domain: www.google.al
    answer: forcesafesearch.google.com
  - domain: www.google.am
    answer: forcesafesearch.google.com
  - domain: www.google.co.ao
    answer: forcesafesearch.google.com
  - domain: www.google.com.ar
    answer: forcesafesearch.google.com
  - domain: www.google.as
    answer: forcesafesearch.google.com
  - domain: www.google.at
    answer: forcesafesearch.google.com
  - domain: www.google.com.au
    answer: forcesafesearch.google.com
  - domain: www.google.az
    answer: forcesafesearch.google.com
  - domain: www.google.ba
    answer: forcesafesearch.google.com
  - domain: www.google.com.bd
    answer: forcesafesearch.google.com
  - domain: www.google.be
    answer: forcesafesearch.google.com
  - domain: www.google.bf
    answer: forcesafesearch.google.com
  - domain: www.google.bg
    answer: forcesafesearch.google.com
  - domain: www.google.com.bh
    answer: forcesafesearch.google.com
  - domain: www.google.bi
    answer: forcesafesearch.google.com
  - domain: www.google.bj
    answer: forcesafesearch.google.com
  - domain: www.google.com.bn
    answer: forcesafesearch.google.com
  - domain: www.google.com.bo
    answer: forcesafesearch.google.com
  - domain: www.google.com.br
    answer: forcesafesearch.google.com
  - domain: www.google.bs
    answer: forcesafesearch.google.com
  - domain: www.google.bt
    answer: forcesafesearch.google.com
  - domain: www.google.co.bw
    answer: forcesafesearch.google.com
  - domain: www.google.by
    answer: forcesafesearch.google.com
  - domain: www.google.com.bz
    answer: forcesafesearch.google.com
  - domain: www.google.ca
    answer: forcesafesearch.google.com
  - domain: www.google.cd
    answer: forcesafesearch.google.com
  - domain: www.google.cf
    answer: forcesafesearch.google.com
  - domain: www.google.cg
    answer: forcesafesearch.google.com
  - domain: www.google.ch
    answer: forcesafesearch.google.com
  - domain: www.google.ci
    answer: forcesafesearch.google.com
  - domain: www.google.co.ck
    answer: forcesafesearch.google.com
  - domain: www.google.cl
    answer: forcesafesearch.google.com
  - domain: www.google.cm
    answer: forcesafesearch.google.com
  - domain: www.google.cn
    answer: forcesafesearch.google.com
  - domain: www.google.com.co
    answer: forcesafesearch.google.com
  - domain: www.google.co.cr
    answer: forcesafesearch.google.com
  - domain: www.google.com.cu
    answer: forcesafesearch.google.com
  - domain: www.google.cv
    answer: forcesafesearch.google.com
  - domain: www.google.com.cy
    answer: forcesafesearch.google.com
  - domain: www.google.cz
    answer: forcesafesearch.google.com
  - domain: www.google.de
    answer: forcesafesearch.google.com
  - domain: www.google.dj
    answer: forcesafesearch.google.com
  - domain: www.google.dk
    answer: forcesafesearch.google.com
  - domain: www.google.dm
    answer: forcesafesearch.google.com
  - domain: www.google.com.do
    answer: forcesafesearch.google.com
  - domain: www.google.dz
    answer: forcesafesearch.google.com
  - domain: www.google.com.ec
    answer: forcesafesearch.google.com
  - domain: www.google.ee
    answer: forcesafesearch.google.com
  - domain: www.google.com.eg
    answer: forcesafesearch.google.com
  - domain: www.google.es
    answer: forcesafesearch.google.com
  - domain: www.google.com.et
    answer: forcesafesearch.google.com
  - domain: www.google.fi
    answer: forcesafesearch.google.com
  - domain: www.google.com.fj
    answer: forcesafesearch.google.com
  - domain: www.google.fm
    answer: forcesafesearch.google.com
  - domain: www.google.fr
    answer: forcesafesearch.google.com
  - domain: www.google.ga
    answer: forcesafesearch.google.com
  - domain: www.google.ge
    answer: forcesafesearch.google.com
  - domain: www.google.gg
    answer: forcesafesearch.google.com
  - domain: www.google.com.gh
    answer: forcesafesearch.google.com
  - domain: www.google.com.gi
    answer: forcesafesearch.google.com
  - domain: www.google.gl
    answer: forcesafesearch.google.com
  - domain: www.google.gm
    answer: forcesafesearch.google.com
  - domain: www.google.gp
    answer: forcesafesearch.google.com
  - domain: www.google.gr
    answer: forcesafesearch.google.com
  - domain: www.google.com.gt
    answer: forcesafesearch.google.com
  - domain: www.google.gy
    answer: forcesafesearch.google.com
  - domain: www.google.com.hk
    answer: forcesafesearch.google.com
  - domain: www.google.hn
    answer: forcesafesearch.google.com
  - domain: www.google.hr
    answer: forcesafesearch.google.com
  - domain: www.google.ht
    answer: forcesafesearch.google.com
  - domain: www.google.hu
    answer: forcesafesearch.google.com
  - domain: www.google.co.id
    answer: forcesafesearch.google.com
  - domain: www.google.ie
    answer: forcesafesearch.google.com
  - domain: www.google.co.il
    answer: forcesafesearch.google.com
  - domain: www.google.im
    answer: forcesafesearch.google.com
  - domain: www.google.co.in
    answer: forcesafesearch.google.com
  - domain: www.google.iq
    answer: forcesafesearch.google.com
  - domain: www.google.is
    answer: forcesafesearch.google.com
  - domain: www.google.it
    answer: forcesafesearch.google.com
  - domain: www.google.je
    answer: forcesafesearch.google.com
  - domain: www.google.com.jm
    answer: forcesafesearch.google.com
  - domain: www.google.jo
    answer: forcesafesearch.google.com
  - domain: www.google.co.jp
    answer: forcesafesearch.google.com
  - domain: www.google.co.ke
    answer: forcesafesearch.google.com
  - domain: www.google.com.kh
    answer: forcesafesearch.google.com
  - domain: www.google.ki
    answer: forcesafesearch.google.com
  - domain: www.google.kg
    answer: forcesafesearch.google.com
  - domain: www.google.co.kr
    answer: forcesafesearch.google.com
  - domain: www.google.com.kw
    answer: forcesafesearch.google.com
  - domain: www.google.kz
    answer: forcesafesearch.google.com
  - domain: www.google.la
    answer: forcesafesearch.google.com
  - domain: www.google.com.lb
    answer: forcesafesearch.google.com
  - domain: www.google.li
    answer: forcesafesearch.google.com
  - domain: www.google.lk
    answer: forcesafesearch.google.com
  - domain: www.google.co.ls
    answer: forcesafesearch.google.com
  - domain: www.google.lt
    answer: forcesafesearch.google.com
  - domain: www.google.lu
    answer: forcesafesearch.google.com
  - domain: www.google.lv
    answer: forcesafesearch.google.com
  - domain: www.google.com.ly
    answer: forcesafesearch.google.com
  - domain: www.google.co.ma
    answer: forcesafesearch.google.com
  - domain: www.google.md
    answer: forcesafesearch.google.com
  - domain: www.google.me
    answer: forcesafesearch.google.com
  - domain: www.google.mg
    answer: forcesafesearch.google.com
  - domain: www.google.mk
    answer: forcesafesearch.google.com
  - domain: www.google.ml
    answer: forcesafesearch.google.com
  - domain: www.google.com.mm
    answer: forcesafesearch.google.com
  - domain: www.google.mn
    answer: forcesafesearch.google.com
  - domain: www.google.ms
    answer: forcesafesearch.google.com
  - domain: www.google.com.mt
    answer: forcesafesearch.google.com
  - domain: www.google.mu
    answer: forcesafesearch.google.com
  - domain: www.google.mv
    answer: forcesafesearch.google.com
  - domain: www.google.mw
    answer: forcesafesearch.google.com
  - domain: www.google.com.mx
    answer: forcesafesearch.google.com
  - domain: www.google.com.my
    answer: forcesafesearch.google.com
  - domain: www.google.co.mz
    answer: forcesafesearch.google.com
  - domain: www.google.com.na
    answer: forcesafesearch.google.com
  - domain: www.google.com.nf
    answer: forcesafesearch.google.com
  - domain: www.google.com.ng
    answer: forcesafesearch.google.com
  - domain: www.google.com.ni
    answer: forcesafesearch.google.com
  - domain: www.google.ne
    answer: forcesafesearch.google.com
  - domain: www.google.nl
    answer: forcesafesearch.google.com
  - domain: www.google.no
    answer: forcesafesearch.google.com
  - domain: www.google.com.np
    answer: forcesafesearch.google.com
  - domain: www.google.nr
    answer: forcesafesearch.google.com
  - domain: www.google.nu
    answer: forcesafesearch.google.com
  - domain: www.google.co.nz
    answer: forcesafesearch.google.com
  - domain: www.google.com.om
    answer: forcesafesearch.google.com
  - domain: www.google.com.pa
    answer: forcesafesearch.google.com
  - domain: www.google.com.pe
    answer: forcesafesearch.google.com
  - domain: www.google.com.pg
    answer: forcesafesearch.google.com
  - domain: www.google.com.ph
    answer: forcesafesearch.google.com
  - domain: www.google.com.pk
    answer: forcesafesearch.google.com
  - domain: www.google.pl
    answer: forcesafesearch.google.com
  - domain: www.google.pn
    answer: forcesafesearch.google.com
  - domain: www.google.com.pr
    answer: forcesafesearch.google.com
  - domain: www.google.ps
    answer: forcesafesearch.google.com
  - domain: www.google.pt
    answer: forcesafesearch.google.com
  - domain: www.google.com.py
    answer: forcesafesearch.google.com
  - domain: www.google.com.qa
    answer: forcesafesearch.google.com
  - domain: www.google.ro
    answer: forcesafesearch.google.com
  - domain: www.google.ru
    answer: forcesafesearch.google.com
  - domain: www.google.rw
    answer: forcesafesearch.google.com
  - domain: www.google.com.sa
    answer: forcesafesearch.google.com
  - domain: www.google.com.sb
    answer: forcesafesearch.google.com
  - domain: www.google.sc
    answer: forcesafesearch.google.com
  - domain: www.google.se
    answer: forcesafesearch.google.com
  - domain: www.google.com.sg
    answer: forcesafesearch.google.com
  - domain: www.google.sh
    answer: forcesafesearch.google.com
  - domain: www.google.si
    answer: forcesafesearch.google.com
  - domain: www.google.sk
    answer: forcesafesearch.google.com
  - domain: www.google.com.sl
    answer: forcesafesearch.google.com
  - domain: www.google.sn
    answer: forcesafesearch.google.com
  - domain: www.google.so
    answer: forcesafesearch.google.com
  - domain: www.google.sm
    answer: forcesafesearch.google.com
  - domain: www.google.sr
    answer: forcesafesearch.google.com
  - domain: www.google.st
    answer: forcesafesearch.google.com
  - domain: www.google.com.sv
    answer: forcesafesearch.google.com
  - domain: www.google.td
    answer: forcesafesearch.google.com
  - domain: www.google.tg
    answer: forcesafesearch.google.com
  - domain: www.google.co.th
    answer: forcesafesearch.google.com
  - domain: www.google.com.tj
    answer: forcesafesearch.google.com
  - domain: www.google.tk
    answer: forcesafesearch.google.com
  - domain: www.google.tl
    answer: forcesafesearch.google.com
  - domain: www.google.tm
    answer: forcesafesearch.google.com
  - domain: www.google.tn
    answer: forcesafesearch.google.com
  - domain: www.google.to
    answer: forcesafesearch.google.com
  - domain: www.google.com.tr
    answer: forcesafesearch.google.com
  - domain: www.google.tt
    answer: forcesafesearch.google.com
  - domain: www.google.com.tw
    answer: forcesafesearch.google.com
  - domain: www.google.co.tz
    answer: forcesafesearch.google.com
  - domain: www.google.com.ua
    answer: forcesafesearch.google.com
  - domain: www.google.co.ug
    answer: forcesafesearch.google.com
  - domain: www.google.co.uk
    answer: forcesafesearch.google.com
  - domain: www.google.com.uy
    answer: forcesafesearch.google.com
  - domain: www.google.co.uz
    answer: forcesafesearch.google.com
  - domain: www.google.com.vc
    answer: forcesafesearch.google.com
  - domain: www.google.co.ve
    answer: forcesafesearch.google.com
  - domain: www.google.vg
    answer: forcesafesearch.google.com
  - domain: www.google.co.vi
    answer: forcesafesearch.google.com
  - domain: www.google.com.vn
    answer: forcesafesearch.google.com
  - domain: www.google.vu
    answer: forcesafesearch.google.com
  - domain: www.google.ws
    answer: forcesafesearch.google.com
  - domain: www.google.rs
    answer: forcesafesearch.google.com

Start the service
sudo /opt/AdGuardHome/AdGuardHome -s start

You should now have safe search forced for everything but YouTube, just as if you had used the builtin feature.

@DebrodeD
Copy link

You can do also do this in the normal DNS rewrite rules in the GUI rather than needing to edit a YAML file.

@krisvek
Copy link

krisvek commented Apr 21, 2022

You can do also do this in the normal DNS rewrite rules in the GUI rather than needing to edit a YAML file.

@DebrodeD, as was mentioned earlier, entering these manually using the GUI is very tedious. The list that sholdee shared would require 205 separate interactions with the 'Add DNS rewrite' prompt.

@sholdee, thank you for your post, it's very helpful!

@exen904
Copy link

exen904 commented Jun 17, 2022

Any news on the possibility do decide on which service to use safe search? For me, youtube is almost unusable with safe search enabled, no comments etc.

@DebrodeD
Copy link

If you don't feel comfortable dealing with YAML files, another easy solution (that I just implemented) was to just block all the other languages of google:

||google.ad^$important
||google.ae^$important
||google.com.af^$important
||google.com.ag^$important
||google.com.ai^$important
||google.al^$important
||google.am^$important
||google.co.ao^$important
||google.com.ar^$important
||google.as^$important
||google.at^$important
||google.com.au^$important
||google.az^$important
||google.ba^$important
||google.com.bd^$important
||google.be^$important
||google.bf^$important
||google.bg^$important
||google.com.bh^$important
||google.bi^$important
||google.bj^$important
||google.com.bn^$important
||google.com.bo^$important
||google.com.br^$important
||google.bs^$important
||google.bt^$important
||google.co.bw^$important
||google.by^$important
||google.com.bz^$important
||google.ca^$important
||google.cd^$important
||google.cf^$important
||google.cg^$important
||google.ch^$important
||google.ci^$important
||google.co.ck^$important
||google.cl^$important
||google.cm^$important
||google.cn^$important
||google.com.co^$important
||google.co.cr^$important
||google.com.cu^$important
||google.cv^$important
||google.com.cy^$important
||google.cz^$important
||google.de^$important
||google.dj^$important
||google.dk^$important
||google.dm^$important
||google.com.do^$important
||google.dz^$important
||google.com.ec^$important
||google.ee^$important
||google.com.eg^$important
||google.es^$important
||google.com.et^$important
||google.fi^$important
||google.com.fj^$important
||google.fm^$important
||google.fr^$important
||google.ga^$important
||google.ge^$important
||google.gg^$important
||google.com.gh^$important
||google.com.gi^$important
||google.gl^$important
||google.gm^$important
||google.gr^$important
||google.com.gt^$important
||google.gy^$important
||google.com.hk^$important
||google.hn^$important
||google.hr^$important
||google.ht^$important
||google.hu^$important
||google.co.id^$important
||google.ie^$important
||google.co.il^$important
||google.im^$important
||google.co.in^$important
||google.iq^$important
||google.is^$important
||google.it^$important
||google.je^$important
||google.com.jm^$important
||google.jo^$important
||google.co.jp^$important
||google.co.ke^$important
||google.com.kh^$important
||google.ki^$important
||google.kg^$important
||google.co.kr^$important
||google.com.kw^$important
||google.kz^$important
||google.la^$important
||google.com.lb^$important
||google.li^$important
||google.lk^$important
||google.co.ls^$important
||google.lt^$important
||google.lu^$important
||google.lv^$important
||google.com.ly^$important
||google.co.ma^$important
||google.md^$important
||google.me^$important
||google.mg^$important
||google.mk^$important
||google.ml^$important
||google.com.mm^$important
||google.mn^$important
||google.ms^$important
||google.com.mt^$important
||google.mu^$important
||google.mv^$important
||google.mw^$important
||google.com.mx^$important
||google.com.my^$important
||google.co.mz^$important
||google.com.na^$important
||google.com.ng^$important
||google.com.ni^$important
||google.ne^$important
||google.nl^$important
||google.no^$important
||google.com.np^$important
||google.nr^$important
||google.nu^$important
||google.co.nz^$important
||google.com.om^$important
||google.com.pa^$important
||google.com.pe^$important
||google.com.pg^$important
||google.com.ph^$important
||google.com.pk^$important
||google.pl^$important
||google.pn^$important
||google.com.pr^$important
||google.ps^$important
||google.pt^$important
||google.com.py^$important
||google.com.qa^$important
||google.ro^$important
||google.ru^$important
||google.rw^$important
||google.com.sa^$important
||google.com.sb^$important
||google.sc^$important
||google.se^$important
||google.com.sg^$important
||google.sh^$important
||google.si^$important
||google.sk^$important
||google.com.sl^$important
||google.sn^$important
||google.so^$important
||google.sm^$important
||google.sr^$important
||google.st^$important
||google.com.sv^$important
||google.td^$important
||google.tg^$important
||google.co.th^$important
||google.com.tj^$important
||google.tl^$important
||google.tm^$important
||google.tn^$important
||google.to^$important
||google.com.tr^$important
||google.tt^$important
||google.com.tw^$important
||google.co.tz^$important
||google.com.ua^$important
||google.co.ug^$important
||google.co.uk^$important
||google.com.uy^$important
||google.co.uz^$important
||google.com.vc^$important
||google.co.ve^$important
||google.vg^$important
||google.co.vi^$important
||google.com.vn^$important
||google.vu^$important
||google.ws^$important
||google.rs^$important
||google.co.za^$important
||google.co.zm^$important
||google.co.zw^$important
||google.cat^$important

Just copy and paste this into your custom filtering rules and you're good to go, then do a couple of manual rewrites in the GUI for the normal google/bing, etc.

@mingaldrichgan
Copy link

For anyone else with this problem, here is how I worked around it. This method saves you the time it would take to tediously enter each one of these rules in the GUI.

I'm surprised this hasn't been explicitly stated here though it's been alluded to by the linked issue above. The Host Lists Registry has separate Safe Search lists for search engines vs. YouTube, and they work as expected when added to AdGuard Home as Blocklists. So, by adding the following list as a Blocklist, you get Safe Search in search engines but not in YouTube, which seems to be what a lot of people here (including myself) was looking for.

https://adguardteam.github.io/HostlistsRegistry/assets/engines_safe_search.txt

IMHO this makes the built-in Safe Search option redundant, and the AdGuard team should consider just adding these two lists as options instead.

@up2you1
Copy link

up2you1 commented Dec 31, 2022

For anyone else with this problem, here is how I worked around it. This method saves you the time it would take to tediously enter each one of these rules in the GUI.

I'm surprised this hasn't been explicitly stated here though it's been alluded to by the linked issue above. The Host Lists Registry has separate Safe Search lists for search engines vs. YouTube, and they work as expected when added to AdGuard Home as Blocklists. So, by adding the following list as a Blocklist, you get Safe Search in search engines but not in YouTube, which seems to be what a lot of people here (including myself) was looking for.

https://adguardteam.github.io/HostlistsRegistry/assets/engines_safe_search.txt

IMHO this makes the built-in Safe Search option redundant, and the AdGuard team should consider just adding these two lists as options instead.

Thank you,, this works a treat!i

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests