i have a paper due in two days but i just cant seem to stay focused on writing it. im working on my computer and the internet just keeps popping up and distracting me.

is there any way(software, programming, etc.) to disable it just for a certain amount of time (say, like an hour..) so that ill be able to finish my work?