How to block multiple EXE files with in a folder and sub folder with Windows Firewall
How to block multiple EXE files with in a folder and sub folder with Windows Firewall
https://sites.google.com/site/mytools4000/home/allow-block-multiple-programs-through-windows-7-firewall
Windows firewall works pretty well, but it's not easy to configure with multiple programs (time consuming).
I looked for ages to find a way of blocking multiple .exe files through Windows Firewall in one go; it seems the only possible method was to create my own batch file (windows script). Which I did, an have added it below for anyone to use / modify for their own purposes.
The batch files below, will add inbound AND outbound firewall rules that block all .exe and .dll files within your chosen folder (and all subfolders) from accessing the internet - pretty useful.
v1 One Click version
If you want to just click a script in Windows that adds the firewall rulenames automatically, for just one app, choose this version.
Install:
Rename the file to auto_addfwrs.bat (removing the .txt extension at the end),
Copy this file into the root folder of the program(s) you want to block internet access for (i.e C:\Program files\MyProg\)
Run:
Right click the script file and select 'Run as Administrator' and it will create firewall rules for all apps in the same folder (and sub folders) as the script file.
The script will run, and will advise you which rules it has created.
Once done, you can view the new rules in Windows Firewall (advanced).
Comments
Post a Comment