Closed KnightmareVIIVIIXC closed 10 months ago
The lists are created automatically based on the source. Your changes will therefore be overwritten with the next update.
However, Denyallow is not currently supported by the hostlist compiler. Rules with Denyallow are not adopted.
This is the reason why @DandelionSprout has solved this via @@||.
1) The OP is probably in the wrong repo.
2) https://github.com/AdguardTeam/HostlistsRegistry/blob/main/filters/security/filter_12_DandelionSproutsAntiMalwareList/filter.txt shows it became supported 2 or 3 weeks ago.
3) I don't currently see a problem with @@||discord.gift^
. Even in the event that someone really doesn't like the Discord platform, ||discord.gift^$important
in custom entries would've sufficed. I suppose I can doublecheck to compare with AdGuard Home's service blocking, but that'd be a fringe scenario in my eyes personally.
2) https://github.com/AdguardTeam/HostlistsRegistry/blob/main/filters/security/filter_12_DandelionSproutsAntiMalwareList/filter.txt shows it became supported 2 or 3 weeks ago.
Thanks for pointing that out, I had overlooked it.
My way of thinking is to safe guard against potential future threats. For example, if sub.discord.gift becomes malicious and the ||discord*.gift^$denyallow=discord.gift rule is used, then the user will be safe; if you leave the @@||discord.gift^ rule, then the dangerous sub.discord.gift will be processed even if the user adds the rule ||sub.discord.gift^ to block the domain. Might as well take advantage of the modifiers available in the adblock syntax. https://i.postimg.cc/PrN6dYzW/Screenshot-20231202-112706-2.png
However, Denyallow is not currently supported by the hostlist compiler. Rules with Denyallow are not adopted.
Why, it is supported: https://github.com/AdguardTeam/HostlistCompiler/blob/f8559b02ee1730b6493e5aa57a9551222a6beda5/src/transformations/validate.js#L15
Support was only added a few weeks ago, so I suppose the word hasn't spread widely out yet.
Change @@||discord.gift to modifier: ||discord*.gift^$denyallow=discord.gift. Tested and working.