YAFEIML
V2EX  ›  问与答

GFWlist 里面各种符号代表什么?

  •  
  •   YAFEIML · Jan 19, 2015 · 3285 views
    This topic created in 4309 days ago, the information mentioned may be changed or developed.
    ".lsxszzg.com",(前面一个点)
    "||altrec.com",(这个明显,双竖杠)
    "hulu.com",(前面没有任何)
    "|http://www.ilovelongtoes.com/",(前面单杠,斜杠结尾)
    "|http://www.nbc.com/live",(前面单杠)

    大致这么多吧
    如果我想google.com所有二级米比如translate.google.com、mail.google.com该怎么写?
    11 replies  •  2015-01-20 16:39:30 +08:00
    yfdyh000
    yfdyh000
    Jan 19, 2015❤️1
    1
    AutoProxy规则,继承自AdBlock Plus规则写法。
    ||google.com 就可以了。

    ||是网域匹配,|是网址匹配,^是开头匹配(同正则表达式)。
    https://adblockplus.org/zh_CN/filters
    YAFEIML
    YAFEIML
    OP
    Jan 19, 2015
    2
    @yfdyh000 超感谢
    YAFEIML
    YAFEIML
    OP
    Jan 19, 2015
    3
    @yfdyh000 好像不是哎,||google.com这样的话任意google无法访问,google.com这样的话似乎正常。。
    yfdyh000
    yfdyh000
    Jan 19, 2015
    4
    @YAFEIML 怎么无法访问。怎么写的,写在哪。应该没问题,一直这么用的。
    wenketel
    wenketel
    Jan 19, 2015
    5
    /^https?:\/\/[^\/]+google\.(.*)/
    谷歌不是自带规则么
    8rB61FLBPVSxW2C8
    8rB61FLBPVSxW2C8
    Jan 20, 2015 via Android
    6
    YAFEIML
    YAFEIML
    OP
    Jan 20, 2015
    7
    @yfdyh000 shadowsocks的PAC文件,写成||google.com这样连google都打不开
    @wenketel 这个好流弊啊
    @HackerOO7
    yfdyh000
    yfdyh000
    Jan 20, 2015
    8
    @YAFEIML PAC中当然不能这么写了,写规则才能这样的。参照周围的格式吧。Shadowsocks的pac.txt中不是已经自带了 "google.com": 1, 了吗。
    YAFEIML
    YAFEIML
    OP
    Jan 20, 2015
    9
    @yfdyh000 但是上面有个功能是从gfwlist更新pac,更新下来的文件就是我所提问的格式。
    gangzhuo
    gangzhuo
    Jan 20, 2015
    10
    @YAFEIML 2.3 beta2修好了。
    YAFEIML
    YAFEIML
    OP
    Jan 20, 2015
    11
    @gangzhuo 可以支持||google.com写法了吗?
    另外能不能弄个查看当前版本号的东西,还有更新说明呢。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1141 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:04 · PVG 02:04 · LAX 10:04 · JFK 13:04
    ♥ Do have faith in what you're doing.