Hide and block unused Wifi networks on PC

Unless we live in an isolated place or in a beautiful villa, we will probably be surrounded by neighbors and from our computer we can see their wifi networks, the signal of which can arrive more or less strong depending on the distance and thickness of the walls.
Seeing the neighbors' wifi networks from our computer is completely useless, it is possible to make sure that the names of the networks are hidden from the search and that the wifi networks we have access to are only visible .
Hiding and blocking unused wifi networks is useful especially if a neighbor has decided on an inappropriate network name for children, or a nearby network is open and without controls (if restrictions have been configured on the sites visible on the PC).
READ ALSO: Block PC and Wifi network devices
To make the name of a wifi network no longer appear in the list of wifi networks available on a Windows PC, it is necessary to open the command prompt from administrators.
To do this, launch the Start menu, search for the command prompt, right-click on it and run it as an administrator or, in Windows 10, right-click on the Start button flag.
To block a network, you must run the following command by replacing "WIFI NAME" with the name (the SSID) of the wireless network that appears in the list of available networks.
netsh wlan add filter permission = block ssid = "WIFI NAME" networktype = infrastructure
You can repeat this command to block and hide all the wifi networks you want.
To cancel the lock, the command becomes
netsh wlan delete filter permission = block ssid = "WIFI NAME" networktype = infrastructure
Instead of hiding individual networks, you can alternatively add one or more Wi-Fi networks to a list of allowed ones, blocking all the others.
This ensures that the device can only connect to approved networks.
Note that this filter system is not recommended on laptops, because it prevents the PC from connecting to the internet through other wifi networks other than those allowed.
The command to filter the allowed wifi networks and allow only one is the following:
netsh wlan add filter permission = allow ssid = "WIFI NAME" networktype = infrastructure
As before, replace WIFI NAME with the name of the network you want to use.
This command can also be repeated several times to add other networks to the list of allowed ones.
Once a list of allowed networks has been set, with the following command all other Wi-Fi networks are blocked :
netsh wlan add filter permission = denyall networktype = infrastructure
To cancel this change, run the following command.
netsh wlan delete filter permission = denyall networktype = infrastructure
The PC will now be able to see and connect to all networks even if they are not included in the allowed list.
To remove all allowed Wi-Fi network rules, run the following command, replacing "WIFI NAME" with the name of the Wi-Fi network.
netsh wlan delete filter permission = allow ssid = "WIFI NAME" networktype = infrastructure
To view the active filters created, run the following command:
netsh wlan show filters
Using the commands seen above, it is possible to eliminate all the filters that are displayed in the list.
READ ALSO: 10 Most Useful Netsh Network Commands on Windows

Leave Your Comment

Please enter your comment!
Please enter your name here