主机规则谷歌浏览器,添加配置 [英] Host-rules google chrome, adding configuration

查看:639
本文介绍了主机规则谷歌浏览器,添加配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有得到它,我试图转发每个http请求到一个特定的域名,除了几个网站。

i dont get it, i try to forward every http request to a specific domain except a couple of websites.

它有一个例外:

"/path/to/chrome.exe" --host-rules="MAP * www.domain.de, 
EXCLUDE *.youtube.*"

但我没有得到它与多个域eg.:/ p>

But i dont get it work with multiple domains eg.:

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

我的格式错误在哪里? : - /

Where is my formatting error? :-/

正如描述( 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). 


推荐答案

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

I appear to be answering an old question, but anyway...

您发布:

"/path/to/chrome.exe" --host-rules="MAP * www.domain.de, EXCLUDE *.youtube.*", *.last.fm"

我想你的例子中的引用是混乱的。它应该是:

I think the quoting is messed up in your example. It should be:

"/path/to/chrome.exe" --host-rules="MAP * www.domain.de, EXCLUDE *.youtube.*, *.last.fm"

这篇关于主机规则谷歌浏览器,添加配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