Skip to content

IdraDev/Simple-Firewall-Blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🔥 Firewall Blocker Script (v1.0)

A no-nonsense PowerShell script to block or unblock all .exe files in a specified directory and its subdirectories using Windows Firewall rules. Built for sysadmins, pentesters, or power users who need control without the bloat.

⚠️ Note: I am not the original author of this script. I streamlined its execution and improved usability to make it faster and more accessible for practical use cases.


🛠️ Features

  • 🔐 Block all .exe files (inbound and outbound) in a target directory.
  • ♻️ Remove all previously created firewall rules.
  • 👀 List all .exe files recursively in a folder tree.
  • ✅ No third-party dependencies. Native PowerShell.
  • 🖥️ Precompiled executables available (.exe 64-bit & 32-bit).
  • ⚡ Includes a .bat file for quick execution.

⚙️ Requirements

  • Windows OS with PowerShell.
  • Administrator privileges (mandatory).
  • Sane judgment — this can break stuff.

🚀 Usage

🔧 Option 1 — Run via PowerShell

  1. Run as Administrator
    This script must be executed with elevated privileges.

  2. Start the script
    Open PowerShell and execute:

    .\scripts\script.ps1

Contacts

www.idragraphics.com - [email protected]

About

🧱 A no-nonsense PowerShell script to block or unblock all .exe files in a specified directory and its subdirectories using Windows Firewall rules. Built for sysadmins, pentesters, or power users who need control without the bloat.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors