The rules for specific clients are not working #5829

Open
opened 2026-03-04 06:38:48 -05:00 by deekerman · 8 comments
Owner

Originally created by @Yumega on GitHub (Nov 12, 2025).

Prerequisites

Platform (OS and CPU architecture)

Linux, AMD64 (aka x86_64)

Installation

Docker

Setup

On a router, DHCP is handled by the router

AdGuard Home version

v0.107.69

Action

||www.baidu.com^$client='iPhone17Pro'

Expected result

block www.baidu.com

Actual result

i can still see the log iphone17 pro visited www.baidu.com after the enable the rule

Additional information and/or screenshots

No response

Originally created by @Yumega on GitHub (Nov 12, 2025). ### Prerequisites - [x] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a) and found no answer - [x] I have searched other issues and found no duplicates - [x] I want to report a bug and not [ask a question or ask for help](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a) - [x] I have set up AdGuard Home correctly and [configured clients to use it](https://github.com/AdguardTeam/AdGuardHome/wiki/Clients). (Use the [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a) for help with installing and configuring clients.) ### Platform (OS and CPU architecture) Linux, AMD64 (aka x86_64) ### Installation Docker ### Setup On a router, DHCP is handled by the router ### AdGuard Home version v0.107.69 ### Action ```sh ||www.baidu.com^$client='iPhone17Pro' ``` ### Expected result block www.baidu.com ### Actual result i can still see the log iphone17 pro visited www.baidu.com after the enable the rule ### Additional information and/or screenshots _No response_
Author
Owner

@tjharman commented on GitHub (Nov 12, 2025):

You will need to provide a lot more detail.
How are you defining the clients? Manually?
Are you sure they're not visiting just "baidu.com" which you aren't blocking?

I use this feature and it works well for me, so I expect you have misconfigured or are misunderstanding something.

Also I think the Client rules are case senstive, if your client is called "Bob" but you put in "bob" I'm fairly sure that won't match.

@tjharman commented on GitHub (Nov 12, 2025): You will need to provide a lot more detail. How are you defining the clients? Manually? Are you sure they're not visiting just "baidu.com" which you aren't blocking? I use this feature and it works well for me, so I expect you have misconfigured or are misunderstanding something. Also I think the Client rules are case senstive, if your client is called "Bob" but you put in "bob" I'm fairly sure that won't match.
Author
Owner

@Yumega commented on GitHub (Nov 12, 2025):

You will need to provide a lot more detail. How are you defining the clients? Manually? Are you sure they're not visiting just "baidu.com" which you aren't blocking?

it seems that change the client name into its ip, it works

||www.baidu.com^$client='192.168.11.21'

@Yumega commented on GitHub (Nov 12, 2025): > You will need to provide a lot more detail. How are you defining the clients? Manually? Are you sure they're not visiting just "baidu.com" which you aren't blocking? > it seems that change the client name into its ip, it works > ||www.baidu.com^$client='192.168.11.21'
Author
Owner

@tjharman commented on GitHub (Nov 12, 2025):

I have just tested this again and it's still working fine here:

Image Image

Are you sure you aren't getting the CasE of Your CLiEnt incorrect?

@tjharman commented on GitHub (Nov 12, 2025): I have just tested this again and it's still working fine here: <img width="342" height="41" alt="Image" src="https://github.com/user-attachments/assets/6c5f0929-4a5b-4e05-bfca-3c6972c75ab7" /> <img width="1277" height="103" alt="Image" src="https://github.com/user-attachments/assets/44e3e75c-2524-45e8-8a98-1a4972a00620" /> Are you sure you aren't getting the CasE of Your CLiEnt incorrect?
Author
Owner

@Yumega commented on GitHub (Nov 12, 2025):

name was corrent, it was chinese name, iphone 17pro is just an example here

maybe the rule couldn't read chinese

@Yumega commented on GitHub (Nov 12, 2025): name was corrent, it was chinese name, iphone 17pro is just an example here maybe the rule couldn't read chinese
Author
Owner

@tjharman commented on GitHub (Nov 12, 2025):

That might well be the issue.
If you can provide actual steps to reproduce, then we can get it flagged up to the development team.

@tjharman commented on GitHub (Nov 12, 2025): That might well be the issue. If you can provide actual steps to reproduce, then we can get it flagged up to the development team.
Author
Owner

@Yumega commented on GitHub (Nov 12, 2025):

Reproduce
I have a smart speaker with a statically fixed IP. I bound its IP to a Chinese name in AdGuard Home. In AdGuard Home's request logs, I noticed that this speaker has been constantly requesting www.baidu.com, so I chose to block it exclusively for this device through the logs.

But it didn't work

Then I blocked it through the speaker ip
it works now

@Yumega commented on GitHub (Nov 12, 2025): Reproduce I have a smart speaker with a statically fixed IP. I bound its IP to a Chinese name in AdGuard Home. In AdGuard Home's request logs, I noticed that this speaker has been constantly requesting www.baidu.com, so I chose to block it exclusively for this device through the logs. But it didn't work Then I blocked it through the speaker ip it works now
Author
Owner

@tjharman commented on GitHub (Nov 12, 2025):

Can you please

  1. Take screenshot(s) of how you configured your client.
  2. Take screenshot(s) of your blocking rule(s)
  3. If possible please paste in the actual client name you used, so it can be tested.

I understand what the problem was and how you fixed it, but the key is probably "Chinese name" and you haven't provided this. If someone wanted to reproduce the problem what EXACT steps would they follow. That's what I'd like to understand.

@tjharman commented on GitHub (Nov 12, 2025): Can you please 1) Take screenshot(s) of how you configured your client. 2) Take screenshot(s) of your blocking rule(s) 3) If possible please paste in the actual client name you used, so it can be tested. I understand what the problem was and how you fixed it, but the key is probably "Chinese name" and you haven't provided this. If someone wanted to _reproduce the problem_ what EXACT steps would they follow. That's what I'd like to understand.
Author
Owner

@Yumega commented on GitHub (Nov 12, 2025):

it's name 卧室小爱

Image

@Yumega commented on GitHub (Nov 12, 2025): it's name 卧室小爱 ![Image](https://github.com/user-attachments/assets/f982656e-0ab1-4df4-9508-7dc0d3a8f336)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AdGuardHome#5829
No description provided.