Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • How to Detect Invisible Users on Yahoo Messenger technology
  • Prevent Mac from Automatically Going to Sleep How-To
  • How to Install a Network Printer on Your Home or Office Network

    If you are planning to buy a printer soon, you should consider buying an Ethernet or wireless printer. Prices have come down in recent years, and no

  • HDG Explains: What Is Markdown And What Are The Basics I Should Know? Tools Review
  • How to Share Files Through Nearby Share on Android How-To
  • How to enable voice to text conversion on Android? How-To
  • How to Burn Windows Movie Maker WMV Video to DVD Computer Tips
  • 4 Gifts For The Retro Gaming Lover In Your Life Gaming

How to Disable Windows Firewall With Command Line

Posted on September 10, 2021September 10, 2021 By bilal 1983 No Comments on How to Disable Windows Firewall With Command Line

How to Disable Windows Firewall With Command Line.

The Windows firewall is tricky. It limits your downloads at times, prevents you from connecting to your PC remotely and blocks applications from launching, which is very annoying. But for now, this is the top-notch security feature provided by Windows if you know how to use it. You can configure your firewall to block certain applications from accessing the Internet and protect your local data.

It is very easy to prevent applications from accessing the Internet using a graphical interface. just go to the start menu and search for “Firewall and Network Protection”. In the dialog box, click Domain Network and turn off the firewall. Likewise, you must turn off the firewall for the private and public network. If you need to turn off Internet-only firewall, turn off Public network-only firewall.

Disable Windows Firewall using command line

However, if you, like me, prefer to turn off Windows Firewall using the command line, here’s a quick way to do it on Windows 10 and 7.

Open a command prompt. Go to the Start menu, type Command Prompt. Right click it and select “Run as administrator”. This command requires elevated permissions to disable the firewall, so it must be run as administrator.

At the command prompt, type netsh advfirewall, disable the status of all profiles.

How to Disable Windows Firewall With Command Line

This will disable the firewall for all 3 networks. To turn it back on, replace “off” with “on”. netsh advfirewall sets the status of all profiles to

How to Disable Windows Firewall With Command Line

Like the terminal in macOS and Linux, Windows cmd also allows you to navigate through the last used commands using the up and down arrows on your keyboard. So, if you want to execute the previous last command, just press the up arrow once, edit the command (turn it off) and press Enter.

Block any application in firewall (command line)

To block any application in the firewall, we first need to understand what an inbound and outbound rule is. Inbound traffic rules define either block or allow an application to receive data on your computer. Outbound rules are defined to block or allow an application to send data from your computer.

Blocking something in the firewall using the GUI is very easy. All you have to do is go to firewall and network protection.

Click Advanced Options and go to the Outbound Rules tab. Click New Rule on the right side of the window. In the pop-up window, select the Rule Type as Program. Click Next, and further steps, such as specifying the path to the program, are self-explanatory.

However, doing the same with the command line is not as intuitive. First, you need to decide if you need to block the application from receiving or sending data from the Internet. Let’s say you want to prevent the Chrome app from accessing the Internet.

Next, we need to find the location of the EXE file on our system. It should usually be in C: Program Files unless you have manually defined it.

Go to the .exe file and copy the path. In my case for google chrome the path will be: C: Program Files (x86) Google Chrome Application chrome.exe

After locating the file, all you need to do is open a command prompt as administrator and enter the following command: netsh advfirewall firewall add rule name = “Chrome block” program = “C: Program Files (x86) Google Chrome Application chrome.exe “dir = out action = block profile = public

How to Disable Windows Firewall With Command Line

Now, when I open Chrome, Internet access is disabled.

How to Disable Windows Firewall With Command Line

Block any application in the firewall with its port number

If you want to block the application by port number. First, you need to determine the port number. To do this, go to the Start menu and type Resource Monitor. Right click it and select “Run as administrator”.

How to Disable Windows Firewall With Command Line

When the dialog box opens, go to the Networking tab and expand the Listening Ports section by clicking on it.

How to Disable Windows Firewall With Command Line

Once you get the port number, use the following command to block that specific port. netsh advfirewall firewall add rule name = “Chrome block” localport = 443 protocol = tcp dir = out action = block profile = public

How to Disable Windows Firewall With Command Line

If you are not sure of the exact port number, you can also block the port range by specifying port = 1000-2000.

