Como posso bloquear o acesso à Internet do aplicativo Windows 10 do Spotify (na Windows Store)?

2

Eu quero bloquear o Spotify de ter acesso à Internet. É o aplicativo para o Windows 10 baixado da Windows Store. O motivo para bloquear o acesso à internet é para que eu possa ouvir música off-line no meu computador, enquanto meu pai escuta música no Google Home pela mesma conta.

Acho que a resposta a essa pergunta pode ser geral para qualquer aplicativo da Windows Store. Eu só não sei onde o programa está para bloqueá-lo do Firewall do Windows.

Existe uma questão semelhante neste site aqui mas está desatualizado porque é para o Windows 7/8.

Eu sei como especificar uma regra no Firewall do Windows para desabilitar o acesso à Internet, mas queria saber como fazer isso para um aplicativo da Windows Store? Especificamente, para o Spotify. Ou se houver qualquer outra maneira, essa também seria uma resposta aceitável.

    
por Michael Yaworski 30.06.2018 / 05:34

1 resposta

1

  1. Abra o "Painel de controle"
  2. Selecione "Sistema e segurança"
  3. Na seção Firewall do Windows, selecione “Permitir um programa através do Firewall do Windows”.
  4. Desmarcar a caixa à esquerda do nome do aplicativo impede o acesso aos recursos da rede, enquanto a verificação permite acesso.
  5. Se o programa que você deseja bloquear ou desbloquear não estiver listado, clique no botão “Permitir outro programa…” para adicioná-lo. Escolha o aplicativo na lista e selecione "Adicionar". Se o programa não estiver nesta lista, use o botão “Browse…” para selecionar manualmente o arquivo do programa.

Desde que você disse que não funcionou aqui é outra opção

  1. Abra o Firewall do Windows Defender
  2. Vá para "Configurações avançadas"
  3. No lado esquerdo, clique no link "Regras de saída"
  4. No painel da extrema direita, clique em "Nova regra" para criar uma nova regra para o tráfego de saída.
  5. No assistente que aparece, verifique se "program" está selecionado e clique em "next"
  6. Selecione a opção "Este caminho do programa" e digite (ou procure) o caminho para o programa que você deseja bloquear.

Important Note before clicking continue! (Source: howtogeek)

When you use the “Browse” command to select an EXE file, Windows defaults to using what are known as environmental variables if the particular path includes a given path portion represented by one of those variables. For example, instead of inserting C:\Users\Steve\, it will swap that portion for the environmental variable %USERPROFILE% .

For some reason, despite the fact that this is the default way it populated the program path field, it will break the firewall rule. If the file you have browsed to is anywhere that uses an environmental variable (like the /User/ path or the /Program Files/ path), you have to manually edit the program path entry to remove the variable and replace it with the correct and full file path. In case that’s a tad confusing let us illustrate with our example program from above.

When we browsed to the EXE file for our Maxthon web browser, Windows plugged in the following program path information for the file, which was located in our Documents folder:

%USERPROFILE%\Documents\MaxthonPortable\App\Maxthon\Bin\Maxthon.exe That file path is understood by Windows, but for some reason is no longer recognized when inserted into a firewall rule. Instead, we need to replace the file path that includes the environmental variable with the full file path. In our case it looks like this:

C:\Users\Jason\Documents\MaxthonPortable\App\Maxthon\Bin\Maxthon.exe It’s possible this is some quirk isolated to the current version of the Windows 10 firewall, and that you can use environmental variables in other versions, but we’d encourage you to just remove the variable and use the full and absolute file path to save yourself a headache today and down the road.

Finally, there’s one small but important thing to keep in mind here. For most applications, the main EXE file is the one you want to block, but there are examples of applications where things are a bit counter-intuitive. Take Minecraft, for example. At first glance it seems like you should block Minecraft.exe , but Minecraft.exe is actually just the launcher file and the actual network connectivity happens through Java. So, if you want to restrict your child from connecting to online Minecraft servers you need to block Javaw.exe and not Minecraft.exe . That’s atypical, though, as most applications can be blocked through the main executable.

At any rate, once you’ve selected your application and confirmed the path, you can finally click that “Next” button. On the “Action” screen of the wizard, select the “Block the connection” option, and then click “Next.”

  1. Na tela "Perfil", é solicitado que você selecione quando a regra se aplica. Aqui você tem três opções:

Domínio: A regra se aplica quando um computador está conectado a um domínio.

Privado: a regra se aplica quando um computador está conectado a uma rede privada, como sua rede doméstica ou de pequena empresa.

Público: a regra se aplica quando um computador está conectado a uma rede pública, como em um café ou hotel.

If you have a laptop that you use at home (a network you’ve defined as private) and at a coffee shop (a network you’ve defined as public) and you want the rule to apply to both places, you need to check both options. If you want the rule only to apply when you’re at the public Wi-Fi spot at the coffee shop, then just check Public. When in doubt, just check them all to block the application across all networks. When you’ve made your selection click “Next”.

  1. O passo final é nomear sua regra. Dê um nome claro que você reconhecerá mais tarde e clique em Concluir.

All outbound communication from the application in question is now cut off. If you want to further tighten the grip you have on the application you can select the “Inbound Rules” option in right hand navigation panel of the “Windows Firewall with Advanced Security” and repeat the process, step for step, recreating an identical firewall rule that governs inbound traffic for that application too.

    
por 30.06.2018 / 05:57