Is the problem that you spend to much time online, or that you don't like what you're working on?
You nailed it. Lately I've been bored by my work. When I'm excited about what I'm working on, the problem is much less serious.
At least that is how it is for me. I've found that if I have boring work stuff to do, the ONLY way I can get it done in any sort of reasonable time frame is to just immediately dive into it and barrel through it as soon as I wake up. (actually after I wake up and do a bit of exercise)
Of course any super rich and successful person will tell you the real way to solve the boring work problem is to convince someone else to do it for you, so you can spend more time keeping up on things. :)