2013-04-26 56 views
0

我知道Windows允許通過netsh的封鎖IP地址,就像這樣:使用Netsh advfirewall的封鎖網址在Windows

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

但有什麼辦法可以使用netsh的(或有任何其他Windows實用程序)阻止如ipfw和iptables允許的URL?我知道有wipfw,但我想盡可能使用內置的東西。

回答

1

使用nslookup解析url的dns/ip並使用netsh阻止該ip。 或者,您可能會在Windows中的hosts文件中添加一個異常。

相關問題