How to Block a Program from Accessing the Internet

Here’s the best way to block applications from connecting to the internet in Windows.

While you may want most programs on your desktop or laptop computer to be connected, there are occasions when you’ll need to know how to stop Windows apps from connecting to the internet — for example, if you want to prevent automatic updates of a particular app, or block ads on an app that works perfectly fine offline. Whatever your intention, here’s the best way to block programs from connecting to the internet in Windows.

How to Block a Program From Connecting to the Internet in Windows 10

1. Enter “Windows Defender Firewall“.

(Windows Firewall is preinstalled in Windows 11, Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista and Windows XP)

2. Look toward the left hand-side of the app and click on Advanced Settings.

3. Once the Advanced Security app is open, click on Outbound Rules, located on the left side.

4. Now click on New Rule, which will appear on the right-hand side.

5. The New Outbound Rule Wizard will open; select Program and continue.

6. You’ll have to click This Program Path and hit Browse to select the program you want to block.

7. In the next screen, simply select Block The Connection.

8. You’ll be asked when you want this rule to apply. If they’re not all selected already, click Domain, Private and Public.

9. All you have to do now is name the rule, add a description if you want, and hit Finish.

Now you know how to block programs from accessing to the internet in Windows.


I'm an IT professional with more than 10 years of work experience. I love computers and all aspects of technology.

Leave a Reply

Your email address will not be published. Required fields are marked *