Table of Contents
Table of contents
Block Wi-Fi networks in Windows
Command Prompt (one Wi-Fi network at a time)
Command Prompt (Batch Wi-Fi Network Blocked)
Use "Manage known networks"
Allow Wi-Fi networks
Command Prompt (Batch Allowed)
Undo Forgot Wi-Fi Network
Home System Tutorial Windows Series How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

May 16, 2025 am 02:06 AM

Clicking the network icon on a Windows laptop or PC will show multiple "available" Wi-Fi networks. With too many access points not required, the pop-ups can appear cluttered and you need to scroll to find the network you need. Additionally, some of these networks may be open and unencrypted. This guide lists several options for blocking and allowing Wi-Fi networks in Windows.

Table of contents

  • Block Wi-Fi networks in Windows
    1. Command Prompt (one Wi-Fi network at a time)
    1. Command Prompt (Batch Wi-Fi Network Blocked)
    1. Use "Manage known networks"
  • Allow Wi-Fi networks
    1. Command Prompt (one Wi-Fi network at a time)
    1. Command Prompt (Batch Allowed)
    1. Undo Forgot Wi-Fi Network

Block Wi-Fi networks in Windows

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

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

Command Prompt provides a quick solution to remove one or more unwanted Wi-Fi networks. You only need the network name or SSID.

First, search for "Command Prompt" (or "cmd") in the Windows Search menu, right-click it, and select Run as administrator .

To identify the SSID you want to block, click the network icon on the taskbar, and then click the Manage Wi-Fi Connections arrow. It will display a list of Wi-Fi connections close to your Windows device.

How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

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

 <code>netsh wlan add filter permission=block ssid="Wi-Fi Network Name" networktype=infrastructure</code>
Copy after login

After executing the command, the Wi-Fi network will be added to the blacklist filter, and you should see a message: "Filters were successfully added on the system." You can add multiple blacklist filters to different SSIDs, and they will be blocked one by one.

How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

When you block a Wi-Fi network, it will no longer appear in the network connection pop-up and you will not be able to connect to it. To verify this, go to Settings -> Networks and Internet -> Wi-Fi -> Show Available Networks . The SSID on the blacklist will no longer be visible.

How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

Tip : When you travel, you may encounter unknown public Wi-Fi networks. If you need to use them, check out our list of notes on using public Wi-Fi networks.

  1. Command Prompt (Batch Wi-Fi Network Blocked)

You can remove unwanted Wi-Fi networks at once, not just one by one, allowing only the Wi-Fi networks you plan to use.

Return to the command prompt for elevated permissions and enter the following command. Before pressing Enter , note down the SSID of your Windows device's currently connected; otherwise, it will completely disconnect from the internet.

 <code>netsh wlan add filter permission=denyall networktype=infrastructure</code>
Copy after login

How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

After inserting the "Deny All" command, start adding exceptions to it, starting with the Wi-Fi network you are currently connected to. Replace "Wi-Fi SSID" with the SSID name you want to allow. Add multiple exceptions to different rows.

 <code>netsh wlan add filter permission=allow ssid="Wi-Fi SSID" networktype=infrastructure</code>
Copy after login

It's very enjoyable to have a neat Wi-Fi icon on your Windows taskbar. You will no longer be overwhelmed by suspicious Wi-Fi networks.

How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

If you misplaced the batch blacklist without noting the current network SSID, go back to the router dashboard on another device. Or, if you are using a mobile hotspot, check the network name on your Android or iPhone and add the correct SSID name.

How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

It is best to enable the batch "Deny All" setting only when your Windows device is close to a trusted Wi-Fi network such as a home router. If you're traveling with a laptop, it's not very convenient.

Note : You can temporarily disable the Wi-Fi network at any time to avoid unwanted Wi-Fi connection requests.

  1. Use "Manage known networks"

As we use multiple Wi-Fi networks, their history is saved on our devices. If these SSIDs are still displayed long after you stop using them, you can permanently delete them from your Windows device.

Go to Settings -> Networks and Internet -> Wi-Fi -> Manage known networks . Click Forgot to remove every Wi-Fi network you don't want to display on your Windows device.

How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

Tip : Does your required Wi-Fi network not display on Windows? Check out these options to make your favorite Wi-Fi network work with your device.

Allow Wi-Fi networks

Just as you can prevent certain Wi-Fi networks from appearing on your Wi-Fi network icon, you can also allow them again. The method is similar to the one above for blocking Wi-Fi networks.

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

To allow a specific Wi-Fi network, delete the entry from the blacklist. Return to the command prompt for elevated permissions, execute the following command, and replace "Wi-Fi Network Name" with the blocked network name.

 <code>netsh wlan delete filter permission=block ssid="Wi-Fi Network Name" networktype=infrastructure</code>
Copy after login

How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

After entering the command, the blocked Wi-Fi SSID should reappear in the network icon on your system tray.

How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

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

 <code>netsh wlan show filters</code>
Copy after login

How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

Tip : Learn how to fix the message "Your Wi-Fi network is not secure" on your Windows device.

  1. Command Prompt (Batch Allowed)

