Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Restrict Windows7 execuatable from accessing Internet

22 Dec 2014   #1

Windows 7 x64
Restrict Windows7 execuatable from accessing Internet

1. I have a Fresh Windows7 x64 Install
2. I want to be in control of my computer and restrict programs that I choose from accessing the internet.
e.g. There is a program (a single .exe filename) on my computer (in a directory I know) which must not
access the internet.
I tried and verified the following steps but the program can still send and rcv. data using the internet.
I watch it using "Resource Monitor" and also observe it connecting on a port send and receive data.

  1. From start menu, search for "Firewall" and select Windows Firewall with Advanced Security
  2. Choose Outbound Rules from the tree at the left.
  3. Choose New Rule... from the menu at the right.
  4. New Outbound Rule Wizard opens. This is really easy now:
    a. Select Program as rule type.
    b. Select the program's EXE file.
    c. Choose Block the connection.
  5. Choose the profile this rule applies to. If in doubt, select all three.
  6. Add the descriptive name (you may want to delete this rule later).

The above process DOES NOT work.


How can I prevent a program (I know the name and location of the program) on my computer from accessing the internet ?

Thank you,

My System SpecsSystem Spec
22 Dec 2014   #2

Windows 7 Ultimate x64

The steps you posted are absolutely correct and the DO work, instructing Windows Firewall to block a specific program. I would check the following:

Verify that the intended program has a single exe file and no other process that is actually doing the connection (as the rule blocks a single exe, not anything called from it).
Check that no antivirus is interfering with the firewall. "Web scans" or something like that scans are techniques used to scan all the network traffic for viruses, but those are notorious for bypassing third party firewalls by their drivers. If you have one of those, try disabling it.
It goes without saying that Windows Firewall must be enabled. Or if you're using another firewall, your steps are meaningless and those must be reproduced in whatever program you're using.

For the matter of testing that the blocking is actually happening, try blocking your browser instead, as a test. It's quite easily to figure out if it works or not (Google will not open). After that is successful, applying the same procedure to your program will be easier.
My System SpecsSystem Spec
27 Dec 2014   #3

Windows 7 Home Premium 64 bit

If you don't have any luck with Windows Firewall, I'd expect a lot more success with Private Firewall, which will pretty much name every process connecting to the internet, inbound or outbound, during it's 'learning/training' session after it's initial install...

It definitely errs on the side of popups to give you the option to "block" or "allow", which, I personally don't mind the little bit of interaction....
My System SpecsSystem Spec

27 Dec 2014   #4
Layback Bear

Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64

It would be helpful to know what is accessing the internet that you don't want to access the internet.
My System SpecsSystem Spec

 Restrict Windows7 execuatable from accessing Internet

Thread Tools

Similar help and support threads
Thread Forum
how to restrict internet access for users in windows 7
hi, I am using windows 7 32 bit . there are 90 users . we have linux server and run an web based application using IE. Internet is accessed through a modem which is connected to the same hub which uses the web based application. so everyone is having an access to the internet. How do i...
Network & Sharing
BSOD On Startup / Accessing New HD / Accessing Internet
Hello all, I'm running on a relatively new install of Windows 7 64bit Ultimate. I recently (about 2-3 weeks ago) installed a new HD and decided to have a fresh start so everything was formatted followed by win 7 install. Everything has been running great up until mid day yesterday. Out of what...
BSOD Help and Support
How do i restrict internet access for other applications
Hi, i have slow internet connection. I want that to utilized for web browsing only. But i guess several applications like adobe reader, nokia-pc-suite also keep connecting to the internet do check for updates or download their files... I want to restrict all those applications from doing so...
System Security
If your Default Windows7 Desktop Gadgets are not Accessing the web
If all your default Windows Gadgets are not accessing the web, This is due to something wrong in the Basic Internet Options and NOT browser options. To solve This follow these steps: 1-Open your Internet Explorer 2-Press Tools ==> Internet Options ==> Connections ==> LAN Settings 3-Remove the...
How can i restrict a guest account in Windows7 PRO?
Hi all, I want everything hidden and locked down save for a few apps. I tried using the group policy editor, but when I made a change it locked me out as well! (Admin account) Anyone know how to do this? P.S. the machine will not be part of a Domain
System Security

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:21.
Twitter Facebook Google+