Как запретить игре доступ в интернет windows 11

1. Launch the Windows Settings app.
2. In the left sidebar, select «Network & internet.»
3. Then, Click «Advanced network settings» and choose «Windows Firewall.»

(external link removed by moderator)

4. Select «Advanced settings» from the center bottom.
5. Select «Outbound Rules» from the left sidebar.
6. Select «New Rule» from the right sidebar.

(external link removed by moderator)

7. Select «Program» and then click Next.
8. Browse to the program’s path and then click Next.
9. Choose the «Block the connection» option and then click Next.

(external link removed by moderator)

10. Regardless, select all three choices and then click Next.
11. Fill in the program’s name and description (optional), then click Finish.

If there is an application, software, program or game you wish to block from accessing the internet, you can block the app using Windows Firewall so that no traffic can go in or out of the program. This tutorial will show you how to block a program from connecting to the internet using Windows Defender Firewall in Windows 11.

Also see: How to Know Which App is Using The Internet in Windows 11

Block an app from using the internet with Windows 11 Firewall

To block an app from accessing the internet, we will use Windows Defender Firewall with Advanced Security to set up inbound and outbound rules to block incoming and outgoing connections for the app.

How does it work? – By blocking incoming connections for a program, connections from outside of your computer to that particular program cannot be initiated. Thus, traffic and data cannot flow inward by the program to your computer. In the contrary, by blocking outbound connections for a program, that particular program will not be able to initiate any connection going-out of your computer, thus, blocking the program from sending any traffic or data to the internet.

Follow the steps below to block both incoming and outgoing connections for a program (to completely block the program from connecting to the internet).

  1. On the Windows desktop screen, go to Start, then search for and open “Windows Defender Firewall with Advanced Security“.
    Open Windows Defender Firewall with Advanced Security Windows 11

  2. In the Advanced Security window, on the left pane, click on Inbound Rules.
  3. On the right pane, click on New Rule (in the “Actions” column).
    Add new inbound rules to block program from internet Windows 11

  4. In the wizard window, select Program and then click Next.
    Create inbound rule to block program Windows 11 Firewall

  5. Next, under “This program path“, enter the path to the program, or click on Browse to browse to the program you want to block. Click Next to continue.
    Program path Inbound Rule Wizard Windows 11 Firewall

  6. On the next screen, select “Block the connection“.
    Block an app from using the internet Windows 11

  7. When prompted for “When does this rule apply”, select the network profile which when connected you want the program to be blocked. If you are not sure, select all three Domain, Private and Public to block the program when you are connected to any of these network profiles.
    Inbound Outbound rules domain private public Windows Firewall

  8. Next, enter a name for this rule. It can be any name you like. The name and description is to make it easier for you to identify this rule among the list of all added rules.
    Specify the name and description of this inbound outbound rule Firewall

  9. Click Finish to add the rule.
  10. Then, back to the Advanced Security window, on the left pane, click on Outbound Rules.
  11. In the “Actions” column, click on New Rule.
    How to Block a program from accessing internet Windows 11

  12. Repeat step 4 to 9 to add an outbound rule to block outgoing connection for the program.

After adding both inbound and outbound rules to block connections to or from a program with Windows Defender Firewall, that program will no longer be able to access the internet.

Block only inbound or outbound connection for a program

Optionally, you can partially block a program by blocking only its inbound or outbound connections depending on what you want to achieve. You can set up only one rule on either of the inbound or outbound rules for a program to block only one way connection instead of both.

For example, if you block only the incoming connections for a program, the program will not be able to receive any traffic from the internet, but it can still send traffic out to the internet.

Windows Defender Firewall need to be turned on in order for this feature to work. In Windows 11, Windows Firewall is enabled by default and should always stay on to protect your PC from potential threats. To check if Windows Firewall is properly turned on on your PC, go to Start > search for and open “Windows Security” > Firewall & network protection. Make sure “Firewall is on” is displayed on all three network profiles.

Если вам нужно разрешить запуск определенного приложения в Windows, но запретить ему доступ в Интернет, проще всего создать запрещающее правило во встроенном брандмауэре (Windows Defender Firewall).

К примеру, я хочу ограничить доступ в интернет для приложения Acrobat Reader. Для создания блокирующего правила в файерволе Windows, нужно получить полный путь к исполняемому файлу программы (например, «
C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe
«)

