Firewallis a slick affair in Windows . It restricts your downloads at meter ,   stops you from   remotely connecting to a PC and blocks coating from run , which is quite irritating . But so far this is a top - nick surety feature film provide by Windows if you hump how to habituate it mightily . you could configure your firewall to block particular coating from using the net and securing your local data .

Block applications from reach the Internet with GUI is easy . only go to theStartmenu and search forFirewall & web protection . From the dialogue boxful , click onDomain Networkand move around theFirewallOff . Likewise , you have to turn off the firewall for Private connection and Public connection . In case you need to turn off the firewall only for the Internet , turn off the Firewall only for Public internet .

Disable Windows Firewall With Command Line

However , if you are like me who prefer to disable Windows firewall with the control parentage , here ’s a quick way to do it on Windows 10 and 7 .

Open up thecommand prompt . Go to the Start menu , typeCommand Prompt . Right select it and selectRun as Administrator . This instruction to handicap Firewall necessitate elevated permit , so it demand to be fly the coop as an administrator .

On the command command prompt , Type

cmd_runas_admin

This will turn off the firewall for all 3 networks . To turn it back on , supercede off with on .

Much like the terminal in macOS and Linux , Windows cmd also lets you move through your last used commands using the up and down arrow on your keyboard . So , if you wanted to previous last dictation you ran , just hit the up arrow once , edit the dictation ( commute off to on ) and hit Enter .

Block Any App in the firewall (Command Line)

To block any app in the firewall , we first need to understand what is the inbound and the outbound prescript . Inbound rules are defined to either engine block / allow the app from receiving data on your computer . outward-bound rules are defined to either pulley-block / allow the program to station datum from your computer .

To stymy any in Firewall using GUI is easy . All you have to do is go to theFirewall & web Protection .

ClickAdvanced   Settingsand go to theOutboundrules chit . Click onNew Ruleon the right - manus side of the windowpane . Select Rule Type asProgramfrom the soda water - up . Click onNextand further step like specifying program course are ego - explanatory .

cmd_disable_firewall

However , doing the same with the command prompt is not that nonrational . First , you need to decide whether you need to freeze the app from receiving or sending data from the net . Say , you need to block up Chrome app from accessing the net .

Next , we need to find the location of the .exe file in our arrangement . Usually , it should be in C:\Program Files , unless you have defined it manually .

Go to the .exe single file and copy the route name . In my case for google chrome , the path would be :

Article image

Once you have the Indian file localisation , all you have to do is open Command Prompt with administrator exclusive right and typewrite the following command :

Now when I open up chrome , net approach is disabled .

Block Any App in the Firewall with its Port Number

In case you want to block the app by larboard number . First , you have to identify the larboard numeral . To do that , go to Start menu and type Resource Monitor . Right tap it and choose Run as Administrator .

Once the dialogue box open , go to the web tablet and expand the Listening Ports department by clicking on it .

Once you have the port wine identification number habituate the follow command to block that particular port .

cmd_to_block_chrome

If you are not trusted about the exact port issue you may also opt to forget a range of ports by condition port=1000 - 2000 .

To blue-pencil this outbound rule , type the below give instruction with the name of the rule you have specified earlier .

This should fix things and Chrome should be able to get to the net .

chrome_blocked_internet

Wrapping Up

These methods enable you to block any exceptional diligence from get at the Internet . This can be used against fishy apps to protect your data from being ship over to private meshwork or the cyberspace . If you have any problems with the footfall , you may remark the error and I can help you out with the solvent .

Read : How to Reset TCP / IP in Windows , Linux , and macOS

38 Google Earth Hidden Weird Places with Coordinates

Canva Icons and Symbols Meaning – Complete Guide

What Snapchat Green Dot Means, When It Shows, and for…

Instagram’s Edits App: 5 Features You Need to Know About

All Netflix Hidden and Secret Codes (April 2025)

All Emojis Meaning and Usecase – Explained (April 2025)

Dropbox Icons and Symbols Meaning (Mobile/Desktop) – Guide

How to Enable Message Logging in Discord (Even Deleted Messages)…

Google Docs Icons and Symbols Meaning – Complete Guide

Samsung Galaxy Z Fold 7 Specs Leak Reveal Some Interesting…

resource_monitor

resource_monitor_screenshot

cmd_port_block

delete_firewall_rule_cmd