Windows 7 firewall actually works very well, but it's not easy to configure with multiple programs (very time consuming).
 
I looked for ages trying to find a way of blocking multiple .exe files through Windows 7 in one go; it seemed the only possible method was to create my own batch file (windows script).  I have added it below for anyone to use / modify for their own purposes.
 
 
Running the batch file below (addfwrs.bat), will create inbound AND outbound firewall rules that block all .exe files within your choosen folder and subfolders from accessing the internet.  Very useful.
 
To use:
(1) Download addfwrs.bat.txt here: addfwrs.bat.txt

(2) Rename the file to 'addfwrs.bat' (removing the .txt extension).

(3) Place the file in a directory that is included in your system path (so it can be called easily), or place it in the root folder of the programs you want to block internet access for.

(4) With Administrator access (type cmd, then right click on it and select 'run as administrator'), change directory to the root directory of the programs you want to block internet access for (example: cd c:\Programs Files (x86)\YourProg\), run the batch file by typing: addfwrs [rulename]   example: addfwrs "YourProg"

N.B: It's important you add a firewall rulename, so that you can identify the rules when added to the firewall at a later date.

(5) Follow the on screen information, it will advise you which rules it is creating.

All done.  Hope you find it useful, I certainly have! 
Enjoy!

N.B: View the new rules contained within your firewall (In/Out rules), change as and when you need to.


Č
ċ
ď
addfwrs.bat.txt
(1k)
Charles de Havilland,
30 Mar 2012 08:22
Comments