HELP! what’s the best way to block youtube and other rubbish websites in openwrt? thx

hi.

Currently I wish to COMPLETELY, 24/7x365 block youtube and some websites like lihkg.com etc within
my openwrt, they include brumeW, and others.

previously I tried using the plugin “adblock” and type the websites there.

May I ask is this the best way? (i dont want to modify the windows, want to do at the router level).

The blockage only need to be static and doesn’t need to vary with time or other factors.
Thank you.

uci add_list dhcp.@dnsmasq[0].server="/youtube.com/"
uci add_list dhcp.@dnsmasq[0].server="/lihkg.com/"
uci commit dhcp
/etc/init.d/dnsmasq restart

Make sure that the LAN clients use the router as a DNS server, or configure the firewall to intercept the DNS traffic. Flush the DNS cache of the windows computers before testing.

2 Likes

There are some additional DNS names in Blocking YouTube blocks other Google services - #3 by frollic

3 Likes

Brave browser blocks on PC and Android.

You'd also need to block/intercept dns over https, dns over tls etc

thanks all input but this is going to be complex when comparing to commercial one say TP link...

anyway i appreciate the inputs and will digest later. thx

ps: blocking other than the router level can easily be go around by user.
and indeep if they install VPN on the phone, the blockage at router fails.

if you want something more serious for filtering etc, consider AdGuardHome.

You can use their DNS service or install it on your router.

2 posts were split to a new topic: Using Adguard for specific Mac adresses

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.