This is so much easier to accomplish with a pi-hole and the pihole remote app[1]. Block requests out to forbidden sites at the network level, disable the pihole for an amount of time when you want to slum it.
[1] https://apps.apple.com/us/app/pi-hole-remote/id1515445551
replies(1):