How to Block or Hide Neighbor’s Wi-Fi Network from Appearing on Windows 11 or 10?

If you have bad neighbors and set offensive Wi-Fi network names, you might want to hide or block them on your PC. It may also happen; there are many WiFi SSID broadcasting around you and distracting you while choosing the correct WiFi network name.

With the help of Command Prompt, it is possible to prevent the Wi-Fi network name from showing up on your Windows 10 or 11 PC. It is a better idea to go ahead and block all other WiFi network name which does not belong to you.

In this gearupwindows article, we will learn the following:-

  1. Blacklist or Hide a Wi-Fi Network Name
  2. Whitelist a Wi-Fi Network
  3. View Filters

How to Blacklist or Hide a Wi-Fi Network Name?

You can blacklist or hide a WiFi network name on your PC using the “netsh” command by running Command Prompt as an Administrator. It is possible to hide an individual network by adding it to the block list. Once you put any WiFi network name in the block list, it will not appear in the list of nearby available Wi-Fi networks, and you can’t connect to it from Windows.

To open a Command Prompt with elevated rights, open the Start menu and search for cmd. In the available results, right-click the Command Prompt and select the Run as administrator option.

To block a network, run the following command in Administrative Command Prompt:-

netsh wlan add filter permission=block ssid="WIFI NAME" networktype=infrastructure

In the above command, replace the “WIFI NAME” with the name (SSID) of the wireless network that appears on your PC by clicking on the WiFi icon on the system tray.

For instance, we want to block “ACT,” which appears on my PC WiFi list. My command will be:

netsh wlan add filter permission=block ssid="ACT" networktype=infrastructure

Now you can see “ACT” network is no longer visible on my PC.

If you want to block more than one network SSID on your computer, you need to repeat the above steps.

One should note that the above command filters are based on the network name. So, if your neighbor renames their Wi-Fi network name, it will again appear in your Wi-Fi list with a new name.

If you want to undo the change and want to remove a network from the blocklist, run the following command and replace “WIFI NAME” with the name of the Wi-Fi network:-

netsh wlan delete filter permission=block ssid="WIFI NAME" networktype=infrastructure

Once you execute the above command, the network name will remove from the filter block list, and it will again show up in the WiFi list.

How to Whitelist a Wi-Fi Network?

You can block individual WiFi network names one by one; as shown in the first method, it will again appear in the WiFi list if your neighbor renames the network name. Hence, it is better to add one or more WiFi networks to the allowed list and then block all other network names. By doing this, you can ensure that no other network name will show up on the WiFi list and you can only connect to your network.

However, this method is embarrassing for those who use a portable device like a laptop. If you whitelist only the home network and take the laptop outside, you will not see the available Wi-Fi hotspots without changing this setting.

If you want to allow a specific WiFi network and block other networks, use the following command:-

netsh wlan add filter permission=allow ssid="WIFI NAME" networktype=infrastructure

Make sure to replace “WIFI NAME” with the name (SSID) of your wireless network.

For instance, if we want to allow my Wi-Fi network “JioJi” and disallow all other networks; my command will be the following:-

netsh wlan add filter permission=allow ssid="JioJi" networktype=infrastructure

Once you whitelisted one or more networks (SSID) on your PC, run the following command to block all other Wi-Fi networks that you haven’t specifically allowed:-

netsh wlan add filter permission=denyall networktype=infrastructure

Once you decide to undo the changes, run the following command:-

netsh wlan delete filter permission=denyall networktype=infrastructure

Once you execute the above command, you will see all WiFi networks that are not on the block list.

You can also optionally exclude the allowed Wi-Fi network rules you added. Just run the following command and make sure to replace “WIFI NAME” with the name of the Wi-Fi network:-

netsh wlan delete filter permission=allow ssid="WIFI NAME" networktype=infrastructure

How to View Filters?

To view the filters which you have created, execute the following command:-

netsh wlan show filters

That’s all!!!

Conclusion

In conclusion, having offensive Wi-Fi network names in your vicinity or a large number of available WiFi SSIDs can be distracting while trying to connect to the internet. However, with the help of Command Prompt, you can hide or block Wi-Fi network names on your Windows 10 or 11 PC. The article outlines how to blacklist or hide a WiFi network name and whitelist a Wi-Fi network. It also shows how to view filters, delete or remove Wi-Fi Network Profile and add a new Wi-Fi Network Profile in Windows 10. By following the steps outlined in the article, you can ensure that you only connect to your own Wi-Fi network without being bothered by other networks in the vicinity.

You might also be interested in the following:-

  1. How to delete or remove Wi-Fi Network Profile from Windows 10?
  2. How to add a new Wi-Fi Network Profile in Windows 10?

Leave a Reply