If you have a Raspberry Pi, look into using Pi-hole[1]. It provides network-wide blocking when installed on your home network by proxying requests. I also use AdGuard Pro[2], which provides a similar function when I'm outside my home network. Both happen to be open source software[3][4], so that's a plus.
[1]: https://pi-hole.net/
[2]: https://adguard.com/en/adguard-ios-pro/overview.html