StayFocusd has your back.
Block any sites that take up a lot of your time. You can also block the entire Internet, except for the sites you allow. This mode allows you to focus as much as possible and not be distracted.
Set the rules for blocking by days, exactly when it is most important for you to be in focus and not waste time on distracting sites.
Enable Nuclear mode to immediately block websites when you need to be productive. Customize how and when the Nuclear Option is enabled.