AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Unable to block website for a client tag via important modifier

Open fernvenue opened this issue 3 years ago • 2 comments

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

fernvenue avatar Jul 08 '22 17:07 fernvenue

Hi. Got a bit same problem, i have marked phone as child user, it blocks adult sites well, but not in Finland. Have set own rules in with " ||kaalimato.com^$important,ctag=user_child " but still the phone can open the site. Somehow the ctag is not working, if i put " ||kaalimato.com^$important " it blocks it but it blocks it from all users. Have been trying to find where is the file located that holds the list for user_hild to edit and add more sites to it so i dont need to make huge own filter list. Would be great to have in the AdGuard Home some tab for editing parental control sites easy, just put in the website address to block from all children or something like that. And i am using TrueNas Core "TrueNAS-13.0-U1" Thank you.

Decalinux avatar Jul 29 '22 10:07 Decalinux

Apologies for not reacting sooner. We'll take a look at what's wrong here.

ainar-g avatar Aug 19 '22 15:08 ainar-g