Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Block or Hide Wi-Fi Networks in Windows

Use Windows Wi-Fi filters to block one network or allow only selected network names. Learn how to undo filters and when forgetting a network is enough.

Table of Contents

Use a Windows Wi-Fi filter to prevent this PC from connecting to a specific network name (SSID). If you only want Windows to stop reconnecting automatically, forget the saved network instead. A filter applies to the PC where you set it.

Block a specific Wi-Fi network

Open the Wi-Fi list from the network icon on the taskbar and note the exact network name. If it’s a phone hotspot you own and two names are hard to tell apart, you can rename the hotspot on the phone.

Available Wi-Fi networks on the Windows taskbar

Open Command Prompt as administrator. Replace Network Name with the SSID, leaving the quotation marks in place.

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

Windows confirmation after adding a Wi-Fi block filter

To hide blocked networks from the list, run the following command. Use display=show if you want to see blocked networks again while keeping the filters.

netsh wlan set blockednetworks display=hide

Wi-Fi list after applying the Windows filter

Allow only specific Wi-Fi network names

First add every network you need, including your current one. Run the first command once per allowed SSID. After checking the names, run the second command to block other infrastructure Wi-Fi networks. Keep the rollback command below handy if you’re working without Ethernet.

netsh wlan add filter permission=allow ssid="Network Name" networktype=infrastructure
netsh wlan add filter permission=denyall networktype=infrastructure

Two access points can advertise the same SSID, so a name filter by itself cannot verify that an access point belongs to you.

View or undo filters

Use the first command to view configured filters. Use the second to undo the single-network block or the third to remove the deny-all rule.

netsh wlan show filters
netsh wlan delete filter permission=block ssid="Network Name" networktype=infrastructure
netsh wlan delete filter permission=denyall networktype=infrastructure

Forget a saved network instead

Open Settings > Network & internet > Wi-Fi > Manage known networks and choose Forget beside the network. Windows removes the saved profile. If that network is still nearby, it can still appear in the Wi-Fi list. Forgetting the profile can also help when you’re troubleshooting Wi-Fi on Windows 11 and need to reconnect with a new password.

Manage known networks and the Forget button in Windows

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.