Add "Allow/Block/Remove" Windows Firewall options to File Explorer Context Menu
Please confirm these before moving forward
- [x] I have searched for similar feature requests and have not found a duplicate.
Feature Type
New functionality
Describe your feature request
I would like to request the integration of a right-click context menu feature (similar to the Tweaking.com tool) that allows users to instantly Allow, Block, or Remove an executable (.exe) from the Windows Firewall rules.
When a user right-clicks an application or shortcut, these options should appear under a "Firewall" submenu or as direct entries, enabling quick rule creation without opening the Advanced Security UI.
Use case
This is primarily for users who frequently test new software, portable apps, or games and need to quickly restrict or grant internet access. It simplifies the security workflow by:
Preventing "phone home" behavior of specific apps instantly.
Troubleshooting connectivity issues for specific programs.
Managing firewall rules "on the fly" during software installation.
Software Details (Only for 'New software to be added' requests)
No response
Additional context
The functionality is inspired by the "Tweaking.com - Right Click Allow, Block or Remove - Windows Firewall" utility. Implementing this within WinHance would centralize Windows optimization and security management into one interface.
Here is how it looks when right clicking an app shortcut:
+1 Please
Hey @Vyathaen and @peter9811,
Thanks for the request! I've added it, and I've tested it in my development build of Winhance, where it works.
There's a new option in Customize > Explorer called "Add 'Windows Firewall' to Context Menu". Once it's on, right-click any .exe file, choose Show more options, and you get a Windows Firewall menu with three choices:
- Allow through Windows Firewall adds an inbound and an outbound allow rule for that program.
- Block in Windows Firewall adds an inbound and an outbound block rule instead.
- Remove Winhance rules deletes only the rules Winhance added, so anything an installer set up stays as it is.
It works on .exe files themselves, not on shortcuts, so for a desktop shortcut, right-click the program it points to.
The development build isn't public, so you can't get this yet. It will be in Winhance Release 28 when that comes out, but I don't have a release date yet.
If anything's missing once you've tried it, just comment here and I'll reopen it.
Thank you for the implementation Have a nice day
Thank you for implementing that @memstechtips
2 things:
- Does the "remove winhance rules" remove ALL rules or just the rule for this specific file, it should be for that file only and not all rules.
- Is it possible to make it work with shortcuts just like the original app:
"Remove Winhance rules" only removes the two rules Winhance made for the file you clicked on (the allow rule and the block rule). It doesn't touch any other firewall rule. I tested it on Winhance Release 28: removing one program's rules left another program's block in place.
Shortcuts work too. Right-click a shortcut to a program, and Allow or Block applies to the program the shortcut points to.