Block All Internet Traffic Except One Program [How to]

To block all apps from the web, you need to configure the firewall

by Teodor Nechita
Teodor Nechita
Teodor Nechita
Software Managing Editor
Eager to help those in need, Teodor writes articles daily on subjects regarding Windows, Xbox, and all things tech-related. When not working, you may usually find him either... read more
Affiliate Disclosure
  • To block all apps except one in Windows Firewall, you need to configure it properly.
  • For more advanced users, you can always use IPSec on your PC to achieve the same results.

Users have been asking on the official forums if there is a way to block all Internet traffic except one program.

While this is possible, keep in mind that Windows Firewall can prevent connection if you choose to do that. But if you’re determined to block all traffic, you can do it by following the instructions from this guide.

How we test, review and rate?

We have worked for the past 6 months on building a new review system on how we produce content. Using it, we have subsequently redone most of our articles to provide actual hands-on expertise on the guides we made.

For more details you can read how we test, review, and rate at WindowsReport.

How can I block all Internet traffic except one program?

1. Manually block processes one-by-one

  1. Press Windows + R, and type in control.
  2. Select View by (Top-right corner) to Category.
  3. Click on System and Security.
  4. Under the Windows Defender Firewall, select Allow an app through Windows Firewall.
  5. Deselect both boxes corresponding to each process until you finish the list.

2. Make Windows Firewall  block all outgoing traffic by default

  1. Press Windows + R and type in control.exe, which will open the Control Panel.
  2. Select View by (Top-right corner) to Small icons.
  3. Click Administrative Tools.
  4. Select Windows Defender Firewall with Advanced Security.
  5. Click Windows Firewall Properties (on the right side).
  6. Click next to Outbound connections and select Block from the list.
  7. Confirm your changes by selecting OK.
  8. Delete the block all outgoing traffic rule.

This is a great way to block all Internet traffic except one program, so be sure to try it.

3. Use IPSec

  1. Click Windows, type in MMC and select it from the list.
  2. In the new window, click File.
  3. Click Add/Remove Snap-In.
  4. Select Add the IP Security Policy Snap-In.

  5. Click OK.
  6. Right-click on the middle section and click Create IP Security Policy.
  7. Follow the wizard using default values and whatever names you want.
  8. After the first wizard, a new window will appear, When it does, click Add.
  9. Click Next 3 times, and then click Add.
  10. Name it something relevant, like Block all, and click Add.
  11. Go through that wizard with just default values, and click OK at the end.
  12. Select Block All and click Next and then Add… again.
  13. Follow the wizard, and give it the name Block, then select it as an action.
  14. Repeat Steps 9-14 selecting the proper source, destination or protocol and selecting Permit in Step 14

How do I block Internet access except for one site?

  1. Search for Internet Options and open it.
  2. Go to the Connections tab and click on LAN Settings.
  3. Select use a proxy server. Set the Address to and click on Advanced.
  4. Now in the exceptions field, enter the websites you want to allow.
Note icon NOTE
This is just a workaround and shouldn’t be used in professional settings.

As you can see, blocking all internet traffic except one program is somewhat simple, but that can negatively affect your PC. So, you may consider blocking Internet access for specific apps.

To learn more, we suggest reading our guide on how to block applications in Windows Firewall.

Did you find a different method to use? If so, share it with us in the comments below.

This article covers:Topics: