Adblock-lean Black list

I am using OpenWrt 25.10.5 on an ELECOM WRC-1167GS2. Since this router has low specifications, I plan to install Adblock-lean.
Can I use Tofu_filter, which is commonly used in Japan, as a blacklist?

Tofu_filter is specialized for Japanese websites.
The Tofu_filter URL is as follows:

https://raw.githubusercontent.com/tofukko/filter/master/Adblock_Plus_list.txt

It appears that Adblock can be configured to use it as follows:
{
“tofu”: {
“url”: “https://raw.githubusercontent.com/tofukko/filter/master/Adblock_Plus_list.txt”,
“rule”: “BEGIN{FS=\”[|^]"}/^\|\ |([[:alnum:]_-]{1,63}\.)+[[:alpha:]]+\^(\$third-party)?$/{print tolower($3)}",
“size”: “XL”,
“descr”: “Japanese ADS”
}
}

Hi, this list is intended for browser adblockers and it is incompatible with adblock-lean or any other DNS-based adblocker. Please see the Supported formats section of the README.

1 Like

Nope, adblock support this format - e.g. adguard is using this syntax as well.

2 Likes

Thank you for your prompt reply.
I understand that Adblock-lean can only use FQDN-based lists.
Therefore, Tofu-filter cannot be used.
In other words, while Adblock-lean doesn’t consume router resources, it cannot utilize URLs or regular expressions.
If I absolutely want to use Tofu-filter, it seems I’ll need to install a more powerful router with a feature-rich solution like AdGuard.
Thanks anyway.

Sounds weird. As @antonk already mentioned, these lists are made for browser based plugins, not for DNS based adblockers. You'll get most probably false positive blocks ...

It's not about adblock-lean specifically. It's about the method used to provide network-wide adblocking. Essentially, the method is telling the DNS resolver on the router that it should refuse to resolve certain domains to IP addresses. DNS knows nothing about URLs so it is impossible to block URLs this way. Although @dibdot mentioned that this list is compatible with adblock, I imagine that adblock extracts domain names from the list and then adds those extracted domains to the blocklist. Probably something similar will happen if you use this filter with Adguard Home.