How to Block Wi-Fi Networks in Windows

Clicking the network icon on your Windows laptop or PC will display a number of “available” Wi-Fi networks. With so many unnecessary access points, the pop-up window can look cluttered and require you to scroll a bit to find the network you want. Additionally, some of these networks may be open and unencrypted. This guide lists several options for blocking Wi-Fi networks in Windows.

Table of Contents

Block Wi-Fi Networks in Windows

Windows doesn't provide any options in the Settings app or Control Panel, but you can easily block Wi-Fi networks using one of the methods shown below.

1. Command Prompt (one Wi-Fi network at a time)

Command Prompt provides a quick fix to delete one or more unnecessary Wi-Fi networks. All you need is the network name or SSID .

To start, search for "Command Prompt" (or "cmd") in the Windows search menu, right-click on it, and select Run as Administrator .

To identify the SSID you want to block, click the network icon on the taskbar and click the Manage Wi-Fi connections arrow . This will populate a list of Wi-Fi connections near your Windows device.

How to Block Wi-Fi Networks in Windows
List of Wi-Fi networks accessible from the Wi-Fi network icon in Windows 11.

In the Command Prompt window, execute the command below to block the Wi-Fi network. Replace "Wi-Fi Network Name" with the actual SSID or network name.

netsh wlan add filter permission=block ssid="Wi-Fi Network Name" networktype=infrastructure

After executing the command, the Wi-Fi network will be added to the blacklist filter and you will see a message saying: "The filter is added on the system successfully". You can add multiple blacklist filters for different SSIDs on separate lines. All of them will be blocked one by one.

How to Block Wi-Fi Networks in Windows
Blacklist filter has been successfully added to SSID in Command Prompt.

When you block a Wi-Fi network, it will no longer appear in the network connection pop-up window and you will not be able to connect to it. To verify this, go to Settings -> Network & internet -> Wi-Fi -> Show available networks . Blacklisted SSIDs will no longer appear.

How to Block Wi-Fi Networks in Windows
Blacklisted SSIDs will no longer show up in available networks.

2. Command Prompt (Block Wi-Fi networks in bulk)

Instead of deleting unnecessary Wi-Fi networks one by one, you can also delete them in bulk and only allow the Wi-Fi networks you intend to use.

Return to Command Prompt with admin privileges and enter the following command. Before pressing Enter , make sure to note the SSID your Windows device is currently connected to; otherwise, the device will be completely disconnected from the Internet.

netsh wlan add filter permission=denyall networktype=infrastructure
How to Block Wi-Fi Networks in Windows
Add "DenyAll" filter to blacklist all Wi-Fi networks in bulk while allowing exceptions in subsequent lines.

After inserting the "deny all" command, start adding exceptions to the command, starting with the Wi-Fi network you're currently connected to. Instead of "Wi-Fi SSID," add the name of the SSID you want to allow. Add multiple exceptions on separate lines.

netsh wlan add filter permission=allow ssid="Wi-Fi SSID" networktype=infrastructure

It's great to have a neat Wi-Fi icon on your Windows taskbar. You'll never be inundated with shady Wi-Fi networks again.

How to Block Wi-Fi Networks in Windows

If you accidentally entered a bulk blacklist without noting the current network's SSID, go back to your router's control panel on another device. Or, if you're connecting via a mobile hotspot, check the network name on your Android or iPhone, then add the appropriate SSID.

How to Block Wi-Fi Networks in Windows
The name of the mobile hotspot Wi-Fi network displayed on the smartphone device.

It's best to only enable the "deny all" setting in bulk when your Windows device is near trusted Wi-Fi networks, such as your home router. This isn't very convenient if you're traveling with your laptop.

3. Use “Manage Known Networks”

As we continue to use multiple Wi-Fi networks, their history will be saved on the device. If those SSIDs are still showing up after you've stopped using them for a long time, you can permanently delete them from your Windows device.

Go to Settings -> Network & internet -> Wi-Fi -> Manage known networks . Click Forget to remove each Wi-Fi network that you don't want to appear on your Windows device.

How to Block Wi-Fi Networks in Windows
Forget a Wi-Fi network from showing up on your Windows device.

