Hey, newbie programmer here. I would like to write a program that can block a website during a given time of day. I've read around a bit and it seems one possibility would be to write a script that edits /etc/hosts and use launchd/cron(?) to make it run at the desired times. What other ways are there of doing this? I would be looking to do this in python.