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 - info@idragraphics.com

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

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages