Is this something that could be defeated with PiHole?
See the recommendations on this thread for the additional work you'll have to do: https://discourse.pi-hole.net/t/recommended-strategy-for-cli...
Some consumer routers may not allow the configuration necessary at all.