You can enable or disable Windows Firewall with the netsh command. This is a handy tool that you can also use the Chrome browser for block access to the Internet. Windows Firewall is precarious and one of the most confusing things.
It occasionally restricts your downloads, prevents you from remotely interfacing with a PC, and squares or says to stop running applications, which is very annoying. So far, however, this is one of the top-notch security features for the Windows operating system if you realize how to use it properly. You can set up your firewall to protect your local data and prevent certain applications from using the internet.
Therefore, if you want to make changes or, for example, disable the Windows Firewall , you need to read the article thoroughly.
Disable Windows Firewall from the command line
This is how you can disable Windows Firewall.
- Press the Windows key and type cmd .
- Now right- click on the Command Prompt icon and select Run as administrator option .
- Type netsh advfirewall set allprofiles state off and then press Enter. If you want to disable the domain network firewall, type or copy/paste the netsh advfirewall command. Disable the status of the domain profile. If you want to disable the private network firewall , type the command If you want to disable
netsh advfirewall setzt den Status des privaten Profils aus
the public network firewall , type the command Note: To turn on the network fire walls just replace ' off ' with ' on '.ein oder kopieren Sie ihn. netsh advfirewall set publicprofile state off
If you are unfamiliar with the command tool, you can try software like Windows Defender to have more control over your system.
Manual method to disable Windows Firewall
Using the GUI to disable Windows Firewall is easier than using the command prompt. Here's how to turn off Windows Firewall from the GUI.
- Press Windows key , type firewall and network protection and then click the icon as shown below.
- Now choose from the available network options, e.g. B. Domain Network , Private Network , Public Network , any person according to needs and requirements.
- After you choose, just open it and then just turn off the firewall. Note: Here I just turned off the domain network, you can make one or all network connections.
This is how you can disable/enable Windows Firewall using GUI.
Block a Windows application in the firewall from the command line
In order to block an application in the Windows Firewall , we must first understand the policies for incoming and outgoing messages.
Incoming: Incoming policies are characterized for one block or another/allow the application to receive all types of data on your PC.
Outgoing: On the other hand, the outgoing mail policy is defined to either block/allow the application to send all data from your Windows PC.
.
To block an app in Windows Firewall, you must first choose whether to block the application from sending or receiving information from the Internet. Specify that you need to prevent the Google Chrome application from getting onto the Internet.
- First, you need to navigate to the location of the chrome.exe file on your system. Normally it should reside in C:\Programs unless and until you have not manually defined or reassigned it.
- Now just copy the pathname of the chrome.exe file, in my case the path is 'C:\Programs (x86)\Google\Chrome\Application\chrome.exe'.
- Next, just open Command Prompt in Administrator mode.
- Type the following command and press Enter . Note: You must set the dir section of the above command as in or out depending on your needs.
netsh advfirewall firewall add rule name = 'Chrome block' program = 'C:\Programme (x86)\Google\Chrome\Application\chrome.exe 'dir = out action = block profile = public
After running the above command line, internet access for the application (Google Chrome in my case) was disabled.
Endwort
In this way, you can easily enable or disable Windows Firewall from the command line. It is ideal if you leave a comment below in case you encounter any difficulties while following the techniques given below.


แสดงความคิดเห็น