0

I know that Windows allow blocking IP addresses through netsh like so:

netsh advfirewall firewall add rule name="Block some stuff" dir=in action=block remoteip=xxx.xxx.xxx.xxx enable=yes

But is there any way to use netsh (or is there any other Windows utility) to block URLs like how ipfw and iptables allows? I know there's wipfw, but I'd like to use something built in if possible.

Parker
  • 8,539
  • 10
  • 69
  • 98

1 Answers1

1

Use nslookup to resolve dns/ip of the url and block that ip using netsh. Or, you may add an exception in hosts file in Windows.

AAATechGuy
  • 385
  • 2
  • 9