If you use firefox and want to just block internetting, then you can use the greasemonkey extension to great success, I think.

Featured Greasemonkey User Script: Fight procrastination with Time to Go - Lifehacker