DeletedUser96 N1b This is a good suggestion. One could also run a Pi-Hole instance to help with this. There is also dnscrypt-proxy, which lets you block sites at the DNS level.
DeletedUser28 DeletedUser96 But all these DNS-level blockers are very weak. For example they can't block first-party ads like those that Youtube serves. You get much better blocking when you use Firefox/Mull with uBlock Origin or Brave with Brave Shields.