For Outbound Rules
Step 1: Open Windows Defender Firewall and navigate to Outbound Rules- Click the Start button and type "Windows Defender Firewall".
- Click on Windows Defender Firewall in the search results.
- Click on Advanced Settings on the left sidebar.
- Select Outbound Rules from the left-hand menu.
- Click New Rule on the right-hand side.
- Select Program and click Next.
- Select This program path.
- Click Browse and navigate to the program's executable (.exe) file. This is often found in C:\Program Files or C:\Program Files(x86).
- Select the program's .exe file and click Open.
- Click Next.
- Choose Block the connection and click Next.
- Check the boxes for Domain, Private, and Public to ensure the block is applied across all network types.
- Click Next.
- Give the rule a descriptive name (e.g., "Block [Program Name]") and optionally add a description.
- Click Finish.
For Inbound Rules
Step 1: Open Windows Defender Firewall and navigate to Outbound Rules
- Click the Start button and type "Windows Defender Firewall".
- Click on Windows Defender Firewall in the search results.
- Click on Advanced Settings on the left sidebar.
- Select Outbound Rules from the left-hand menu.
- Click New Rule on the right-hand side.
- Select Program and click Next.
- Select This program path.
- Click Browse and navigate to the program's executable (.exe) file. This is often found in C:\Program Files or C:\Program Files(x86).
- Select the program's .exe file and click Open.
- Click Next.
- Choose Block the connection and click Next.
- Check the boxes for Domain, Private, and Public to ensure the block is applied across all network types.
- Click Next.
- Give the rule a descriptive name (e.g., "Block [Program Name]") and optionally add a description.
- Click Finish.
Reference Video: https://youtu.be/oGP5d4LyNfo?si=Eo3xWFNRpLxzQr1M