search
HomeSystem TutorialWindows SeriesHow to Block or Allow a Wi-Fi Network in Windows - Make Tech Easier

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>

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>

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>

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>

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>

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>

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
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
Automate Repetitive Tasks via AI-Generated PowerShell Scripts - Make Tech EasierAutomate Repetitive Tasks via AI-Generated PowerShell Scripts - Make Tech EasierMay 16, 2025 am 02:35 AM

I've always held the belief that computers should serve us, rather than the reverse. This belief was tested when I found myself dedicating endless hours to repetitive tasks. However, this changed when I began leveraging artificial intelligence (AI) t

What To Do if There's an Unusual Sign in Activity on Your Microsoft AccountWhat To Do if There's an Unusual Sign in Activity on Your Microsoft AccountMay 16, 2025 am 02:34 AM

Similar to other large companies, Microsoft prioritizes your account security and protection from unauthorized access by individuals with harmful intentions.If Microsoft detects an unusual login attempt, it marks it as suspicious. You will receive an

How to Roll Back a Driver in Windows - Make Tech EasierHow to Roll Back a Driver in Windows - Make Tech EasierMay 16, 2025 am 02:33 AM

Driver issues are quite common in Windows systems. Sometimes, updates to new drivers may cause a Blue Screen of Death (BSOD) error message in Windows. Fortunately, this problem can be solved by rolling back the driver. You can use the Rollback Driver feature to restore the driver update to a previous version to check if it is functioning properly. Here is a detailed guide on how to roll back drivers in Windows. Directory Rollback Driver in Windows What to do if the Rollback Driver option is disabled? FAQ Rollback Driver in Windows Windows comes with some built-in tools designed to detect and resolve possible conflicts in the operating system. This pack

How to Take Full Ownership of Windows Registry Keys - Make Tech EasierHow to Take Full Ownership of Windows Registry Keys - Make Tech EasierMay 16, 2025 am 02:28 AM

The Windows Registry is a central hub for storing all configurations related to the Windows operating system and its software. This is why numerous Windows tutorials often involve adding, modifying, or deleting Registry keys.However, you may encounte

How to Remove 'System Requirements Not Met” Watermark in Windows 11 - Make Tech EasierHow to Remove 'System Requirements Not Met” Watermark in Windows 11 - Make Tech EasierMay 16, 2025 am 02:27 AM

Windows 11 does have strict installation requirements. However, installing Windows 11 on unsupported devices is not difficult. If you have successfully installed it, don't rush to celebrate. You also need to clear the desktop "System Requirements Not Meeted" watermark that Microsoft introduced to prevent installation on unsupported hardware. This guide lists three ways to remove this watermark. Directory Group Policy Editor Windows Registry Editor Script Group Policy Editor If you are using Windows Pro or Enterprise and you have Group Policy Editor enabled, this method is the easiest. Follow the instructions below to disable the watermark through the Group Policy Editor. Enter "Group Policy" in Windows Search and click Edit Group in the results

Microsoft Teams Camera Not Working? Learn How to Fix ItMicrosoft Teams Camera Not Working? Learn How to Fix ItMay 16, 2025 am 02:22 AM

Microsoft Teams is a widely used platform for collaboration and communication within organizations. Despite its effectiveness, you might occasionally face issues with the camera during calls. This guide offers a range of solutions to resolve the came

How to Check Your RAM Type in Windows - Make Tech EasierHow to Check Your RAM Type in Windows - Make Tech EasierMay 16, 2025 am 02:21 AM

If you plan to upgrade your RAM or test its performance, it is important to know your RAM type. This means that your laptop or PC needs to be evaluated to determine the DDR module it supports, as well as other details like the form, speed and capacity of RAM. This tutorial shows how to check RAM types using various Windows applications and third-party tools in Windows. Directory Check RAM type via command prompt Check RAM type via task manager Check RAM type in Windows Check RAM type in PowerShell Check RAM type using CPU-Z Check RAM type using Novabench Check RAM type via visual inspection of motherboard Check RAM type via command prompt Check RAM type

How to Fix 'Local Security Authority Protection Is Off' on Windows - Make Tech EasierHow to Fix 'Local Security Authority Protection Is Off' on Windows - Make Tech EasierMay 16, 2025 am 02:20 AM

Local Security Authority (LSA) protection is a crucial security feature designed to safeguard a user's credentials on a Windows computer, preventing unauthorized access. Some users have encountered an error message stating that "Local Security A

See all articles

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
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Clair Obscur: Expedition 33 - How To Get Perfect Chroma Catalysts
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools