How to Block a Program From the Internet in Windows 10

This tutorial will take you every single step of the way through creating a Windows Firewall Rule to block a specific program (whichever you want) in Windows 10.

  1. Start out by clicking the Windows 10 Start Button and in the Search section type the word firewall. One of the items that will be displayed is Windows Firewall | Control Panel. Select that one.
  2. You’ll be presented with the main Windows 10 Firewall screen.

  3. click to enlarge

  4. From the column on the left side of the window, click the Advanced Settings… item.
  5. Now you’ll be presented with the Advanced section of the Windows 10 Firewall.

  6. click to enlarge

  7. Select the Outbound Rules item from the left-most column.
  8. Now you’ll be presented with the Advanced Outbound Rules section.

  9. click to enlarge

  10. This time we’re going to look in the column on the right side of the screen, titled Outbound Rules…. From this section, select New Rule…
  11. When asked which type of connection you want to block, select Program and then click the Next > button.
  12. Since you only want to block one program (not them all) – click the Browse… button next to This program path:. NOTE: you can of course block more than one program by creating multiple rules.
  13. Click through the folders on your PC until you find the Application you want to block from accessing the Internet. If you’re having trouble locating it, it’s probably in the Program Files folder, likely in a sub-folder with either the program name or company name as a part of the folder name itself. When you’ve found it, select it by clicking on it once, and then click the Open button.

  14. click to enlarge

  15. Click the Next > button to continue.
  16. Select Block the connection and then click the Next > button.
  17. Make sure that all three items (Domain, Private and Public) have “check marks” next to them, and then click the Next > button.
  18. Give your newly created “rule” a name and quick description, and finally, click the Finish button.
  19. You’ll be returned to the Advanced Outbound Windows Firewall Settings section.

  20. click to enlarge

  21. This time, the column on the right side (Actions) will have your newly created Rule in it!
  22. As stated earlier in this tutorial, you can do this for as many programs in Windows 10 as you’d like. You can even use the “Copy” button to create similar rules without having to go through every step again.
{ 49 comments… add one }
  • mrtn January 13, 2016, 5:22 am

    Thank you! Very clear and helpful tutorial :)

  • January 20, 2016, 7:27 pm

    Thank You so much

  • smnthtrwl January 23, 2016, 7:00 pm

    Thank you for this!

  • Ross McKillop January 23, 2016, 7:26 pm

    I’m thrilled it helped! :)

  • Ross McKillop January 23, 2016, 7:27 pm

    You’re welcome! Thanks for the feedback :)

  • asd February 3, 2016, 4:52 pm

    +20 clicks to block 1 program in Windows 10’s ancient Firewall user interface… bravo Microsoft! I wish there a better way to do this.

  • Zchesus Alwaysrighty February 20, 2016, 10:59 am

    Hello asd
    How about this for making it easier:

    Open notepad:

    paste everything below between ##### lines

    save it as somefilename.reg

    and voila now you have block with firewall and delete from firewall (you can name them however you want) in your right click context menu.

    execute and confirm that you want it entered into registry

    yw :P


    Windows Registry Editor Version 5.00


    [HKEY_CLASSES_ROOTexefileshellFirewall – Block Program]

    [HKEY_CLASSES_ROOTexefileshellAdd To Firewallcommand]

    @=”netsh advfirewall firewall add rule name=”%1″ dir=out action=block program=”%1″”

    [HKEY_CLASSES_ROOTexefileshellDelete From Firewall]

    [HKEY_CLASSES_ROOTexefileshellDelete From Firewallcommand]

    @=”netsh advfirewall firewall delete rule name=”%1″”


  • Zchesus Alwaysrighty February 23, 2016, 10:02 pm

    I wrote you a reply on how to make this easier (1 click) but the guy who owns the site still didn’t approve my comment (still pending). If you want, pm me on youtube or at twitter (I’m zchesus everywhere) and I’ll post you quick solution

  • Hrach Abrahamyan March 20, 2016, 10:11 am

    but the software I blocked still works! should I reboot the system?

  • Jonathan Bratanata May 16, 2016, 5:57 am

    Thanks a lot for this tutorial! It helped me a lot.

  • Noman Ali May 23, 2016, 2:17 pm

    Wao!! This is just awesome and worthy.

  • DonnaM June 9, 2016, 10:12 am

    THanks a mill

  • Vladimir Guanzon July 5, 2016, 2:09 am

    Great tip! Thanks!

  • Twinkle July 13, 2016, 3:46 pm

    Great tutorial

  • hisham August 2, 2016, 2:21 pm

    this does not work

  • Hassan Abdul-Kareem August 19, 2016, 6:27 am

    windows is a headache

  • Hassan Abdul-Kareem August 19, 2016, 6:27 am

    worked , thanks.

  • Huzefa Rashid September 8, 2016, 10:45 pm

    Worked very well. Thanks a lot..

  • Rickie L November 26, 2016, 11:25 am

    Wow, easy-pleasy! Thank you so very much.

  • Tharindu Dhananjaya December 12, 2016, 9:14 pm

    Great.Thank you very much!!!!
    Easy to understand.

  • Zunair Mushtaq February 11, 2017, 3:45 pm

    Nice Brief…(y) Great job

  • ravi kumar patel April 1, 2017, 9:34 am

    Thank you so much..

  • Medo April 18, 2017, 5:39 am


  • Ajinkya April 22, 2017, 9:42 am


  • Ackchyually May 2, 2017, 4:01 am

    Straight to the point. Very helpful article!

  • Ali May 23, 2017, 7:35 am

    Thanks for this helpful post

  • Farzad HN May 29, 2017, 8:12 pm

    Thank you very much
    .That was very helpful.

  • Newbie 4Real August 6, 2017, 11:13 am

    Thank you!

  • amin August 15, 2017, 3:30 pm

    Thank you :)

  • Nakshatra Bhatt August 27, 2017, 11:19 am

    Thanks bruh

  • Shahzaib Khan September 14, 2017, 12:30 pm

    Thank you for your effort.

  • DANISH KHAN September 24, 2017, 3:01 am


  • heythem December 21, 2017, 4:48 am

    that’s smart man, thanks

  • Amr Lotfy January 23, 2018, 12:15 pm

    Thank you very much!!

  • youl March 24, 2018, 9:56 am

    Thanks , this Tip solved my problem 👌

  • Nagraj April 15, 2018, 2:07 am

    I want to block Google web site in my fire wall with port then wt should do

  • Joe Jackson August 15, 2018, 7:51 am

    Fast. Easy. Awesome!
    Thanks a bunch.

  • Olivier August 22, 2018, 3:35 pm

    Great. Thanks

  • Stepan September 3, 2018, 12:43 pm


  • Tunde October 17, 2018, 1:06 am


  • harryson October 24, 2018, 7:14 am

    very very very very helpful…thanks.. it worked for me

  • kautsar November 21, 2018, 5:43 pm

    simple but solve the problem. thanks

  • Srdan December 31, 2018, 1:43 am


  • Rajeev January 15, 2019, 6:47 am

    Thank you very much. all the best.

  • Ehab January 21, 2019, 2:20 pm

    Thank you

Leave a Comment