A simple website blocker which works on windows, mac and linux.
Schedule the website_blocker.py file using Task Scheduler on windows or open the terminal as an administrator and execute the file. Make sure to change hosts_path for mac and linux, it should be "/etc/hosts".