mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
Domain-only filter lists support #481
Labels
No labels
P1: Critical
P2: High
P3: Medium
P4: Low
UI
bug
cannot reproduce
compatibility
dependencies
docker
documentation
duplicate
enhancement
enhancement
external libs
feature request
good first issue
help wanted
infrastructure
invalid
localization
needs investigation
performance
potential-duplicate
question
recurrent
research
snap
waiting for data
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AdGuardHome#481
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @furunos on GitHub (Jan 6, 2019).
When adding il.com to the blocking rule, gmail.com is blocked and in trouble.
edit (by ameshkov) see this comment for the details: https://github.com/AdguardTeam/AdGuardHome/issues/535#issuecomment-452489005
@furunos commented on GitHub (Jan 6, 2019):
I suggest adding the following code.
@ameshkov commented on GitHub (Jan 6, 2019):
You need to add
||il.com^if you want to blockil.comand its subdomains@furunos commented on GitHub (Jan 7, 2019):
If you use the following filter, AGH will block "gmail.com" because "il.com" is written.
https://v.firebog.net/hosts/Airelle-hrsk.txt
@furunos commented on GitHub (Jan 8, 2019):
If I use a domain only filter like "il.com", AGH blocks by domain partial match. Therefore, the AGH blocks domains not intended by the user. This is inconvenient because many filters that are published can not be used.
@hmage commented on GitHub (Jan 8, 2019):
Hi!
AdGuard filter rules follow the standard ad blocking syntax, described here, here and here. We have simplified the syntax and removed features that make no sense in dns context, but essentially we are matching hostnames instead of full urls against the filters.
Since standard ad blocking syntax defines that wildcard matching in the beginning and end is done by default, you want an anchor at the beginning
||and end^.We also support hosts format matching, but you will need to fix your rules by adding an IP address at the beginning of a line.
@furunos commented on GitHub (Jan 8, 2019):
I think that my idea is simple, but I respect your policy. And how about adding a function to exclude this filter in order to know that user can not use the domain only filter ?
@furunos commented on GitHub (Jan 8, 2019):
il.com=||il.comDo not you assume that "il.com" and "|| il.com" are the same ? This can reduce the number of wrong blocks by domains list. Implementation is also simple.
@ameshkov commented on GitHub (Jan 8, 2019):
As I recall, the malwaredomains provides
justdomainslist, and there's also firebog.net. Maybe you're right and it makes sense to handle the case of a simple domain name matching.I guess we could detect that the line looks like a domain name and automatically prepend
||to it.Reopening this issue as a feature request, we'll discuss it a bit later then.
@Apexgh0st commented on GitHub (Jan 14, 2019):
Some Domain-only filter lists would have "#" or sometimes "$" at the start for notes ex. https://ransomwaretracker.abuse.ch/downloads/RW_DOMBL.txt . Just wondering if those special characters would conflict your syntax rules in the future (I'm not familiar with adguard syntax/adblock rules).
@ameshkov commented on GitHub (Jan 14, 2019):
No prob, these lines will be discarded.
@szolin commented on GitHub (Oct 2, 2020):
AGH v0.103 doesn't block
gmail.comin caseil.comrule is active.