Enable Wi-Fi Networks on Windows

Just like you can block certain Wi-Fi networks from appearing on your Wi-Fi network icon, you can also allow them again. The methods are similar to the ones used above to block Wi-Fi networks.

1. Command Prompt (one Wi-Fi network at a time)

To allow a specific Wi-Fi network, remove the entry from the blacklist. Go back to Command Prompt with amdin privileges and execute the command below while replacing "Wi-Fi Network Name" with the name of the blocked network.

netsh wlan delete filter permission=block ssid="Wi-Fi Network Name" networktype=infrastructure
How to Block Wi-Fi Networks in Windows
Remove the blacklisted Wi-Fi network from the filter to ensure that the network shows up again on your Windows device.

After you enter the command, the blocked Wi-Fi SSID will reappear in the network icon in the system tray.

How to Block Wi-Fi Networks in Windows
Allow deleted SSID in the list of Wi-Fi networks in the system tray.

If you don't remember the SSID name, use the command below. It will list the names of all allowed and blocked Wi-Fi networks.

netsh wlan show filters
How to Block Wi-Fi Networks in Windows
Show filter command in Command Prompt to display all blacklisted Wi-Fi networks.

2. Command Prompt (Allow batch)

If you previously used the "deny all" command to block all Wi-Fi networks from appearing on the Windows Wi-Fi icon display page, you can easily undo that. Just enter the following "delete" command into Command Prompt with amdin privileges.

netsh wlan delete filter permission=denyall networktype=infrastructure

The command will remove the "deny all" filter and allow all Wi-Fi networks and those you added as exceptions.

How to Block Wi-Fi Networks in Windows
Remove "DenyAll" permission to unblock all Wi-Fi networks.

3. Undo forgetting Wi-Fi network

To retrieve forgotten Wi-Fi networks on a Windows device, you basically just need to restart the device and go near the deleted SSID. The network will reappear and you will have to enter the password once before you can save it.

If that doesn't work, reset your entire network. One way to do this is to flush your network using ipconfig/flushDNS , which will reorder the network stack. This should allow your Windows device to connect to previously blocked Wi-Fi networks.

Blocking Wi-Fi networks is necessary if you don't want other users' networks to interfere with your main connection. If you're struggling with slow Wi-Fi in your home, learn how to get normal Internet speeds .

See also:

Sign up and earn $1000 a day ⋙

Leave a Comment

What is WiFi? How does WiFi work?

What is WiFi? How does WiFi work?

WiFi is a form of local area networking and wireless Internet access used by people around the world to connect their devices to the Internet without cables.

Should You Use Public Wi-Fi in 2025?

Should You Use Public Wi-Fi in 2025?

Nowadays, free wifi networks are installed everywhere, from coffee shops, amusement parks, shopping malls, etc. This is very convenient for us users to be able to connect to the network everywhere to surf Facebook and work. However, is using free wifi safe?

How to Change WiFi Hotspot Name on iPhone and Android

How to Change WiFi Hotspot Name on iPhone and Android

To make your mobile hotspot stand out and be easier to find, you can give it a unique and distinctive name.

How to Turn Off Random MAC Address on Android

How to Turn Off Random MAC Address on Android

To ensure better security, devices running Android 10 and above will use random WiFi MAC addresses by default.

What is the Guest Network? How to set up a guest network for the Router

What is the Guest Network? How to set up a guest network for the Router

When you want to connect to wifi in a public place, you will find some wifi networks with the word Guest, this is the guest network, also known as the Guest Network. In this article, we will learn more about the guest network as well as how to set up this network for the Router.

What is Beamforming Technology? What is the benefit? Is there a need for a Wi-Fi Router?

What is Beamforming Technology? What is the benefit? Is there a need for a Wi-Fi Router?

Most Wi-Fi routers today want to apply Beamforming technology to improve Wi-Fi transceiver capabilities, avoid interference, and increase connection speed for terminals. So what is Beamforming, how does it work? This article will introduce you to the Beamforming technology.

What is MU-MIMO technology? What are the advantages and disadvantages? Why should I use it?

