How to Disable the Internet on your Computer


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.

The New York Times has aggregated tips from some well-known authors on how they manage to stay productive (i.e., focus on book-writing) in the midst of online distractions and some of them offered similar advice:

Nick Bilton - I use an hourglass to ward off distractions. Once it’s flipped, my phone goes into Airplane Mode and I completely turn off the Internet in my home. I don’t allow myself to enter the Web’s vortex until every last grain of sand has drained into the base of the hourglass.

David Carr - I went to a cabin in the woods, yes, that had no Internet. It did have dial-up access, which is like having no Internet at all. Things moved very quickly after that.

Disable Internet Connection You can disable / enable Internet on your Windows PC with a click!

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.

One more thing. Toggle Internet will block all sites but should you wish to disable access to just a select groups of distracting websites while staying connected to Google Docs or your email, use Let Me Work. You can specify the list of sites that should be blocked and this script will modify the Windows HOSTS file to shut them off, temporarily.

📮  Subscribe to our Email Newsletter for Google tips and tutorials!

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
Amit Agarwal

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube