AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home.html
GNU General Public License v3.0
23.85k stars 1.75k forks source link

Show all the rules blocked the request #6347

Open PeterDaveHello opened 9 months ago

PeterDaveHello commented 9 months ago

Prerequisites

The problem

Currently in the logs, it'll only display one rule that blocked the request, even if there're many rulesets will block the request:

So when debugging some problem or trying to improve the user experience, it sometimes could be hard to properly disable all related blocklists. Though there's an allowlist feature, but the scenario and usage could be different.

Proposed solution

It would be more convenient to know that rules also blocked it, NextDNS & Pi-Hole both provide similar function just like this, just as reference:

$ pihole -q app-measurement.com
 Match found in https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts:
   app-measurement.com
 Match found in https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt:
   ||app-measurement.com^
 Match found in https://adguardteam.github.io/HostlistsRegistry/assets/filter_29.txt:
   ||app-measurement.com^
 Match found in https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt:
   app-measurement.com
 Match found in https://raw.githubusercontent.com/badmojr/1Hosts/master/mini/domains.txt:
   region1.app-measurement.com
 Match found in https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardTracking.txt:
   app-measurement.com

Alternatives considered and additional information

No response

Dynamic5912 commented 9 months ago

I'm sure it's just blocked by whichever list sees the domain first, not multiple lists.

Does it make a difference which list the block comes from?

Correct me if I am also wrong but I think AGH automatically removes duplicate domains/entries from multiple lists. I could be wrong though.

Suspectxyzz commented 8 months ago

I also have a problem, it block and I don't know which source it is from

image image image

https://raw.githubusercontent.com/SystemJargon/filters/main/firebog-ticklist.txtcheck it out wac-ring.msedge.net t-ring-fallback.msedge.net

Dynamic5912 commented 8 months ago

I also have a problem, it block and I don't know which source it is from

image

image

image

https://raw.githubusercontent.com/SystemJargon/filters/main/firebog-ticklist.txtcheck it out

wac-ring.msedge.net

t-ring-fallback.msedge.net

What do you mean "what source it's from"?

Suspectxyzz commented 8 months ago

I also have a problem, it block and I don't know which source it is from image image image https://raw.githubusercontent.com/SystemJargon/filters/main/firebog-ticklist.txtcheck it out wac-ring.msedge.net t-ring-fallback.msedge.net

What do you mean "what source it's from"?

I wanted to say, as you can see, it doesn't show correctly, from what source (link) is it blocking, if you search in the link above, there are no such restrictions

ppfeufer commented 8 months ago

Hover your mouse over this question mark. image