TechBuzzPro

Block Program From Accessing Internet Windows

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Blocking a program from accessing the internet in Windows prevents it from connecting to online servers, sending data, or receiving updates. This is useful for improving privacy, reducing distractions, or troubleshooting performance issues. Here's how to do it using Windows' built-in firewall settings.

What You'll Need

  • Administrative access to the Windows PC
  • Knowledge of the program's name or executable file (typically with the .exe extension)
  • Internet connectivity to apply the rule and test it
  • Time to confirm the rule works as intended after applying it

Step-by-Step

  1. Open the Control Panel: Press the Windows key, type Control Panel, and open it. Alternatively, search for Windows Defender Firewall directly from the Start menu if you're in Windows 10 or 11.
  2. Navigate to Windows Defender Firewall: Go to System and Security > Windows Defender Firewall. In Windows 11, this might be labeled as Windows Security, but the process is the same.
  3. Access Advanced Settings: On the left, click Advanced settings. You may need to click Allow the settings above to change or enter your administrator credentials if prompted.
  4. Open Outbound Rules: In the left pane, select Outbound Rules, then click New Rule on the right. This is where you define what traffic to block.
  5. Choose Program: Select Program and click Next. This lets you specify the exact program you want to block, rather than all programs or domain names.
  6. Browse for the Executable: Click This program path, then Browser to locate the program's .exe file. Select it and click Next. For example, if you're blocking Spotify.exe, navigate to the installation folder, usually in C:\Program Files\Spotify\Spotify.exe.
  7. Block the Connection: Choose Block the connection and click Next. This will ensure the program can't make outgoing connections to the internet.
  8. Apply to All Profiles: Select Domain, Private, and Public to apply the rule in all network environments. This ensures it works whether you're at home, in the office, or using public Wi-Fi.
  9. Name the Rule: Give the rule a descriptive name, such as Block [Program Name] Internet, and click Finish. For example: Block Spotify Internet.

Common Mistakes

Users often block a program incorrectly by selecting the wrong executable file or neglecting to apply the rule to all profiles (Domain, Private, Public). Always confirm the path and ensure the rule is applied to all connection types. Some users also forget to restart the program or the PC after applying the rule, which can make it seem like the block didn't work when it actually did.

Tips

  • Use a program like Process Explorer from Microsoft to find the correct executable if unsure. Right-click the program in the taskbar or process list to find the exact path.
  • Review the rule after applying it to ensure it's blocking as expected. Go back to Outbound Rules and double-click the rule to verify the settings.
  • Consider disabling internet access for other programs you don't want connecting in the same way. For example, blocking OneDrive can prevent automatic syncing but won't stop the app from launching.
  • Use the Test method: after applying the rule, open the program and try to access a feature that requires internet. If it fails to load or shows an error, the rule is working.

Troubleshooting

If the program still connects to the internet after applying the rule:

  • Verify the rule is enabled in the firewall settings. Right-click the rule and make sure Enabled is selected.
  • Double-check the path of the executable in the rule settings. If the program's executable has moved or is renamed, the rule will no longer work.
  • Restart your PC to ensure the rule takes full effect. Sometimes, rules don't apply until the system reboots.
  • Test the program again after the restart to see if the block is working. If it still connects, try creating the rule again or check for additional executables the program might be using.
  • Consider using a third-party firewall like Windows Firewall Control or GlassWire if you need more advanced features or better visibility into program traffic.

Frequently Asked Questions

Will this stop all internet connections for the program?

Yes, if the rule is created and configured correctly, the program will not be able to access the internet at all. This includes updates, online content, and data transmission.

Can I undo this block?

Yes, go back to the Windows Defender Firewall settings and delete or disable the rule. This will restore the program's internet access.

How do I find the program's .exe file?

Right-click the program shortcut, select Open file location, then right-click the program again and choose Open file location to find the .exe file. For example, C:\Program Files\Spotify\Spotify.exe.

Does this work with all versions of Windows?

Yes, this method works with Windows 10 and 11. Earlier versions like Windows 7 and 8 may have slightly different labels but the process is similar. In Windows 8, the firewall settings are under Control Panel > System and Security > Windows Firewall.

Can I block multiple programs at once?

You can create a separate rule for each program, but the firewall does not support bulk blocking of multiple programs in one step. You must repeat the process for each program you want to block.

Can I allow some internet access but block others?

Yes, by creating custom rules for specific domains or ports, but this requires more advanced firewall configuration. For example, you can allow Spotify.exe to connect only to api.spotify.com and block all other connections. This is more complex and may require using the Custom rule type instead of the default Program rule.