DNS-based AdBlock on OpenWRT
(Updated: )
Router-based ad-blocking has advantages that all connected clients are protected. Also, it might speed up connections because filtering is done upstream (i.e. not on client but on the router). However this might be offset by relatively slow hardware of routers.
For OpenWRT, there are two options to block ads (openwrt.org). I chose the regular Adblock package (github.com).
I installed these packages via luci:
adblock
luci-app-adblock
wget
(with ssl) Numerous adblock lists are supported (github.com). One question you have to ask is if you trusts these lists, as they could break some websites. I settled on the list below, I’m curious to hear what experience you have.- blacklist - default
- disconnect - run by mozilla, known from browser plugin
- reg_nl - based on ablockplus easylist
- urlhaus - looked trustworthy, but is run by one individual
Regarding speed I don’t notice a difference, but I’ll keep a look out the coming weeks to see if anything is impacted.