Question Hi, using Windows Defender Firewall, how do I block a program from accessing a specific domain? Eg: Firefox from accessing bing.com I can see how

Jan 21, 2022
27
0
30
Hi,

using Windows Defender Firewall, how do I block a program from accessing a specific domain?

Eg: Firefox from accessing bing.com

I can see how I could block from certain IP addresses, but not the domains

Thanks
 

kanewolf

Titan
Moderator

Ralston18

Titan
Moderator
In your Windows Defender Firewall configuration are there any currently existing rules for Firefox?

Inbound, Outbound, Connection?

Monitoring Firewall?

My Windows Defender has a couple of existing rules in all categories.

Likely a Connection rule along with some Inbound or Outbound rule.

= = = =

If you run "nslookup bing.com" (without quotes do you get the following results?


PS C:\Users\XXXX> nslookup bing.com
Server: UnKnown
Address: 2601:147:c201:b20c:9610:3eff:fe00:3495

Non-authoritative answer:
Name: bing.com
Addresses: 2620:1ec:c11::200
13.107.21.200
204.79.197.200


Your requirement is clear and straightforward and I am finding it interesting that there does not seem to be some immediate "How To" tutorial.

Here is a link that may prove helpful....

http://woshub.com/block-domains-websites-windows-firewall-powershell/

My current thought is a Powershell script that blocks bing.com if Firefox is running.

Still that all seems to be a bit cumbersome in some ways. Do you have any sort of test environment to work in?
 
Jan 21, 2022
27
0
30
In your Windows Defender Firewall configuration are there any currently existing rules for Firefox?

Inbound, Outbound, Connection?

Monitoring Firewall?

My Windows Defender has a couple of existing rules in all categories.

Likely a Connection rule along with some Inbound or Outbound rule.

= = = =

If you run "nslookup bing.com" (without quotes do you get the following results?


PS C:\Users\XXXX> nslookup bing.com
Server: UnKnown
Address: 2601:147:c201:b20c:9610:3eff:fe00:3495

Non-authoritative answer:
Name: bing.com
Addresses: 2620:1ec:c11::200
13.107.21.200
204.79.197.200


Your requirement is clear and straightforward and I am finding it interesting that there does not seem to be some immediate "How To" tutorial.

Here is a link that may prove helpful....

http://woshub.com/block-domains-websites-windows-firewall-powershell/

My current thought is a Powershell script that blocks bing.com if Firefox is running.

Still that all seems to be a bit cumbersome in some ways. Do you have any sort of test environment to work in?
In your Windows Defender Firewall configuration are there any currently existing rules for Firefox?

Inbound, Outbound, Connection?

Monitoring Firewall?

My Windows Defender has a couple of existing rules in all categories.

Likely a Connection rule along with some Inbound or Outbound rule.

= = = =

If you run "nslookup bing.com" (without quotes do you get the following results?


PS C:\Users\XXXX> nslookup bing.com
Server: UnKnown
Address: 2601:147:c201:b20c:9610:3eff:fe00:3495

Non-authoritative answer:
Name: bing.com
Addresses: 2620:1ec:c11::200
13.107.21.200
204.79.197.200


Your requirement is clear and straightforward and I am finding it interesting that there does not seem to be some immediate "How To" tutorial.

Here is a link that may prove helpful....

http://woshub.com/block-domains-websites-windows-firewall-powershell/

My current thought is a Powershell script that blocks bing.com if Firefox is running.

Still that all seems to be a bit cumbersome in some ways. Do you have any sort of test environment to work in?
Thanks yes I’m coming from Mac and there is an app called Little Snitch which does the job

I’ve just installed it so happy to continue testing

I’ve been recommended Glasswire but didn’t get very far with it
 

Ralston18

Titan
Moderator
There are Windows apps similar to Little Snitch...

FYI:

https://alternativeto.net/software/little-snitch/?platform=windows

https://www.technewstoday.com/little-snitch-alternative-windows/

I have not worked with any of those programs (full disclosure).

However, your/the requirements are certainly clear and hopefully someone following this thread will be able to make a specific recommendation.

In the meantime, I am going to tinker about with Windows Defender Firewall, etc. and see if I can restrict Firefox (and only Firefox) from bing.com.
 
  • Like
Reactions: tomshardwareuser7