How to Block a Program from Accessing the Internet on Windows 10

Photo of author

By Victor Ashiedu

Published

This Itechguide teaches you how to block a program from accessing the internet on Windows 10.

To stop a program from accessing the internet, you need to create a firewall rule. However, to create the firewall rule, you require the path to the program’s exe file. The first section in this Itechguide teaches you how to find the path to the exe of a program.

Step 1: Find the Path to the Exe for the Program

  1. Type the name of the program in the Windows 10 search box. In this example, I want to find the path to the exe for Skype for Business.
  2. Then, from the search results, right-click the program and select Open file location.
How to Block a Program from Accessing the Internet on Windows 10 - Find the Path to the Exe for the Program
  1. On the file location, right-click the program and select Properties. The program Properties will open the Shortcuts tab.
How to Block a Program from Accessing the Internet on Windows 10 - Find the Path to the Exe for the Program
  1. The full path to the exe for the program will be displayed in the Target field. Copy this path into a text file. You will require it for block the program from accessing the internet in the next step.

Step 2: Use a Windows Firewall Rule to Block the Program

Once you have the path to the exe for the program you want to block, follow the steps below to block a program from accessing the internet on Windows 10:

  1. Type control panel in the Windows 10 search. Then, from the search results, click Control Panel App.
How to Block a Program from Accessing the Internet on Windows 10
  1. On the top right of Control Panel, if the View by is set to Category, click the drop-down and select Small icons or Large icons.
How to Block a Program from Accessing the Internet on Windows 10
  1. Then, on the modified Control Panel view, click Windows Defender Firewall.
  1. On the left pane of Windows Defender Firewall, click Advanced settings.
How to Block a Program from Accessing the Internet on Windows 10
Now that you have opened Windows Defender Firewall with Advanced Security, the next step to block a program from accessing the internet on Windows 10 is to create an outbound firewall rule.
  1. On the left pane of Windows Defender Firewall with Advanced Security, click Outbound Rules.
How to Block a Program from Accessing the Internet on Windows 10
  1. Then, on the top right of Outbound Rules, click New Rule. The New Rule wizard will open.
  1. On the first screen of the New Rule wizard, select Program (selected by default) and click Next.
How to Block a Program from Accessing the Internet on Windows 10
  1. Then, on the Program screen, select This program path: (selected by default). Paste the path to the exe you copied in the last section – REMOVE the quotes in the exe path. To proceed to the next step, click Next.
  1. On the Action screen, select Block the connection (default selection).
How to Block a Program from Accessing the Internet on Windows 10
  1. Then, on the Profile screen, check ALL the options and click Next.
  1. Finally, to block a program from accessing the internet on Windows 10, give the firewall rule a name, an optional description and click Finish.

The rule will be created and activated. If you wish to disable the rule, right-click it and select Disable Rule.

Conclusion

You can use the steps covered in this Itechguide to block a program from accessing the internet on Windows 10! I hope you found this Itechguide helpful.

If you were able to fix your PC’s problem with the steps in this guide, click on “Yes” beside the “Was this page helpful” question below.

You may also express your thoughts and opinions by using the “Leave a Comment” form at the bottom of this page.

Finally, for more Windows 10 Itechguides, visit our WINDOWS 10 HOW-TO page. You may also find our Work from Home page very helpful.

About the Author

Photo of author

Victor Ashiedu

Victor is the founder of InfoPress Media, publishers of Ilifeguides and Itechguides. With 20+ years of experience in IT infrastructure, his expertise spans Windows, Linux, and DevOps. Explore his contributions on Itechguides.com for insightful how-to guides and product reviews.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment

Send this to a friend