Keep your eye onthe prize! Corny, I know, but maybe just remind yourself every once in a while whats important. When you let your body and mind fall naturally to what it's attracted to, you can end up on a site like this or reddit or the like for a long time, but if you pause for a second and think about what you could be doing instead, you might pass on spending time here and doing some work.