Block URLs at router

Hope this isnt a silly question - but I can't find any way to do this in LuCI.
I want to add the URLs of amazon's update servers to a blacklist so they cant overwrite with new firmware he custom mods I've made to my Firestick.
How can I do this please?

You generally can't block URLs with a firewall, just IP addresses. The information you'll need to move forward is probably:

  • DNS name of the update servers
  • If there is a "hard-wired" update server in case the DNS-specified ones can't be reached
  • DNS name of any servers that the Firestick needs to communicate with for "normal" operation
  • Protocols / ports over which the Firestick communicates, both with the update servers, as well as during normal operation

Depending on the results of that, it may be possible to redirect the DNS for the update process only to an unreachable IP address.

2 Likes

Hi Jeff
I guess what I really want here is to use a parental controls module, which I think is available on the stock WRT1900 but not on OpenWRT..

You can use either adblock or simple-adblock to block domains:

adblock: https://github.com/openwrt/packages/tree/master/net/adblock/files
simple-adblock: https://github.com/openwrt/packages/tree/master/net/simple-adblock/files

2 Likes

Another package that looks very full-featured and mature is

You can use ad blocks .

Modify and paste in console once:

uci add_list dhcp.@dnsmasq[-1].address='/rogue.updates.amazon.com/0.0.0.0'
uci add_list dhcp.@dnsmasq[-1].address='/rogue.updates.amazon.com/::/0'
uci commit dhcp
/etc/init.d/dnsmasq restart