Unfortunately there is no way to block websites at the network level (that I know of) as browsers and mobile phones have started using hardcoded DNS resolvers, so the utility of this is limited.
You can still block at network level by configuring your router to intercept all port 53 traffic, redirect DNS-over-HTTPS using firewall rules for known DoH providers, and employ TLS inspection on your gateway for complete control.