Откройте консоль управления Windows Firewall with Advanced Security, выполнив команду
wf.msc
.

Щелкните по секции Outbound Rule и выберите New Rule.

Создайте правило файервола со следующими настройками:

Блокирующее правило для приложения в windows defender firewall

Новое правило появится в консоли Windows Defender. По умолчанию оно активно и будет блокировать сетевой доступ для выбранного приложения. При попытке открыть PDF файл из сетевой папки или Интернет-сайта, Acrobat Reader скажет, что указанный URL не доступен.

приложение не может получать доступ в интернет

Если нужно заблокировать доступ для универсального UWP приложения Microsoft Store:

  1. Откройте свойства созданного ранее правила брандмауэра, перейдите на вкладку Programs and Services
  2. Выберите опцию All programs that meet the specified conditions
  3. Нажмите на кнопку Settings в разделе Application Packages и выберите в списке UWP приложение, которому нужно ограничить доступ в Интернет
    Запретить доступ в Интернет для UWP приложения Windows Store

Можно создать правило файервола, которое блокирует программе доступ в Интернет из консоли PowerShell. Это гораздо быстрее. Например, рассмотренное выше правило можно создать с помощью команды:

New-NetFirewallRule -Program "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" -Action Block -Profile Domain, Private,Public -DisplayName "Block network access Acrobat ReaderDC (AcroRd32.exe)" -Description "Block Acrobat ReaderDC" -Direction Outbound

New-NetFirewallRule - создать блокирующее правило для приложения

Включить правило:

Get-NetFirewallrule -DisplayName "Block network access Acrobat ReaderDC (AcroRd32.exe)"| Enable-NetFirewallRule

Если нужно запретить приложению доступ в Интернет, но разрешить обращаться к ресурсам в локальной сети (на IP адреса в подсети 192.168.2.0/24), можно оставить общее запрещающее правило и создать более узкое разрешающее правило для разрешенных IP адресов и/или подсетей:

$allowedIP = @("192.168.2.0/24")
New-NetFirewallRule -Program "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" -Action Allow -Profile Domain, Private,Public -DisplayName "Allow LAN access Acrobat ReaderDC (AcroRd32.exe)” -Description “Allow LAN Acrobat ReaderDC" -Direction Outbound
Get-NetFirewallrule -DisplayName "Allow LAN access Acrobat ReaderDC (AcroRd32.exe)"| Get-NetFirewallAddressFilter | Set-NetFirewallAddressFilter -RemoteAddress $allowedIP

Разрешить доступ приложению к локальной сети

Теперь программа сможет получить доступ только к сетевым ресурсам в LAN, но не в Интернете.

Если нужно запретить доступ для всех программ, кроме разрешенных:

  1. Нужно перевести действие по-умолчанию для исходящего трафика в запрет (block):
    netsh advfirewall set allprofiles firewallpolicy blockinbound,blockoutbound

    разрешить доступ в Интернет только для определенных приложений

  2. После этого нужно отключить все правила и создать разрешающее правила только для выбранных exe файлов.

Sign in to your MUO account

block app from internet access

Firewalls play an integral part in keeping computers and networks safe, but you can also use them to control an application’s access to the internet. The Windows Defender Firewall is a powerful security utility pre-installed in Windows 11. You can easily block a program from accessing the internet using the Windows Defender Firewall.

Whatever your reasons might be for preventing an app from accessing the internet, we’ve got you covered. Read on as we detail how you can block apps from accessing the internet in just a few clicks.

How to Block an Apps Internet Access Using Windows Defender Firewall

Windows Defender Firewall is a nifty built-in firewall program that you can configure in a few clicks. Blocking a program’s access to the internet means you prevent it from sending or receiving any network traffic.

There can be many benefits of blocking an app from communicating on the internet, but it can also come with potential security risks.

