Nuacht

Add all the sites you want to block, then save the file. It’s very similar on macOS, but you can use the Terminal instead of Notepad.