News for hackers. Stuff that matters.
Re:Alex Payne — My Get-Back-To-Work Hack by unalone on Tuesday September 15, 2009 @10:46AM (#823908)
There is, but I want something automated. I lack self-control.
Re:Alex Payne — My Get-Back-To-Work Hack by rsheridan6 on Tuesday September 15, 2009 @11:03AM (#823941)
I intend to write something to do this soon, at the request of my wife. Basically, you need a cron job or something similar that edits /etc/hosts - shouldn't be too difficult.

But it would work better for people who don't know enough to manually edit /etc/hosts.

EDIT: the /etc/hosts thing would be to block specific sites, but it's just as easy to take the internet connection down completely with ifconfig or whatever your system uses.