When you absolutely have to get your work done but can’t resist the urge to constantly check your emails, tweets or your Facebook, it may be a good idea to completely lock yourself out of the Internet until the more important tasks are complete.
A Shortcut to Turn Off the Internet
Should you ever wish to “forcefully” step away from the Internet for a while, the Toggle Internet script will make the task a little easier for you. This little script will completely disable the Internet on your Windows computer with a click and you can restore the Internet connection anytime later with, again, a click.
To give this a try, download Toggle-Internet.bat on your desktop, right click, choose “Run as Administrator” and you’ll be instantly disconnected from the Internet. Later, when you need to reconnect, just right-click the same file and run as an admin as before.
Internally, the script merely toggles the status of your Network Adapter (also known as the LAN adapter or Ethernet card) thus shutting down the Internet for you. If you were to disable or enable the Network Adapter manually, the steps would be Control Panel -> Network and Internet -> View Network Status -> Change Adapter Settings.