Advertisement
Androxilogin

Block Program Through Firewall [Context Menu Entry]

Mar 15th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Windows Registry Editor Version 5.00
  2.  
  3. [HKEY_CLASSES_ROOT\exefile\shell\firewallblock]
  4. @="Add to Firewall" ; String to be displayed in context menu
  5. "HasLUAShield"="" ; Adds UAC shield icon to the left of the command
  6. "Extended"="" ; Requires shift to be held when right-clicking
  7.  
  8. [HKEY_CLASSES_ROOT\exefile\shell\firewallblock\command]
  9. @="cmd.exe /s /c for %%a in (\"%1\") do netsh advfirewall firewall add rule name=\"Block %%~na\" dir=out action=block program=\"%1\""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement