Home » Guides » Security »

Published on 07.07.09 by Brent Trahan

Prevent a Program from Accessing the Internet using the Windows 7 Firewall

Learn how to stop a program or feature from getting unsolicited internet access using the Windows 7 firewall.

Stop a Program from Gaining Unsolicited Internet Access

  1. Open Control Panel in the Start menu.
  2. Open Windows Firewall in the Control Panel.

    block-program-windows-7-firewall-1

    Note: If Windows Firewall is not available, change View by to Large icons at the top right of the Control Panel.

  3. Select Allow a program or feature through Windows Firewall in the left column of the Windows Firewall window.

    block-program-windows-7-firewall-2

  4. Click the Change settings button in the Allowed Programs window.

    block-program-windows-7-firewall-3

  5. Uncheck the program or feature and then click OK to save the changes.

    block-program-windows-7-firewall-4

Stop an Unlisted Program from Gaining Unsolicited Internet Access

What if the program I want to block using the Windows 7 firewall is not listed?

  1. Follow the steps above.
  2. When you get to the last step (above) click the Allow another program button.
  3. Select the program from the Add a Program list or click Browse to find it and then click Add.

    block-program-windows-7-firewall-5

  4. Uncheck the program and then click OK to save the settings.

    block-program-windows-7-firewall-6

Still need help? Ask your computer question now.

Related Guides:

17 Responses to “Prevent a Program from Accessing the Internet using the Windows 7 Firewall”

Subscribe to this guide's comments RSS feed.

  1. vasant kamothi says:

    thnk u very much

  2. jono says:

    It will not allow me to uncheck the box in the public column….

  3. DDD says:

    Shouldn’t matter as long as the box on the left side of the program name is unchecked.

  4. Philitubby says:

    Thanks a 1000 times. Have been trying to sort this for bl00dy hours. ;-)

  5. shamsudeen says:

    hello all.

    i just installed a file management application which is asking serial no, i keygened and put the key in the program later some times its suddenly closing and asking for key, i thing its communicating through internet, how to block it? will it work the above method?. and some time its even detecting when pc is not connected to internet, how i wonder?

    Thank you
    San

    • sabofx says:

      Hiya!

      Some applications are extra sneaky and install additional executables that launch at the startup of windows or run as a service. You should find and block these additional exe files.
      Use ´msconfig.exe´ to find and disable apps that startup at systemboot.

      Another (easier) way of avoiding the unwanted ‘phone home’ is to install and run your application in a sandbox environment. Download a free sandbox at http://www.sandboxie.com/

      You can configure specific rules for your sandbox. These rules include en/disabling Internet access for anything running inside your sandbox.

      Good luck & cheerz,
      sabo-fx

  6. pradip says:

    thanks dear.Its really helpful.

  7. Jorny says:

    @Shamsudeen.You’Ll have to uninstall the program and remove all cache and registries relating to the program before you can follow what DDD prescribed.And I’Ll advice you do this after you install any cracked program.

  8. A.A. says:

    Doesn’t work. I added a program in the list and unchecked the box on the left. Still the program can access the internet.

    Using Windows 7 Home Premium SP 1 64bit.

  9. A.A. says:

    …Was able to block it from the extended view though.

  10. Lea says:

    Same issue as A.A. Also using Windows Home Premium 64 bit, but not SP.

  11. Daniel says:

    This doesn’t work because the instructions are wrong. That dialogue is specifically only to *allow* Internet access for programs, not deny it. If you uncheck the checkbox to the left of the program name, what you are doing is not blocking the program from accessing the Internet, but deactivating the rule you just created that allows it to. So effectively, you have created a new rule and immediately disabled it.

    The only way to block a program is to go through Advanced Settings (instead of “Allow a program or feature…”), go to Ingoing or Outgoing rules, click “New Rule…” to the right, and follow the steps. In specific: create a Program rule, choose your program, choose to block connections, and name the new rule.

    • JD says:

      ^^^I tried Daniel’s suggestion but to no avail. A certain program I had been using was still being stubborn and wanted to update itself when I didn’t want it to.

      So to conclude, I tried:

      -The suggestions in this article
      -Blocking it in Windows firewall’s Ingoing AND Outgoing rules
      -Blocking it in my anti-virus

      My solution?

      By going to “C:\Windows\System32\drivers\etc” (Using Windows 7 x64) and editing the “hosts” file with notepad and adding this at the bottom of the list:

      e.g.

      127.0.0.1 maximumpcguides.com
      127.0.0.1 http://www.maximumpcguides.com
      (The universal code for blocking any site is “127.0.0.1”)

      This did the trick for me in blocking the program and stop it from updating, a.k.a stop it from “calling home”.

      Hope this helps someone.

  12. d.v says:

    very useful….thanx a lot.

  13. Taha says:

    Question: if i specify the program path the folder, not the exe file, for example: C:\Program Files (x86)\Adobe, is the rule subject to the files included in the folder or not?

  14. Kevin Redden says:

    Thanks for the help

Leave a Reply

Subscribe to this guide's comments RSS feed.

Microsoft Windows is a registered trademark of Microsoft Corporation. Microsoft Corporation in no way endorses or is affiliated with MAXIMUMpcguides.com. All other products mentioned are registered trademarks of their respective companies. MAXIMUMpcguides IS NOT RESPONSIBLE for any damage or data loss to your computer from using this web site. All information on MAXIMUMpcguides is provided on an AS IS basis with NO WARRANTIES.

Copyright 2006-2014 Brent Trahan. All rights reserved.