What is MU-MIMO technology? What are the advantages and disadvantages? Why should I use it?

Since 2015, the MU-MIMO concept appeared with the promise of a technology that speeds up to 4x faster than traditional routers. The following article will help you better understand MU-MIMO technology.

How to use Wireless Network Watcher to check Wifi users

How to use Wireless Network Watcher to check Wifi users

When you use the network, especially the Wifi network, the slow and losing network phenomenon is unavoidable, there are many causes of this unpleasant phenomenon, possibly due to the network operator, the connection line. unstable connection, user download overload, and

How to fix “Well Need Your Current Windows Password” error on Windows 10/11

How to fix “Well Need Your Current Windows Password” error on Windows 10/11

Are you getting the “We'll need your current Windows password one last time” error? This annoying pop-up can prevent you from getting things done.

Quickly fix Unmountable Boot Volume error on Windows 10/11

Quickly fix Unmountable Boot Volume error on Windows 10/11

The Unmountable Boot Volume error occurs due to some installed software conflicting with the operating system or due to the computer suddenly shutting down,... In the article below, WebTech360 will guide you through some ways to fix this error.

How to Fix Clipboard History Error in Windows 11 Latest Update

How to Fix Clipboard History Error in Windows 11 Latest Update

If you use Clipboard History to store data for later use, there is a small chance that the data will remain empty no matter what you try.

How to remove Copilot and other AI features in Windows

How to remove Copilot and other AI features in Windows

If you don't care about having extra bloatware on your system, there are ways to remove or disable Windows Copilot on Windows 11.

Why is the laptop battery percentage estimate never accurate?

Why is the laptop battery percentage estimate never accurate?

Most laptop users have encountered a situation where Windows shows 2 hours of battery life left, then five minutes later it jumps to 5 hours or even 1 hour. Why does this time jump around like that?

10 Windows 11 settings to maximize laptop battery life

10 Windows 11 settings to maximize laptop battery life

Laptop batteries degrade over time and lose capacity, resulting in less battery life. But after tweaking some deeper Windows 11 settings, you should see a significant improvement in battery life.

Microsoft: PCs running Windows 11 21H2/22H2 will be forced to update to 23H2 next month

Microsoft: PCs running Windows 11 21H2/22H2 will be forced to update to 23H2 next month

Windows 11 version 21H2 is one of the major original releases of Windows 11 that began rolling out globally on October 4, 2021.

Microsoft spams Copilot QR codes on Windows 11 lock screen to lure users

Microsoft spams Copilot QR codes on Windows 11 lock screen to lure users

The year 2023 saw Microsoft betting heavily on artificial intelligence and its partnership with OpenAI to make Copilot a reality.

How to Disable User Accounts on Windows 11

How to Disable User Accounts on Windows 11

You can disable User Accounts so that others can no longer access your computer.

Buying a Windows laptop is harder than ever

Buying a Windows laptop is harder than ever

Is the NPU different enough to delay purchase and wait for the PC Copilot+ to become mainstream?

How to turn on and off battery saving mode on Windows 11 laptop

How to turn on and off battery saving mode on Windows 11 laptop

Windows 11's Battery saver mode is a feature designed to extend laptop battery life.

Microsoft Launches New Sticky Notes App for Windows 11

Microsoft Launches New Sticky Notes App for Windows 11

After keeping things the same for years, the Sticky Note update in mid-2024 changed the game.

How to fix IRQL NOT LESS OR EQUAL error on Windows

How to fix IRQL NOT LESS OR EQUAL error on Windows

The IRQL NOT LESS OR EQUAL error is a memory-related error that typically occurs when a system process or driver attempts to access a memory address without proper access permissions.

6 Ways to Copy File and Folder Paths in Windows 11

6 Ways to Copy File and Folder Paths in Windows 11

Paths are the locations of files or folders in Windows 11. All paths include the folders you need to open to get to a specific location.

Compare Windows 10 and Windows 11

Compare Windows 10 and Windows 11

Windows 11 has officially launched, compared to Windows 10 Windows 11 also has many changes, from the interface to new features. Please follow the details in the article below.