Git Product home page Git Product logo

Comments (11)

hezhijie0327 avatar hezhijie0327 commented on August 18, 2024

在 AGH 的上游配置文件规则中,[/example.com/]# 意为使用默认上游并非屏蔽,详情请参考官方文档

from gfwlist2agh.

1379 avatar 1379 commented on August 18, 2024

那如果不在这个规则里的域名呢,会走什么呢

from gfwlist2agh.

hezhijie0327 avatar hezhijie0327 commented on August 18, 2024

默认上游

from gfwlist2agh.

1379 avatar 1379 commented on August 18, 2024

from gfwlist2agh.

hezhijie0327 avatar hezhijie0327 commented on August 18, 2024

修正部分规则冲突错误,如fonts.googleapis.com

  1. 国内存在 CDN,那应该走国内 DNS
  2. 规则中 googleapis.com 存在于黑名单中走国外 DNS

在这种情况下,在黑名单中指定 [/fonts.googleapis.com/]# 作为上游,那么他将使用国内 DNS 而非国外 DNS

* 黑名单结构

  1. 默认(国内 DNS)
  2. 黑名单修正(#,走国内 DNS)
  3. 黑名单(国外 DNS)

from gfwlist2agh.

1379 avatar 1379 commented on August 18, 2024

那为啥把一些国内域名比如*.baidu.com,*.zhihu.com也加进去了呢,这样不仅会增大文件的体积,还会增加域名查询时判断的次数吧

from gfwlist2agh.

hezhijie0327 avatar hezhijie0327 commented on August 18, 2024
  1. 尚未发现规则过多会影响查询判断
  2. 对于您这情况可使用 *_split.txt 规则,并未对异常规则进行修正,即纯黑 / 白名单
  3. 对于文件下载速度或无法访问的问题可使用 https://source.zhijie.online/DHDb/main/文件路径https://cdn.jsdelivr.net/gh/hezhijie0327/DHDb@main/文件路径 进行下载
  4. 对于文件体积问题,暂时无法解决,若对每个子域名进行分类所需的人工审查成本过高,现通过 DHDb 工具对无效,国内,国外域名进行分类,移除规则中无效域名以减小文件体积

from gfwlist2agh.

1379 avatar 1379 commented on August 18, 2024

感谢解答,不过我的意思是:没必要把一些国内域名也放到上游dns里吧,只需要放入类似fonts.googleapis.com域名即可。
所以把国内域名加进去的作用是啥啊

from gfwlist2agh.

hezhijie0327 avatar hezhijie0327 commented on August 18, 2024
  1. 这是规则生成模块化的遗留问题,黑白混合模式(*_full.txt / *_lite.txt)的生成方式及数据共用
  2. *.baidu.com,*.zhihu.com 不添入规则,则当使用白名单模式时,规则外默认走国外 DNS,即 *.baidu.com,*.zhihu.com 等将走国外 DNS
  3. 对于这个问题后续找到解决方案后解决;由于不影响查询速度,此问题处理优先级为低

from gfwlist2agh.

1379 avatar 1379 commented on August 18, 2024

求大佬解决后在这里@我一下,有点洁癖,受不了多余的东西

from gfwlist2agh.

Potterli20 avatar Potterli20 commented on August 18, 2024

求大佬解决后在这里@我一下,有点洁癖,受不了多余的东西

建议自行维护,

from gfwlist2agh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.