gpt4 book ai didi

google-chrome - 主机规则谷歌浏览器,添加配置

转载 作者:行者123 更新时间:2023-12-04 14:47:09 26 4
gpt4 key购买 nike

我不明白,我尝试将每个 http 请求转发到特定域,除了几个网站。

它正在工作,但有一个异常(exception):

"/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).

最佳答案

我似乎在回答一个老问题,但无论如何......

你发帖:

"/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"

关于google-chrome - 主机规则谷歌浏览器,添加配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14605636/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com