
Windows: How to Block an entire folder | Windows Firewall Guide
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"
for /R %%f in (*.exe) do (
netsh advfirewall firewall add rule name="Blocked: %%f" dir=out program="%%f" action=block
)
pause
--------
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
-----------------------------
💸 Found this useful? Help me make more! Support me by becoming a member: https://youtube.com/channel/UCkih2oVTbXPEpVwE-U7kmHw/join
-----------------------------
💸 Direct donations via Ko-Fi: https://ko-fi.com/TCNOco
💬 Discuss video & Suggest (Discord): https://s.tcno.co/Discord
👉 Game guides & Simple tips: https://YouTube.com/TroubleChuteBasics
🌐 Website: https://tcno.co
📧 Need voice overs done? Business query? Contact my business email: TroubleChute (at) tcno.co
Everything in this video is my personal opinion and experience, and should not be considered professional advice. Always do your own research and make sure what you're doing is safe.