To block an application from using the internet using Windows Defender Firewall:

  1. Launch the Start menu, search for Windows Defender Firewall and click the Best match.
  2. In the Control Panel window that opens, click on Advanced settings from the left sidebar, and it will launch the Windows Defender Firewall with Advanced Security window.

    defender firewall

  3. From the left side menu, click on Outbound rules and select New Rule from the Actions pane on the right side of the screen. A New Outbound Rule Wizard should now launch.
  4. We want to create a rule to block a program from accessing the internet, so you need to select Program in the New Outbound Rule Wizard and then click on Next.

    program files

  5. Since you only want to block a specific program, you need to specify the program path and select the program’s EXE file; this is usually located in the Program Files directory of your PC.

    firewall wizard

  6. Check the This program path radio button, click on Browse, select the executable file of the program, and click on Next.
  7. Select Block the connection and then click on Next.
  8. Check Domain, Private and Public, and click on Next.
  9. You can now give your rule a name and a description, and a descriptive name can help keep track of the firewall rules if something goes wrong, and finally click on Finish.

You have now successfully blocked the app from accessing the internet.

How to Disable the Windows Defender Firewall Rule

If you’ve set up an Outbound Rule in the past, but now wish to restore an app’s access to the internet, you will need to disable or delete the added rule. Let’s look at how you can disable or remove an Outbound Rule in Windows Defender Firewall.

  1. Launch the Start menu, search for Windows Defender Firewall and click the Best match.
  2. In the Control Panel window that opens, click on Advanced settings from the left sidebar, and it will launch the Windows Defender Firewall with Advanced Security window.

    disable firewall rule

  3. In the above section, we added a new rule named Adobe Internet Block, so we’re going to remove it now. Click on Outbound Rules from the left pane and search for your rule from the list. Once you’ve found your rule, select it.
  4. From the Actions pane on the right side, you can either completely delete the rule by clicking on Delete or temporarily disable it by selecting Disable Rule.

Your outbound rule will now either be deleted or disabled based on your selection, meaning the program can now access the internet freely.

Blocking Apps From the Internet in Windows 11

Thanks to Windows Defender Firewall, blocking an app from the internet takes only a few clicks. If you had the belief that configuring a firewall on your Windows PC is too technical for you, we hope this guide helped you prove otherwise.

If you want to block a specific program from accessing the internet on your Windows 11 PC, this gearupwindows article will help you. Using Windows Firewall, you can easily and quickly stop the access of the internet to a program. When you block an app through the firewall, in and out traffic will be stopped.

To block an app from accessing the internet, you may find freeware and shareware applications in the market. But, in this post, we will use the built-in Windows Defender Firewall to set up inbound and outbound rules to block incoming and outgoing connections for the selected program.

How to Block or Prevent a Program from Accessing the Internet in Windows 11?

To completely block a program from connecting to the internet, do the following steps:-

Step 1. Click the Search button on the taskbar and type “Windows Defender Firewall with Advanced Security” in the search bar.

Step 2. From the available search results, click the “Windows Defender Firewall with Advanced Security” to open it.

Step 3. Select Inbound Rules from the left sidebar when the app opens.

Step 4. On the right side pane of the program, click on New Rule.

Step 5. When you’re done, a new pop-up window will open up. Select Program and then click the Next button.

Step 6. On the following window, select the “This program path “option. Click the Browse button and select the program executable you want to block or paste the exact file path. Then, click the Next button.

Step 7. Select Block the connection and click the Next button.

Step 8. When prompted with the option “When does this rule apply,” leave the domain, private and public, selected. Then click the Next button.

Step 9. Now, enter the name and description of the rule. Then click the Finish button.

Step 10. In the “Windows Defender Firewall with Advanced Security” window, select Outbound Rules. And then click the New Rule on the right sidebar.

Step 11. Now, you will see similar windows as you have done in the above steps from 5 to 9. Repeat the steps to configure the outbound rule.

When both inbound and outbound rules are configured to block connections for a program or game in Windows Defender Firewall, that application will no longer have access to the internet.

Happy Blocking!

Conclusion

In conclusion, blocking a specific program from accessing the internet on a Windows 11 PC is a simple and quick process using the built-in Windows Defender Firewall. By following the steps outlined in this gearupwindows article, users can easily set up inbound and outbound rules to prevent a program from connecting to the internet. While there may be freeware and shareware applications available in the market to accomplish this, the Windows Defender Firewall offers a reliable and secure solution. With the ability to block incoming and outgoing traffic, users can ensure that the selected program is completely restricted from accessing the internet.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Фон рабочего стола windows 10 1280х1024
  • Как удалять системные файлы windows 10
  • Код ошибки при активации windows 10 0xc004f213
  • Обучение на клавиатуре windows 7
  • Виста тема для windows xp