Adblock-fast configuration

I installed OpenWrt 25.12.0 on my ELECOM WRC-1167GS2, and it functions perfectly as a router.
Today, I installed Adblock-fast 1.2.2-r10 for the first time and configured it to use dnsmasq.nftset.
Adblock-fast is unstable, sometimes working correctly and sometimes not.
I'm using the OISD Small blocklist.
The configuration screen is as shown in Fig0.

I have two questions:
(1) /var/dnsmasq.cfg01411c.d/adblock-fast.dnsmasq
As shown in Fig1, only /4#inet#fw4#adb4 is added at the end of each domain line.

Is this correct?

(2) Partial URL matching
When checked with the adblock-fast check command,
does it only block domains that match exactly, as shown in Fig2?
For example, can't it block based on a pattern like .*porn[0-9a-z]+ using regular expressions, such as blocking if any part of the URL contains “porn”?

DNS doesn't do URL blocking, only FQDNs (or parts of).

Pi-Hole can do regex, perhaps AdGuard Home can too, still only on DNS name though.

Thank you.
I understand that Adblock-fast only supports FQDNs.
Also, thank you for the information that Pi-Hole or AdGuard support regular expressions.
However, it seems there is no Pi-Hole software available for OpenWrt. Also, since the WRC-1167GS2 I'm using is a very low-spec router, it seems AdGuard Home cannot be used.
I'll look into Adblock-fast a bit more and give it a try.
Thanks for the info for now.

this applies to all router based blockers, if you need something better, install a browser addon.

correct, you'd need to run it in a container.

1 Like