如何使用 Windows 主机文件中的参数阻止 URL

How to block URL with parameter in Windows hosts file

我知道如何在 C:\WINDOWS\system32\drivers\etc\hosts 中屏蔽整个域。但是如何仅使用某些参数来阻止 URL,例如 something.com/...&key=value 但 something.com 作为要解锁的域。这可能吗?

这无法使用 HOSTS 文件。通过 HOSTS 阻止在较低级别上起作用,将无法访问的 IP 地址分配给域名。 URL 不能那样被阻止,你需要某种代理来做到这一点。

信息from Wikipedia:

The hosts file is a computer file used by an operating system to map hostnames to IP addresses. The hosts file is a plain text file, and is conventionally named hosts.