Watch the video:
Timestamps:
0:00 - Explanation
1:23 - Creating .bat file
2:06 - Command explanation
3:32 - Blocking IN and OUT data
4:09 - Blocking all files in a folder in Windows Firewall
Wanted to block a program, and all the other .exe’s in a folder? Well, it’s difficult. With the help of a small .bat file, life can be made simpler. This video shows you how to completely block or allow an entire folder (and subfolders) internet access via the Windows Firewall.
——–
@ setlocal enableextensions
@ cd /d “%~dp0”