There are two ways to tackle distraction: avoidance and mindful practice. If you're distracted by a tool like the Internet, don't cover your eyes and disconnect until it's no longer a source of distraction. Instead, understand the nature of your distraction and practice changing your relationship to it. Use mindfulness to practice self-control and willpower.
Self-Control
There is one post tagged Self-Control.