SelfControl for MacOS - let's you set a domain blocklist and a time limit. It's pretty tamper proof too, surviving reboots, etc. Really helps me buckle down when I'm resistant to getting work done!
I won’t tell you what that is, since it’s working for you.