[ Ready go to ... https://macmost.com/e-2898 [ How To Block Websites On Your Mac] ]
There are three main ways to block websites on your Mac. Youc an use Screen Time, but that only works for Safari. Editing the hosts file will work across browsers and accounts. A better way may be to use a function of your Wi-Fi equipment.