# 此文件为 Quantumult X 示例配置文件
# Based on Sample Quantumult Configuration (v1.0.9)
# 鸣谢 @Shawn 提供的部分 API 及相应资源文件
#
# 以 ";" 或 "#" 或 "//" 开头的行为注释行。
#
# [基础部分]
[general]
# > 服务检测链接
# 建议不使用 Google.com 进行测试,以避免节点机器人验证
server_check_url=http://www.qualcomm.cn/generate_204
# > 资源解析器
# 可用于自定义各类远程资源的转换，如节点，规则 filter，复写 rewrite 等
resource_parser_url= https://raw.githubusercontents.com/KOP-XIAO/QuantumultX/master/Scripts/resource-parser.js
# > 节点 GEO 位置信息检测
geo_location_checker=http://ip-api.com/json/?lang=zh-CN,https://raw.githubusercontents.com/KOP-XIAO/QuantumultX/master/Scripts/IP_API.js
# > DNS 排除列表
# list 中的域名将不使用 fake-ip 方式进行解析
dns_exclusion_list=*.qq.com
# > 排除路由
# 以下 ip-cidr 中的路由将不经由 QuantumultX 进行处理
excluded_routes= 192.168.0.0/16, 172.16.0.0/12, 100.64.0.0/10, 10.0.0.0/8, 239.255.255.250/32

# [DNS 部分]
[dns]
# > 通用域名 DNS
server=119.29.29.29
server=182.254.116.116
server=223.5.5.5

# 此处可对特定域名指定相应 DNS
server=/*.taobao.com/223.5.5.5
server=/*.tmall.com/223.5.5.5
server=/*.alipay.com/223.5.5.5
server=/*.alicdn.com/223.5.5.5
server=/*.aliyun.com/223.5.5.5
server=/*.jd.com/119.29.29.29
server=/*.qq.com/119.29.29.29
server=/*.tencent.com/119.29.29.29
server=/*.weixin.com/119.29.29.29
server=/*.bilibili.com/119.29.29.29
server=/*.163.com/119.29.29.29
server=/*.126.com/119.29.29.29
server=/*.126.net/119.29.29.29
server=/*.mi.com/119.29.29.29
server=/*.xiaomi.com/119.29.29.29

# 此处可根据需要自行指定解析 IP 地址
# [≈ hosts]
# e.g. 手动指定 PCBeta
address=/pcbeta.com/36.27.212.81
address=/uc.pcbeta.com/36.27.212.81
address=/m.pcbeta.com/36.27.212.81
address=/mac.pcbeta.com/36.27.212.81
address=/static.template.pcbeta.com/36.27.212.81
address=/web.pcbeta.com/36.27.212.81
address=/i.pcbeta.com/36.27.212.81
address=/bbs.pcbeta.com/36.27.212.81
address=/www.pcbeta.com/36.27.212.81
address=/cdn.pcbeta.attachment.inimc.com/36.27.212.81
address=/cdn.pcbeta.static.inimc.com/36.27.212.81
address=/cdn.pcbeta.css.inimc.com/36.27.212.81

# [本地节点部分]
[server_local]
# 请自行添加自有服务器

;shadowsocks=example.com:443, method=chacha20, password=pwd, obfs=tls, obfs-host=bing.com, fast-open=false, udp-relay=false, tag=ss-03

# [远程订阅节点部分]
[server_remote]
# 服务器远程订阅
# 请自行添加服务器订阅
;https://raw.githubusercontents.com/crossutility/Quantumult-X/master/server.txt, tag=Sample-01

# [远程分流规则部分]
[filter_remote]
# 以下提供本仓库内常用分流规则,可根据需要进行增减
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Services/Unbreak.list, tag=Unbreak, force-policy=direct, enabled=true
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Advertising/Hijacking.list, tag=Hijacking, enabled=true
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Advertising/AdReject.list, tag=Advertising, enabled=true
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Services/SNS/Telegram.list, tag=Telegram, force-policy=Telegram, enabled=true
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Media/Foreign/Netflix.list, tag=Netflix, enabled=true
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Services/Google.list, tag=Google, enabled=true
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Media/Foreign/Pornhub.list, tag=PornHub, enabled=true
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Services/Cloudflare.list, tag=CloudFlare, enabled=true
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Media/DomesticMedia.list, tag=DomesticMedia, force-policy=direct, enabled=true
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Media/ForeignMedia.list, tag=ForeignMedia, force-policy=proxy, enabled=true
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Region/Global.list, tag=Global, force-policy=proxy, enabled=true
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Services/Apple.list, tag=Apple, force-policy=direct, enabled=true
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Services/Microsoft.list, tag=Microsoft, force-policy=direct, enabled=true
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rules/Region/China.list, tag=Domestic, force-policy=direct, enabled=true

# [复写规则部分]
[rewrite_remote]
# 以下提供本仓库内常用复写规则,可根据需要进行增减
https://raw.githubusercontents.com/sve1r/Rules-For-Quantumult-X/develop/Rewrite/Rewrite.conf

# [策略组部分]
[policy]
# 已根据对应分流进行指定规则,可根据需要进行增减
static=Telegram, proxy, img-url=https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Telegram.png
static=Pornhub, proxy,img-url=https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Pornhub.png
static=Netflix,proxy, img-url=https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Netflix_Letter.png
static=Cloudflare,proxy,direct, img-url=https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Cloudflare.png
static=DomesticMedia, direct, proxy, img-url= https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Domestic.png
static=Domestic, direct, proxy, img-url= https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Back.png
static=Apple, proxy, direct, img-url= https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Apple.png
static=Apple Domestic,  direct, img-url= https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/iCloud.png
static=Apple Music, proxy, direct, img-url= https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Apple_Music.png
static=Google, proxy, img-url=https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Google.png
static=Google Domestic, direct, proxy, img-url= https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Google_Search.png
static=Microsoft, proxy, img-url= https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Microsoft.png
static=Microsoft Domestic, direct, proxy, img-url= https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Windows.png
static=Hijacking, reject, direct, img-url=https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Hijacking.png
static=Advertising, reject, img-url= https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Advertising.png
static=Unbreak, direct, proxy, img-url= https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Auto.png
static=Final, proxy, direct, img-url=https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/Final.png

# [本地分流规则部分]
[filter_local]
# 对于完全相同的某条规则，本地的将优先生效
ip-cidr, 10.0.0.0/8, direct
ip-cidr, 127.0.0.0/8, direct
ip-cidr, 172.16.0.0/12, direct
ip-cidr, 192.168.0.0/16, direct
ip-cidr, 224.0.0.0/24, direct
geoip, cn, direct
final, Final

# [本地复写规则部分]
[rewrite_local]
# 对于完全相同的某条规则，本地的将优先生效

[task_local]
# 签到脚本模块

#以下为证书&主机名部分
[mitm]


