If I avoid all my "info junkie" websites (HN, reddit, political news) between 8am and noon, my productivity skyrockets. It's remarkable.
Most importantly, for me, is to avoid those websites even during my "breaks." If I need a quick break, I'll physically get up and away from my computer. Otherwise that "five minutes" usually ends up being closer to an hour or so.