
我嘗試使用 netsh 命令透過防火牆封鎖 URL,但沒有成功。這就是我阻止 IP 的方法:
netsh advfirewall firewall add rule name="Block URL" remoteip=<ip_to_block> dir=out enable=yes action=block
用 URL 替換 IP 不起作用
答案1
您需要解析 URL IP。
您可以使用尋找執行此操作或使用其他 ip 解析器。
例子
netsh advfirewall firewall add rule name="Block URL" remoteip=<194.25.95.137> dir=out enable=yes action=block
和
netsh advfirewall firewall add rule name="Block URL" remoteip=<194.25.95.131> dir=out enable=yes action=block
您也可以使用此類網站來解析 URL 的 Ip。