If you have previously used the "Deny All" command to prevent all Wi-Fi networks from appearing on the Windows Wi-Fi icon display page, you can easily undo it. Simply insert the following "Delete" command in the command prompt for elevated permissions.

 <code>netsh wlan delete filter permission=denyall networktype=infrastructure</code>
Copy after login

This command will remove the "Deny All" filter and allow all Wi-Fi networks as well as the networks you add as exceptions.

How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

Worth knowing : We have answers about why your Wi-Fi network is constantly disconnected on Windows devices.

  1. Undo Forgot Wi-Fi Network

To regain a forgotten Wi-Fi network on your Windows device, you usually just need to restart the device and stay close to the deleted SSID. The network should show up again, and you need to enter your password once to save it.

If this doesn't work, reset the entire network. One way is to use ipconfig/flushDNS to refresh your network, which will reconfigure the network stack. This should allow your Windows device to connect to a previously blocked Wi-Fi network.

Blocking Wi-Fi networks is necessary if you do not want other users' networks to interfere with your primary connection. Are you experiencing slow Wi-Fi connection at home? Learn how to get normal internet speeds.

Image source: DALL-E 3. All screenshots are courtesy of Sayak Boral.

The above is the detailed content of How to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1677
14
PHP Tutorial
1279
29
C# Tutorial
1257
24
Nanoleaf Wants to Change How You Charge Your Tech Nanoleaf Wants to Change How You Charge Your Tech Apr 17, 2025 am 01:03 AM

Nanoleaf's Pegboard Desk Dock: A Stylish and Functional Desk Organizer Tired of the same old charging setup? Nanoleaf's new Pegboard Desk Dock offers a stylish and functional alternative. This multifunctional desk accessory boasts 32 full-color RGB

ASUS' ROG Zephyrus G14 OLED Gaming Laptop Is $300 Off ASUS' ROG Zephyrus G14 OLED Gaming Laptop Is $300 Off Apr 16, 2025 am 03:01 AM

ASUS ROG Zephyrus G14 Esports Laptop Special Offer! Buy ASUS ROG Zephyrus G14 Esports Laptop now and enjoy a $300 offer! Original price is $1999, current price is only $1699! Enjoy immersive gaming experience anytime, anywhere, or use it as a reliable portable workstation. Best Buy currently offers offers on this 2024 14-inch ASUS ROG Zephyrus G14 e-sports laptop. Its powerful configuration and performance are impressive. This ASUS ROG Zephyrus G14 e-sports laptop costs 16 on Best Buy

5 Hidden Windows Features You Should Be Using 5 Hidden Windows Features You Should Be Using Apr 16, 2025 am 12:57 AM

Unlock Hidden Windows Features for a Smoother Experience! Discover surprisingly useful Windows functionalities that can significantly enhance your computing experience. Even seasoned Windows users might find some new tricks here. Dynamic Lock: Auto

Your Keyboard Needs a Big Ol' Volume Knob Your Keyboard Needs a Big Ol' Volume Knob Apr 18, 2025 am 03:04 AM

In today's touchscreen world, the satisfying tactile feedback of physical controls is a welcome change. That's why a keyboard with a large volume knob is surprisingly appealing. I recently experienced this firsthand, and it's been a revelation. For

How to Right-Click With No Mouse How to Right-Click With No Mouse Apr 18, 2025 pm 12:03 PM

The mouse is a vital component to getting work done on your PC. But when you’re stuck with a faulty mouse, you can run into a few problems including the inability to right-click. But the good news is that there are definitely ways t

This Acer Desktop PC Has Laptop Specs, For Some Reason This Acer Desktop PC Has Laptop Specs, For Some Reason Apr 17, 2025 am 06:03 AM

Acer's latest gaming laptop series is stunning, but the company has also launched a desktop computer that is awkward in Acer's product line and has its own advantages and disadvantages compared to other small desktop computers. Acer today added four new laptops and a redesigned compact desktop to its popular Nitro gaming lineup. However, let's talk about desktop computers first, because it's the most unique. What makes it unique is that it uses laptop specifications. The Nitro 20 N20-100 uses an AMD Ryzen AI 9 365 processor, or the Intel Core i5-13420H desktop processor is also available. Graphics card can be equipped with up to

The RTX 5060 Family Is Here, but Skip the 8GB Models The RTX 5060 Family Is Here, but Skip the 8GB Models Apr 16, 2025 pm 09:01 PM

The RTX 50-series GPUs: Incremental Upgrades, Competitive Pricing (Mostly) The RTX 50-series represents a measured evolution rather than a revolutionary leap in GPU technology. While performance gains are modest, AI enhancements are a key feature.

Logitech Is Quietly Increasing Its Prices Logitech Is Quietly Increasing Its Prices Apr 23, 2025 am 03:02 AM

Logitech quietly raises prices on many products, citing no specific reason. Observers note price increases of up to 25% on various items, strongly suggesting the impact of ongoing US tariffs on goods imported from China, where Logitech's main manufa

See all articles