One could simply disable one's internet access, but for those of us who lack the willpower (me) to leave it turned off there are more extreme options.
For example, apps like Stop Procrastinating let you block internet access for a set period of time. You can choose how long the firewall will remain active, which sites will be blocked, and whether you want to keep the firewall active after you reboot your computer. (That last option was developed for those of us who know we're going to enable the app and then want to disable it right away.)
If you're wondering why one might need this app or apps like it, ask yourself the following questions: How often do you browse the web or use social media while in a meeting? How often do you use it on the toilet? Is getting on the internet the first and last thing you do everyday? Do you often lose track of conversations because you were distracted by the tiny screen in front of you?
If your answer to these questions is yes, then you could probably use an app like Stop Procrastinating to help you concentrate while working. The app is available for Windows and OSX, and costs $5 after a 90-day trial period.
image by Zak61099