If you want to block a specific program from accessing the internet on your Windows 11 PC, this gearupwindows article will help you. Using Windows Firewall, you can easily and quickly stop the access of the internet to a program. When you block an app through the firewall, in and out traffic will be stopped.
To block an app from accessing the internet, you may find freeware and shareware applications in the market. But, in this post, we will use the built-in Windows Defender Firewall to set up inbound and outbound rules to block incoming and outgoing connections for the selected program.
How to Prevent a Program from Accessing Internet in Windows 11?
To completely block a program from connecting to the internet, do the following steps:-
Step 1. Click the
Step 2. From the available search results, click the “Windows Defender Firewall with Advanced Security” to open it.
Step 3. Select
Step 4. On the right side pane of the program, click on
Step 5. When you’re done, a new pop-up window will open up. Select
Step 6. On the following window, select the “This program path “option. Click the
Step 7. Select
Step 8. When prompted with the option “When does this rule apply,” leave the domain, private and public selected. Then click the
Step 9. Now, enter the name and description of the rule. Then click the
Step 10. In the “Windows Defender with Advanced Security” window, select
Step 11. Now, you will see similar windows as you have done in the above steps from 5 to 9. Repeat the steps to configure the outbound rule.
When both inbound and outbound rules are configured to block connections for a program or game in Windows Defender Firewall, that application will no longer have access to the internet.