AdguardTeam / AdguardTeam/AdGuardHome

Unable to block website for a client tag via important modifier

Offen
#4,723 2 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @EugeneOne1 Auf GitHub ansehen
needs investigation
Vorherrschende Sprache
TypeScript
Sterne
36.9k
Forks
2.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Discussed in https://github.com/AdguardTeam/AdGuardHome/discussions/4719

Originally posted by **gmichels** July 8, 2022
Hello all,

I am trying to block m.youtube.com for a specific client tag and at the same time enforce restricted mode (strict restricted - restrict.youtube.com, not the moderate restricted which happens when enabling safe search).

I have these in my custom filtering rules:

```
# block mobile YouTube to prevent usage via Safari
||m.youtube.com^$important,ctag=user_child

# use restricted mode for YouTube
www.youtube.com^$dnsrewrite=restrict.youtube.com
m.youtube.com^$dnsrewrite=restrict.youtube.com
youtubei.googleapis.com^$dnsrewrite=restrict.youtube.com
youtube.googleapis.com^$dnsrewrite=restrict.youtube.com
www.youtube-nocookie.com^$dnsrewrite=restrict.youtube.com
```

If I remove the `dnsrewrite` line for m.youtube.com, the rule works as expected. Although I have the `important` modifier, the `dnsrewrite` rule seems to be taking precedence and the requests are going through.

Any ideas on how to accomplish this?

Thank you

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.