To remove this outbound rule, enter the following give command with the rule name you specified earlier.

How to Disable Windows Firewall With Command Line

This should fix the situation, and Chrome should be able to access the Internet.

Packaging

These methods allow you to block any particular application from accessing the Internet. This can be used against suspicious applications to protect your data from being sent to private networks or the Internet. If you have any problems with the step, you can comment on the error and I can help you with the solution.

Read: How to reset TCP / IP on Windows, Linux and macOS

Share this:

  • Facebook
  • X
How-To, Windows Tags:Block any application in firewall (command line), Block any application in the firewall with its port number, comm?, disable, Disable Windows Firewall using command line, Firewall, How to Disable Windows Firewall With Command Line, Packaging, With

Post navigation

Previous Post: Instagram Music Isn’t Available in Your Region? Here’s How to Get it
Next Post: How to Play PC Games on Android

Related Posts

  • Stop a Website from Sending Notifications in Chrome How-To
  • How to Remove Saved Login Info on Instagram iOS App? How-To
  • View, Backup, and Delete Saved Passwords in Internet Explorer How-To
  • How to Get WiFi Without an Internet Provider How-To
  • Enable Game Mode to Smooth Out Performance in Windows 10 How-To
  • How to Turn Your iPhone into iPod How-To

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • March 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Categories

  • – 436
  • – 939
  • 1Win AZ Bonuslar, Mobil Tətbiq və Mərc Marketləri – 376
  • 1xbet Azerbaycan,1xbet az merc saytı, en yaxsi bukmeker 1xbet Azerbaycan merc oyunlari, 1xbet az, Azerbaycan merc saytlari – 280
  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • B1 Bet Aviator: Jogo de Cassino Online Tutorial Passo a Passo 202 – 14
  • blog
  • Calculator
  • Computer Tips
  • Cool Websites
  • Dasinmaz emlak elanlari, ev elanlari, ev alqi satqisi, kiraye evler, torpaq, obyekt, bina, bina ev, mənzil, villa, kreditle satilan evler – 814
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorial
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • бонусы до 250%, официальный сайт в Узбекистане – 69
  • Мостбет Уз Ставки на спорт и казино в букмекерской конторе Mostbet Uz – 527
  • ベラジョンカジノの出金方法一覧【2023年 最新】出金限度額・出金の流れ・出金手数料・出金条件 – 466
  • 1Win Güncel Giriş Adresi 1Win Engelsiz Yeni Giriş
  • 4 Things You Can Do If You Forget Your Wi-Fi Password
  • How To Use DriveDroid to Boot Linux On PC Using Android
  • How do I Find Release Date of Any Google Play App
  • How To Change IP Address in Windows
DMCA.com Protection Status

Recent Posts

  • 12 Most Common Android Problems and Their solutions
  • Male Models With Onlyfans – OnlyFans Sites Online!
  • Access Windows Shared Folder From Android Over Wi-Fi
  • 21SEIKI石巻中里【石巻市】 ベラジョンカジノの入金方法を徹底解説【2023年最新版】
  • ベラジョンカジノで大勝ちを狙えるゲーム10選 4,000万円以上稼いだ強者も!? CASINO JUICE カジノジュース

Recent Comments

  1. Instagram stories not working/loading? Try These 9 Fixes on Can’t update PS5 system software? Try These 10 Fixes
  2. How to Link to a Specific Part Of A Webpage & Share it on Best PDF to Word Converter Online (Free Without Email)
  3. See What’s Taking up Space on Your Hard Drive on 7 best 3D scanning apps for Android and iOS
  4. Make your Devices Read Out Text, With Text to Speech on 9 Best 10K Running Apps for 2023
  5. How to Find your Router’s IP Address on How to Fix Apple CarPlay Not Working? 7 Possible ways
  • Best desk calculator 2020 Calculator
  • How to download free nintendo switch games Gaming
  • How to Contact YouTube, Gmail and Other Google Properties How-To
  • Can’t Play MP4 Files on Your XBox 360? Computer Tips
  • HDG Explains : What is Thunderbolt? Featured Posts
  • Best DIY Home Security Gadgets to Protect Your Home Product Reviews
  • 10 Ways to Share Files between Two Computers How-To
  • How to Stop Autofill Passwords From Showing in Chrome How-To

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version