How to Block Wi-Fi Networks in Windows: A Complete Guide to Controlling Connections and Boosting Your Security

  • Use Windows commands to filter specific WiFi networks and prevent unwanted connections.
  • You can allow only the networks you choose and block the rest, improving security and organization.
  • Hide your own WiFi network from your router to prevent it from being visible to casual users.

Block WiFi networks in Windows

Seeing a long list of unknown Wi-Fi networks can be annoying for many Windows users, especially if you're looking to improve the security of your connections or simply avoid accidentally connecting to a strange network. Fortunately, the operating system offers several ways to block specific wifi networks or limit visibility to only the ones you're interested in. Here, you'll discover all the possible methods and the most relevant details to better manage your computer's wireless connections.

Why block or limit WiFi networks in Windows?

There are many reasons why you might want to restrict or filter the Wi-Fi networks that appear on your device. Some of the most common are:

  • Avoid accidental connections to public or unauthorized networks.
  • Reduce the risk of security attacks by preventing connections to unknown WiFi.
  • Clear the list of available networks for a more organized and simple experience.
  • Prevent other users on your computer from connecting to networks other than those you have authorized.

Windows doesn't have a simple graphical option in its Settings or Control Panel for filtering networks, but it does provide effective commands through the console, along with alternatives from your router or Windows Firewall.

Block a specific WiFi network using the command line

command to block wifi windows

One of the most direct and effective methods to Block a WiFi network in Windows is using the command line tool known as Symbol of the system (CMD). Follow these steps to prevent certain Wi-Fi networks from appearing in your list of available connections:

  1. Open the menu Home, writes cmd and right-click on "Command Prompt" to select Run as administrator.
  2. In the terminal that opens, run the following command, replacing "Network Name" with the exact name (SSID) of the Wi-Fi network you want to block:
    netsh wlan add filter permission=block ssid="Network name" networktype=infrastructure
  3. Once executed, the specified network will no longer appear in the list and you will not be able to accidentally connect to it.

Want to see a list of all the leaked networks? You can check blocked and allowed networks with this command:

netsh wlan show filters

To reverse the block and display the network again:

netsh wlan delete filter permission=block ssid="Network name" networktype=infrastructure

Allow only certain WiFi networks and block the rest

allow only certain WiFi networks

In many situations, you may prefer that your computer only be able to see and connect to a specific list of trusted Wi-Fi networks. Windows allows you to configure a "whitelist" of allowed networks and automatically block all others. The procedure is as follows:

  1. Allow a network by running this command for each SSID you want to authorize:
    netsh wlan add filter permission=allow ssid="Network name" networktype=infrastructure
  2. Add all the networks you need to continue watching. You can repeat this step as many times as you like.
  3. Finally, block the rest of the networks (those not included in the previous steps) with this command:
    netsh wlan add filter permission = denyall networktype = infrastructure

This way, only authorized networks will appear available and can be used by the device's users.

To remove this filter and display all WiFi networks again, use:

netsh wlan delete filter permission = denyall networktype = infrastructure

Tip: Use the show filters command to check your settings and make sure you have allowed all the necessary networks before limiting overall visibility.

How to hide your network from your router so it doesn't appear in Windows

hide wifi network on router

Another interesting solution is Hide your WiFi network directly from your router settingsThis means that the SSID (network name) will not be visible to those searching for available networks from a computer or mobile phone, although the network will remain active for those who know its name and password. You can also learn how to Protect your WiFi networks with the router correctly.

  1. Access your router's interface from any browser by entering its IP address, usually 192.168.1.1, 192.168.0.1 or another similar one.
  2. Log in with your administrator username and password. If you don't know them, check the label on your router or contact your internet service provider.
  3. Go to the section of Wireless Settings or similar.
  4. Look for the option of SSID broadcast, Broadcast SSID o Network Visibility and disable it.
  5. Save the changes and restart your router for the settings to take effect.

Warning: Hiding your SSID isn't a foolproof security measure, as there are advanced tools capable of detecting hidden networks. However, it does help reduce exposure to less experienced users.

Use Windows Firewall to restrict Wi-Fi connections

El Windows firewall It's another effective alternative for blocking unwanted connections, although it's often used to control traffic from programs and services rather than to filter visible Wi-Fi networks. However, you can configure rules to limit Internet access from certain connections or disable complete access to public networks. You can also check out tools to protect your WiFi connections.

  1. Open the Windows Security application and go to “Firewall and network protection”.
  2. Select the appropriate profile (public, private, or domain).
  3. Make sure Windows Defender Firewall is turned on.
  4. Check the option Block all incoming connections if you want to prevent any unauthorized access.
  5. In "Advanced Settings," you can add specific inbound or outbound rules to further restrict network access via specific programs or ports.

This solution is useful as a complement to the previous filters, especially for those looking for a detailed control of network traffic and want to maximize team safety.

Frequently Asked Questions About Blocking Wi-Fi Networks in Windows

  • Can I block a WiFi network without administrator rights? No, to run netsh commands it is essential to have administrator permissions on the system.
  • Does blocking the SSID affect other devices? No, filters applied from Windows only affect the computer on which the commands are run.
  • Does hiding the network from the router improve security? Only partially. It's still recommended to use a strong password and WPA3 or WPA2 encryption, as hidden networks can be detected with specialized tools.
  • Can I easily revert the changes? Yes, all the commands presented have their counterparts to remove filters and reset the network display.

Managing and filtering visible Wi-Fi networks on your Windows computer is easier than it seems thanks to the commands and options offered by the operating system. Whether you want to hide annoying networks, prevent dangerous connections, or ensure that only authorized devices can browse, the methods described here will give you complete control over your wireless environment. To expand your knowledge of other ways to secure your connections, also check out How to use VPN on Windows and other devices.

How to block WiFi from intruders
Related article:
How to Block Wi-Fi from Intruders and Protect Your Network: A Complete Guide