AdguardTeam / AdguardTeam/AdGuardHome
Unable to block website for a client tag via important modifier
- Lenguaje dominante
- TypeScript
- Estrellas
- 36.9k
- Forks
- 2.5k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### 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
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.