There are plenty of good reasons to disable internet access on a computer. You might need a distraction-free writing session, want to prevent an application from calling home, need to test software offline, or simply wish to stop a child from spending six uninterrupted hours watching videos about unusually dramatic hamsters.
Fortunately, both Windows and macOS offer several ways to disconnect from the internet. The best method depends on whether you want to block Wi-Fi temporarily, disable every network connection, restrict one application, or create a scheduled offline period.
This guide explains how to disable internet access on Windows and Mac using quick settings, network adapters, firewall rules, command-line tools, Screen Time, and router controls. It also explains what each method does not block, because turning off Wi-Fi while an Ethernet cable remains connected is the technological equivalent of locking the front door and leaving the garage wide open.
Note: Menu names may vary slightly depending on your Windows or macOS version, hardware, administrator settings, and whether the computer is managed by an employer or school.
Choose the Right Internet-Blocking Method
Before changing any settings, decide what you actually want to accomplish. “Disable the internet” can describe several different jobs.
| Goal | Best Method | Difficulty |
|---|---|---|
| Disconnect for a few minutes | Turn off Wi-Fi or enable airplane mode | Easy |
| Block all wired and wireless access | Disable network adapters or services | Moderate |
| Stop one Windows program from connecting | Create an outbound firewall rule | Moderate |
| Limit a child’s browsing time | Use Screen Time, family controls, or router controls | Moderate |
| Test software in a truly offline environment | Disable every adapter and unplug network cables | Moderate |
Save open cloud documents before disconnecting. Internet shutdowns can interrupt file synchronization, remote desktop sessions, online licensing, software updates, web-based email, streaming, and automatic backups.
How to Disable Internet Access on Windows
Method 1: Turn Off Wi-Fi from Quick Settings
This is the fastest option when your Windows PC connects only through Wi-Fi.
- Click the network, sound, or battery area on the right side of the taskbar.
- Select the Wi-Fi button to turn it off.
- Confirm that the network icon shows the computer is disconnected.
To reconnect, open Quick Settings and select Wi-Fi again. This method is convenient, but it does not disable an Ethernet connection, USB network adapter, cellular modem, or another active interface.
Method 2: Use Airplane Mode
Airplane mode shuts down wireless communications quickly and is useful on laptops and tablets.
- Open Settings.
- Select Network & internet.
- Select Airplane mode.
- Turn airplane mode on.
You can also open Quick Settings and select the airplane icon when it is available. Remember that airplane mode primarily affects wireless radios. A wired Ethernet connection may continue working, so unplug the cable or disable the Ethernet adapter when you need a complete shutdown.
Method 3: Disable a Windows Network Adapter
Disabling the adapter is more thorough than merely disconnecting from one network. Windows will stop using that interface until you enable it again.
- Right-click the Start button and select Device Manager.
- Expand Network adapters.
- Right-click the adapter you want to stop, such as a Wi-Fi or Ethernet adapter.
- Select Disable device.
- Confirm the change when prompted.
Repeat the process for every physical adapter that can provide internet access. To restore the connection, return to Device Manager, right-click the disabled adapter, and select Enable device.
A less hardware-oriented route may also be available through Settings > Network & internet > Advanced network settings, where Windows displays installed network adapters. Depending on the Windows build, you may be able to disable an adapter directly from that page.
Method 4: Disable an Adapter with PowerShell
PowerShell is useful when you want a repeatable command, but it must be opened with administrator privileges.
First, list the available adapters:
Find the exact adapter name, and then disable it:
To enable it later:
For a wired connection, replace Wi-Fi with the name shown for the Ethernet adapter. Avoid running broad commands that disable every listed adapter unless you understand the consequences. Virtual machines, VPN clients, development environments, and corporate security tools may install virtual adapters that should not be switched off casually.
Method 5: Disable Internet Access with Command Prompt
Windows also includes the netsh utility. Open Command Prompt as an administrator and display the available interfaces:
Disable a specific interface:
Enable it again:
The interface name must match the name displayed on your computer. If it is called Ethernet 2, for example, use that exact wording inside the quotation marks.
Method 6: Physically Disconnect the Computer
Physical disconnection is wonderfully unglamorous and highly effective:
- Unplug the Ethernet cable.
- Remove a USB Wi-Fi or Ethernet adapter.
- Disconnect a cellular modem.
- Turn off Wi-Fi.
This method is ideal when testing offline software because it avoids complicated firewall configurations. It is also easy to reverse, provided nobody has hidden the Ethernet cable in a drawer labeled “miscellaneous mysteries.”
How to Disable Internet Access on a Mac
Method 1: Turn Off Wi-Fi
For a Mac connected through Wi-Fi, the quickest method is Control Center.
- Click Control Center in the menu bar.
- Click Wi-Fi.
- Turn Wi-Fi off.
You can also open Apple menu > System Settings > Wi-Fi and switch Wi-Fi off there. Turning Wi-Fi off does not disable Ethernet, Thunderbolt networking, a USB network adapter, or a connected mobile device that is sharing its connection.
Method 2: Disconnect Ethernet
If your Mac uses a wired connection, unplug the Ethernet cable from the computer, dock, or USB adapter. Macs frequently switch between Wi-Fi and Ethernet automatically, so check both connections when your supposedly offline Mac continues receiving messages with suspicious enthusiasm.
Method 3: Make a Network Service Inactive
macOS lets you deactivate an individual network service without deleting its configuration.
- Open Apple menu > System Settings.
- Select Network.
- Control-click the active service, such as Wi-Fi or Ethernet.
- Select Make Service Inactive.
Repeat the steps for any other connection that could provide internet access. This method is useful because your saved network configuration remains available. When you want to reconnect, return to Network settings and make the service active again.
Method 4: Use a Separate Offline Network Location
Network locations allow a Mac to store different collections of network settings. You could create a normal location for everyday use and an offline location in which Wi-Fi and Ethernet services are inactive.
- Open System Settings > Network.
- Open the location menu and select Edit Locations.
- Add a location named something obvious, such as Offline.
- While using that location, make the available network services inactive.
- Switch back to your regular location when internet access is needed.
This approach is handy for writers, presenters, software testers, and anyone who frequently switches between connected and disconnected work.
Method 5: Disable a Mac Network Service in Terminal
Advanced users can control network services with the built-in networksetup command. Begin by listing service names:
Disable Wi-Fi as a network service:
Enable it again:
To disable Ethernet, use the exact Ethernet service name shown by the list command. The administrator password may be required, and Terminal will not display characters while the password is being entered. That blank-looking password field is normal, not a personal attack from your Mac.
How to Block Internet Access for One Application
Block a Program with Windows Defender Firewall
Windows Defender Firewall can create an outbound rule that prevents one application from sending traffic while the rest of the computer stays online.
- Open the Start menu and search for Windows Defender Firewall with Advanced Security.
- Select Outbound Rules.
- Choose New Rule.
- Select Program or Custom.
- Browse to the application’s executable file.
- Select Block the connection.
- Choose the network profiles to which the rule should apply.
- Give the rule a clear name and finish the wizard.
Windows normally permits outbound traffic unless a rule blocks it, so the outbound rule is the important part. An inbound rule alone does not necessarily stop the application from contacting internet servers.
Some programs use launchers, helper processes, update services, or multiple executable files. You may need separate rules for those components. Test the application afterward and remove or disable the rule if essential features stop working.
Understand the Mac Firewall’s Limitations
The built-in macOS application firewall is designed mainly to control incoming connections to apps and services. Turning it on improves protection against unsolicited inbound access, but it is not the same as disconnecting the Mac or creating a comprehensive outbound block for one app.
For reliable outbound restrictions on a Mac, consider network-level controls provided by a router, an organization’s device-management system, or a reputable outbound-filtering utility. For a temporary offline session, disabling the relevant network services remains the simplest and clearest approach.
Use Screen Time for Scheduled Restrictions
Screen Time on a Mac can limit applications, categories, and websites. Open System Settings > Screen Time > App Limits, add the apps or websites you want to restrict, set a daily limit, and enable Block at end of limit.
Screen Time is useful for reducing browsing or controlling a child’s usage. It is not a technical substitute for disabling every network adapter, especially when the goal is security testing or guaranteed offline operation.
Common Internet-Blocking Mistakes
Turning Off Wi-Fi but Forgetting Ethernet
A computer can remain online through a cable, docking station, USB adapter, cellular modem, or phone hotspot. Check every active network interface before declaring victory.
Changing DNS and Assuming the Internet Is Disabled
Entering an invalid DNS server may stop ordinary website names from resolving, but it does not necessarily block direct IP connections, cached records, local network traffic, or applications using alternative resolution methods. DNS sabotage is unreliable and creates confusing troubleshooting later.
Disabling the Firewall Instead of the Connection
A firewall is a security control, not an internet on-off switch. Turning it off may expose the computer while leaving internet access fully operational. Disable adapters or create targeted blocking rules instead.
Forgetting Cloud-Synced Work
Before disconnecting, allow important files to finish syncing. Confirm that documents needed offline are stored locally rather than represented by cloud-only placeholders.
Disconnecting a Computer You Control Remotely
Disabling the active adapter immediately ends remote desktop, screen sharing, and many management sessions. Arrange a local recovery method before making the change. Otherwise, your next technical procedure may be called “walking across the building.”
Real-World Experiences: What Happens When You Work Offline
The first lesson from intentionally disabling internet access is that modern computers are far more dependent on connectivity than they appear. A word processor may work perfectly, but its templates, fonts, grammar services, stock images, and cloud folders may not. A music app may display downloaded albums while quietly refusing to play one track whose license has not been refreshed. An application that looked completely local five minutes ago can suddenly behave as though civilization has ended.
For short distraction-free sessions, the easiest approach is usually the best. Turning off Wi-Fi from Windows Quick Settings or the Mac menu bar takes seconds and is easy to reverse. It creates just enough friction to stop casual browsing without turning reconnection into an information-technology expedition. Writers often find that this tiny barrier works surprisingly well. Reconnecting requires a deliberate choice rather than an unconscious click on another tab.
Software testing is different. A developer checking whether an application functions offline should not rely on closing the browser or disconnecting from one Wi-Fi network. The computer may reconnect automatically, switch to Ethernet, join a phone hotspot, or continue communicating through a virtual network interface. A stronger test disables the relevant physical adapters and confirms the result by attempting to reach several services.
It is also useful to distinguish between internet access and local network access. Disabling Wi-Fi or Ethernet normally removes both, which means the computer may lose access to network printers, shared folders, media servers, backup devices, and smart-home controls. A firewall or router rule can sometimes block the wider internet while preserving local resources, but that requires more careful configuration. The phrase “I only wanted to block YouTube” has launched many accidental printer investigations.
Per-application blocking produces another lesson: applications rarely travel alone. A photo editor may use a separate update service. A game may rely on a launcher. A business program may contact authentication, licensing, analytics, and cloud-storage processes. Blocking only the obvious executable can leave other components connected, while blocking everything associated with the program can break sign-in or file access. Good results come from testing one rule at a time and keeping notes about what changed.
Parents and productivity-focused users generally have a better experience with scheduled controls than with repeatedly disabling hardware. Screen Time, family-management features, and router schedules can create predictable periods in which browsing or selected apps are unavailable. These controls are not impossible to bypass, particularly when the person using the computer has administrator access, but they are practical for building habits and setting household expectations.
Another practical habit is preparing an offline workspace before disconnecting. Download reference documents, save cloud files locally, open required webpages in reading mode, confirm that password-manager data is available offline, and queue any media you need. A five-minute preparation routine prevents the offline session from ending after 90 seconds because one crucial spreadsheet lives exclusively in the cloud.
Finally, always create a clear path back online. Write down the adapter or service you disabled, especially when using Device Manager, PowerShell, Command Prompt, Terminal, or network locations. Avoid changing several unrelated settings at once. When the session ends, reconnect methodically and verify Wi-Fi, Ethernet, VPN access, cloud synchronization, and automatic updates. Going offline should feel like closing a door for a while, not bricking yourself into a digital basement.
Conclusion
The fastest way to disable internet access is to switch off Wi-Fi, enable airplane mode, or unplug the network cable. For a more complete block, disable the computer’s Wi-Fi and Ethernet adapters or make the corresponding macOS network services inactive. Windows users can also create outbound firewall rules for individual programs, while Mac users can use Screen Time for scheduled app and website limits.
Choose the least complicated method that satisfies your goal. Quick toggles are best for temporary focus. Adapter controls are better for offline testing. Firewall and router rules are more suitable when only certain applications, devices, or hours should be restricted. Most importantly, remember how to reverse every change before making it. Future you deserves internet access too.