我不明白,我尝试将每个 http 请求转发到一个特定的域,除了几个网站。
它有一个例外:
"/path/to/chrome.exe" --host-rules="MAP * www.domain.de,
EXCLUDE *.youtube.*"
但我不让它适用于多个域,例如:
"/path/to/chrome.exe" --host-rules="MAP * www.domain.de,
EXCLUDE *.youtube.*" *.last.fm"
或者
"/path/to/chrome.exe" --host-rules="MAP * www.domain.de,
EXCLUDE *.youtube.*", *.last.fm"
我的格式错误在哪里?:-/
正如描述(http://peter.sh/experiments/chromium-command-line-switches/#host-rules)所说:
Comma-separated list of rules that control how hostnames are mapped.
For example: "MAP * 127.0.0.1" --> Forces all hostnames to be mapped to 127.0.0.1
"MAP *.google.com proxy" --> Forces all google.com subdomains to be resolved to "proxy".
"MAP test.com [::1]:77 --> Forces "test.com" to resolve to IPv6 loopback.
Will also force the port of the resulting socket address to be 77. "MAP * baz, EXCLUDE www.google.com"
--> Remaps everything to "baz", except for "www.google.com".
These mappings apply to the endpoint host in a net::URLRequest
(the TCP connect and host resolver in a direct connection, and the CONNECT in an http proxy connection,
and the endpoint host in a SOCKS proxy connection).