# Sample Quantumult Configuration # # Line started with ";" or "#" or "//" shall be comments. # 以 ";" 或 "#" 或 "//" 开头的行为注释行。 # # SS-URI scheme can be found at https://shadowsocks.org/en/spec/SIP002-URI-Scheme.html # # Quantumult uses HEAD method send HTTP request to the server_check_url to test the proxy's status, the results should be two latencies, the first one is TCP handshake to the proxy server, the second one is the total time that Quantumult successfully received the HTTP response from the server_check_url. The lightning icon means that the TCP fast open is successful. If the server in section [server_local] or section [server_remote] has its own server_check_url, its own server_check_url will be used instead of the server_check_url in section [general]. # # Quantumult 使用 HTTP HEAD 方法对测试网址 server_check_url 进行网页响应性测试(测试结果为通过该节点访问此网页获得 HTTP 响应所需要的时间),来确认节点的可用性。 # Quantumult 界面中的延迟测试方式均为网页响应性测试,显示的最终延迟均为通过对应节点访问测试网页获得 HTTP 响应所需要时间。 # 由于 Trojan 协议为无响应校验协议,使得 HTTP 检测方式即使获得了 HTTP 响应,也不代表节点一定可用。 # # The dns_exclusion_list contains the domains that disabled the placeholder IP(240.*), domains that are not in the dns_exclusion_list all have placeholder IP enabled and have turned on the resolve-on-remote setting. # # The udp_whitelist contains the destination UDP port, empty means all the ports are in udp_whitelist. UDP packtes(through Quantumult tunnel interface) with destination ports that are not in the udp_whitelist will be dropped. This setting has nothing to do with the policy and has nothing to do with the proxy(server) port either. # # The traffic to excluded_routes will not be handled by Quantumult. It is better to reboot your device after modification. # # The resource_parser_url sample can be found at https://raw.githubusercontent.com/crossutility/Quantumult-X/master/resource-parser.js #1、解锁网易云灰色音乐,获取证书链接 https://raw.githubusercontent.com/nondanee/UnblockNeteaseMusic/master/ca.crt #点击上边链接下载CA证书,然后进入设置>通用>描述文件,安装CA证书,并在设置>通用>关于本机>证书信任设置 开启对CA证书的信任。 [general] ;profile_img_url=http://www.example.com/example.png profile_img_url= https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/img/dragonball/1.PNG #资源解析器 resource_parser_url=https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/resource-parser.js ;resource_parser_url=http://www.example.com/parser.js ;geo_location_checker=http://www.example.com/json/, https://www.example.com/script.js ;running_mode_trigger=filter, filter, LINK_22E171:all_proxy, LINK_22E172:all_direct ;ssid_suspended_list,让 Quantumult X 在特定 Wi-Fi 网络下暂停工作(仅 task 模块会继续工作),多个Wi-Fi用“,”连接 #网络切换选择 #4g下分流模式,默认分流 running_mode_trigger=filter, filter, LINK_22E171:all_proxy, Meizu-1:all_direct ;dns exclusion list中的域名将不使用fake-ip方式. 其它域名则全部采用 fake-ip 及远程解析的模式 dns_exclusion_list=*.cmpassport.com, *.jegotrip.com.cn, *.icitymobile.mobi, id6.me #自定义 excluded_routes = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, 17.0.0.0/8 network_check_url = http://www.baidu.com server_check_url = http://www.gstatic.cn/generate_204 geo_location_checker=http://api.live.bilibili.com/ip_service/v1/ip_service/get_ip_addr?, https://github.com/KOP-XIAO/QuantumultX/raw/master/Scripts/IP_API.js ;geo_location_checker = http://ip-api.com/json/?lang=zh-CN, ;geo_location_checker=http://extreme-ip-lookup.com/json/,https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/IPCheck.js ;geo_location_checker=http://api.live.bilibili.com/ip_service/v1/ip_service/get_ip_addr?,https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/IP_bili_cn.js ;geo_location_checker=http://ifconfig.co/json,https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/IPConfig.js ;ssid_suspended_list=LINK_22E174, LINK_22E175 ;UDP名单,留空则默认所有为端口。不在udp白名单列表中的端口,将被丢弃处理。 ;udp_whitelist=53, 123, 1900, 80-443 ;下列表中的内容将不经过 QuantumultX的处理 ;excluded_routes= 192.168.0.0/16, 172.16.0.0/12, 100.64.0.0/10, 10.0.0.0/8 ;icmp_auto_reply=true # # The DNS servers fetched from current network(system) will always be used for better performance(you can disable this feature by using "no-system", but you should at least add one customized DNS server like "server=223.5.5.5"). # When no-ipv6 is set, the DNS module of Quanumult X Tunnel will directly let the AAAA query fail but still allow the A query from IPv6 DNS servers. # The result of query will only be used for evaluating filter or connecting through direct policy, when connecting through server the result will not be used and Quantumult will never know the destination IP of related domain. # Specially directly set 127.0.0.1 for a domain is not allowed in here. if you want some domain(eg: example.com) to be 127.0.0.1, just add "host, example.com, reject" to the "filter_local" section. The reject action will return DNS response with 127.0.0.1 to the query. # [dns] no-system ;no-ipv6 server=119.29.29.29 server=223.5.5.5 server=8.8.8.8 server=114.114.114.114 server=8.8.4.4:53 ;指定域名解析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.28.28.28 server=/*.qq.com/119.28.28.28 server=/*.tencent.com/119.28.28.28 server=/*.weixin.com/119.28.28.28 server=/*.bilibili.com/119.29.29.29 server=/hdslb.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=/*.127.net/119.29.29.29 server=/*.netease.com/119.29.29.29 server=/*.mi.com/119.29.29.29 server=/*.xiaomi.com/119.29.29.29 ;server=/*testflight.apple.com/23.76.66.98 ;server=/example0.com/system ;server=/example1.com/8.8.4.4 ;server=/*.example2.com/223.5.5.5 ;server=/example4.com/[2001:4860:4860::8888]:53 ;address=/example5.com/192.168.16.18 ;address=/example6.com/[2001:8d3:8d3:8d3:8d3:8d3:8d3:8d3] # # static policy points to the server in candidates you manually selected. # available policy points to the first available server in candidates based on server_check_url(concurrent url latency test will be immediately launched when the policy has been triggered and the policy result is unavailable. If no network request is taking the policy at that time, that means the policy is in the idle state and the test won't be launched even if the server is down. At that time you can update the server status by manually launching the test, but it doesn't make any sense). # round-robin policy points to the next server in candidates for next connection. # ssid policy points to the server depending on the network environment. # Param resource-tag-regex and server-tag-regex only work for static, available and round-robin type of polices. # [policy] ;static=policy-name-1, Sample-A, Sample-B, Sample-C, img-url=http://example.com/icon.png ;available=policy-name-2, Sample-A, Sample-B, Sample-C ;round-robin=policy-name-3, Sample-A, Sample-B, Sample-C ;ssid=policy-name-4, Sample-A, Sample-B, LINK_22E171:Sample-B, LINK_22E172:Sample-C ;static=policy-name-5, resource-tag-regex=^sample, server-tag-regex=^example, img-url=http://example.com/icon.png ;available=policy-name-6, resource-tag-regex=^sample, server-tag-regex=^example ;round-robin=policy-name-7, resource-tag-regex=^sample, server-tag-regex=^example # # Params "tag" and "enabled" are optional. # The default sync interval for all kinds of remote resources is 86400 seconds. # You can set update-interval=172800 to customize your auto sync interval(seconds), negative number means disable auto sync. # ;ssid=SSID,Proxy,♻️ 自动选择,Home2604_5G:♻️ 自动选择 ;具体解释如下 ;组名:🏠 SSID Group ;蜂窝网下默认策略:🇭🇰 HK Group, Wi-Fi下默认策略:🇭🇰 HK Group ;ASUS_5G 这个 Wi-Fi下走:🇲🇴 MO Group , AMG-5G 这个 Wi-Fi下走直连:direct ; AUSS_5G 跟 AMG-5G 是我的 Wi-Fi 名字,而 🇭🇰 HK Group, 🇲🇴 MO Group是我的策略组 ; ; 请按需改成你自己的节点或策略组,别傻乎乎直接全部照搬。。。 static=🚀 节点选择, proxy, direct, ♻️ 自动选择, 🔮 负载均衡, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Available.png url-latency-benchmark=♻️ 自动选择, server-tag-regex=(?=.*)^((?!(专线|手游|游戏|(?i)IPLC|IEPL|game)).)*$, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Auto.png round-robin=🔮 负载均衡, server-tag-regex=.*, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Round_Robin.png #自定义 # 其中 CMedia 策略组为中国媒体,GMedia 为国际媒体,Outside 为境外链接,Mainland 为大陆链接,Others 为最终规则 static=adrules, reject, direct, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Universal/Reject.orig.png static=Apple, direct, Outside, 🚀 节点选择,img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/Apple.png static=AppleIOSUpdate, reject, direct, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Social_Media/Apple.png static=Microsoft, direct, Outside, 🚀 节点选择,img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/Microsoft.png static=Netflix, Outside, direct, 🚀 节点选择, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Universal/Netflix.png static=YouTube, Outside, direct, 🚀 节点选择, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Social_Media/YouTube.png static=Spotify, Outside, proxy, direct, 🚀 节点选择, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Social_Media/Spotify.png static=GMedia, Outside, direct, 🚀 节点选择,img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/GMedia.png static=CMedia, direct, proxy, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/CMedia.png static=Speedtest, Outside, direct, 🚀 节点选择, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Universal/Speedtest.png static=Outside, proxy, direct, 🚀 节点选择,img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Universal/Final.png static=Mainland, direct, proxy, img-url=https://raw.githubusercontent.com/Semporia/Hand-Painted-icon/master/Rounded_Rectangle/China.png static=Fianl, Outside, direct, 🚀 节点选择, img-url=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/IconSet/Others.png [server_remote] ;https://raw.githubusercontent.com/crossutility/Quantumult-X/master/server.txt, tag=Sample-01 ;https://raw.githubusercontent.com/crossutility/Quantumult-X/master/server.txt, opt-parser=true, tag=Sample-01 ;https://raw.githubusercontent.com/crossutility/Quantumult-X/master/server.txt, update-interval=-1, tag=Sample-01 ;https://raw.githubusercontent.com/crossutility/Quantumult-X/master/server-complete.txt, tag=Sample-02, as-policy=static, img-url=http://example.com/icon.png, enabled=false # # Params "tag" and "enabled" are optional. #规则分流修复 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rules/ReFix.list, tag=ReFix规则修正(包含番茄小说), update-interval=86400, opt-parser=false, enabled=false #番茄小说广告 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rules/FanQieNovel.list, update-interval=86400, tag=番茄小说广告, opt-parser=false, enabled=true #苹果服务 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rules/Apple.list, force-policy=Apple,tag=Apple , enabled=true #苹果ios更新屏蔽 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rules/AppleIOSUpdate.list, force-policy=AppleIOSUpdate,tag=AppleIOSUpdate,enabled=true #微软 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rules/Microsoft.list, force-policy=Microsoft,tag=Microsoft , enabled=true #奈飞 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rules/Netflix.list, force-policy=Netflix,tag=Netflix , enabled=true #油管 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rules/YouTube.list, force-policy=YouTube,tag=YouTube , enabled=true #spotify https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/StreamingMedia/Music/Spotify.list, tag=Spotify, force-policy=Spotify, update-interval=86400, opt-parser=false, enabled=true #国际媒体 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rules/GMedia.list, force-policy=GMedia,tag=GMedia , enabled=true #国内媒体 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rules/CMedia.list, force-policy=CMedia,tag=CMedia , enabled=true #speedtest测速 https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/Speedtest.list, force-policy=Speedtest,tag=Speedtest , enabled=true #国外网站 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rules/Outside.list, force-policy=Outside,tag=Outside , enabled=true #大陆 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rules/Mainland.list, force-policy=Mainland,tag=Mainland , enabled=true #去广告 https://adrules.top/qx.conf,force-policy=adrules,tag=adrules , enabled=true [rewrite_remote] https://yfamily.vercel.app/rewrite/aqc.conf, tag=爱企查, update-interval=172800, opt-parser=false, enabled=true https://yfamily.vercel.app/rewrite/colorweather.conf, tag=彩云, update-interval=172800, opt-parser=false, enabled=true https://yfamily.vercel.app/rewrite/thunder.conf, tag=thur, update-interval=172800, opt-parser=false, enabled=true https://yfamily.vercel.app/rewrite/KuwoVip.conf, tag=kuwo, update-interval=172800, opt-parser=false, enabled=true #zqzess自用重写 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rewrite/MyRewrite_lite.conf, tag=zqzess自用重写, update-interval=86400, opt-parser=false, enabled=false #YouTube广告屏蔽 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rewrite/youtube.qxrewrite, tag=youtube广告屏蔽, update-interval=604800, opt-parser=false, enabled=true #波点音乐mv屏蔽 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/QuantumultX/rewrite/bodianMusic.conf, tag=波点音乐mv屏蔽, update-interval=86400, opt-parser=false, enabled=true #safari聚合搜索百度引擎版 https://raw.githubusercontent.com/zqzess/rule_for_quantumultX/master/Surge/Module/Qsearch.sqmodule, tag=safari聚合搜索百度引擎版, update-interval=86400, opt-parser=true, enabled=false #Netflix IMDB 評分 https://kinta.ma/surge/netflix_rating.sgmodule, tag=Netflix IMDB 評分, update-interval=86400, opt-parser=true, enabled=false #boxjs https://github.com/chavyleung/scripts/raw/master/box/rewrite/boxjs.rewrite.quanx.conf, tag=boxjs, update-interval=86400, opt-parser=false, enabled=true #知乎 https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.qxrewrite, tag=知乎助手_去广告及体验增强, update-interval=86400, opt-parser=false, enabled=false #bilibili https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/bilibili/bilibili_plus.qxrewrite, tag=哔哩哔哩_去广告, update-interval=86400, opt-parser=false, enabled=true #emby破解 https://raw.githubusercontent.com/qiangxinglin/Emby/main/QuantumultX/emby.conf, tag=Emby Premiere解锁, update-interval=86400, opt-parser=false, enabled=true # https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/Advertising.conf, tag=神机复写(⛔️去广告), update-interval=86400, opt-parser=false, enabled=false https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/General.conf, tag=神机复写(😄️通用), update-interval=86400, opt-parser=false, enabled=false https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/YouTubeAds.conf, tag=神机复写(🈲YouTube-AD), update-interval=86400, opt-parser=false, enabled=false ;https://raw.githubusercontent.com/crossutility/Quantumult-X/master/sample-import-rewrite.txt, tag=Sample, enabled=true # # Only obfs=http, obfs=ws, obfs=wss can have optional "obfs-uri" field. # The obfs-host param in wss will be used for TLS handshake and for HTTP header host field, if obfs-host is not set for wss the server address will be used. # The UDP relay for VMess and Trojan is not currently supported. # When using obfs=ws and obfs=wss the server side can be deployed by v2ray-plugin with mux = 0 or by v2ray-core. # The obfs plugin tls1.2_ticket_auth has one more RTT than tls1.2_ticket_fastauth and obfs tls, you'd better use tls1.2_ticket_fastauth instead. # The method chacha20-ietf-poly1305 and chacha20-poly1305 have the same effect in VMess configuration. # [server_local] # Optional field tls13 is only for shadowsocks obfs=wss ;shadowsocks=example.com:80, method=chacha20, password=pwd, obfs=http, obfs-host=bing.com, obfs-uri=/resource/file, fast-open=false, udp-relay=false, server_check_url=http://www.apple.com/generate_204, tag=ss-01 ;shadowsocks=example.com:80, method=chacha20, password=pwd, obfs=http, obfs-host=bing.com, obfs-uri=/resource/file, fast-open=false, udp-relay=false, tag=ss-02 ;shadowsocks=example.com:443, method=chacha20, password=pwd, obfs=tls, obfs-host=bing.com, fast-open=false, udp-relay=false, tag=ss-03 ;shadowsocks=example.com:443, method=chacha20, password=pwd, ssr-protocol=auth_chain_b, ssr-protocol-param=def, obfs=tls1.2_ticket_fastauth, obfs-host=bing.com, tag=ssr ;shadowsocks=example.com:80, method=aes-128-gcm, password=pwd, obfs=ws, fast-open=false, udp-relay=false, tag=ss-ws-01 ;shadowsocks=example.com:80, method=aes-128-gcm, password=pwd, obfs=ws, obfs-uri=/ws, fast-open=false, udp-relay=false, tag=ss-ws-02 ;shadowsocks=example.com:443, method=aes-128-gcm, password=pwd, obfs=wss, obfs-uri=/ws, fast-open=false, udp-relay=false, tag=ss-ws-tls-01 ;shadowsocks=example.com:443, method=aes-128-gcm, password=pwd, obfs=wss, obfs-uri=/ws, tls13=true, fast-open=false, udp-relay=false, tag=ss-ws-tls-02 # # Optional field tls13 is only for vmess obfs=over-tls and obfs=wss ;vmess=example.com:80, method=none, password=23ad6b10-8d1a-40f7-8ad0-e3e35cd32291, fast-open=false, udp-relay=false, tag=vmess-01 ;vmess=example.com:80, method=aes-128-gcm, password=23ad6b10-8d1a-40f7-8ad0-e3e35cd32291, fast-open=false, udp-relay=false, tag=vmess-02 ;vmess=example.com:443, method=none, password=23ad6b10-8d1a-40f7-8ad0-e3e35cd32291, obfs=over-tls, fast-open=false, udp-relay=false, tag=vmess-tls-01 ;vmess=192.168.1.1:443, method=none, password=23ad6b10-8d1a-40f7-8ad0-e3e35cd32291, obfs=over-tls, obfs-host=example.com, fast-open=false, udp-relay=false, tag=vmess-tls-02 ;vmess=192.168.1.1:443, method=none, password=23ad6b10-8d1a-40f7-8ad0-e3e35cd32291, obfs=over-tls, obfs-host=example.com, tls13=true, fast-open=false, udp-relay=false, tag=vmess-tls-03 ;vmess=example.com:80, method=chacha20-poly1305, password=23ad6b10-8d1a-40f7-8ad0-e3e35cd32291, obfs=ws, obfs-uri=/ws, fast-open=false, udp-relay=false, tag=vmess-ws-01 ;vmess=192.168.1.1:80, method=chacha20-poly1305, password=23ad6b10-8d1a-40f7-8ad0-e3e35cd32291, obfs=ws, obfs-host=example.com, obfs-uri=/ws, fast-open=false, udp-relay=false, tag=vmess-ws-02 ;vmess=example.com:443, method=chacha20-poly1305, password=23ad6b10-8d1a-40f7-8ad0-e3e35cd32291, obfs=wss, obfs-uri=/ws, fast-open=false, udp-relay=false, tag=vmess-ws-tls-01 ;vmess=192.168.1.1:443, method=chacha20-poly1305, password=23ad6b10-8d1a-40f7-8ad0-e3e35cd32291, obfs=wss, obfs-host=example.com, obfs-uri=/ws, fast-open=false, udp-relay=false, tag=vmess-ws-tls-02 ;vmess=192.168.1.1:443, method=chacha20-poly1305, password=23ad6b10-8d1a-40f7-8ad0-e3e35cd32291, obfs=wss, obfs-host=example.com, obfs-uri=/ws, tls13=true, fast-open=false, udp-relay=false, tag=vmess-ws-tls-03 # # Optional field tls13 is only for http over-tls=true ;http=example.com:80,fast-open=false, udp-relay=false, tag=http-01 ;http=example.com:80, username=name, password=pwd, fast-open=false, udp-relay=false, tag=http-02 ;http=example.com:443, username=name, password=pwd, over-tls=true, tls-host=example.com, tls-verification=true, fast-open=false, udp-relay=false, tag=http-tls-01 ;http=example.com:443, username=name, password=pwd, over-tls=true, tls-host=example.com, tls-verification=true, tls13=true, fast-open=false, udp-relay=false, tag=http-tls-02 # # Optional field tls13 is only for trojan over-tls=true ;trojan=example.com:443, password=pwd, over-tls=true, tls-verification=true, fast-open=false, udp-relay=false, tag=trojan-tls-01 ;trojan=example.com:443, password=pwd, over-tls=true, tls-verification=true, tls13=true, fast-open=false, udp-relay=false, tag=trojan-tls-02 ;trojan=192.168.1.1:443, password=pwd, over-tls=true, tls-host=example.com, tls-verification=true, fast-open=false, udp-relay=false, tag=trojan-tls-03 ;trojan=192.168.1.1:443, password=pwd, over-tls=true, tls-host=example.com, tls-verification=true, tls13=true, fast-open=false, udp-relay=false, tag=trojan-tls-04 [filter_local] ;user-agent, ?abc*, proxy ;host, www.google.com, proxy ;host-keyword, adsite, reject ;host-suffix, googleapis.com, proxy ;ip6-cidr, 2001:4860:4860::8888/32, direct #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, proxy #自定义 host-suffix, local, direct ip-cidr, 10.0.0.0/8, direct ip-cidr, 17.0.0.0/8, direct ip-cidr, 100.64.0.0/10, 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, Mainland final, Fianl # # The "reject" returns HTTP status code 404 with no content. # The "reject-200" returns HTTP status code 200 with no content. # The "reject-img" returns HTTP status code 200 with content of 1px gif. # The "reject-dict" returns HTTP status code 200 with content of empty json object. # The "reject-array" returns HTTP status code 200 with content of empty json array. # The "request-header" works for all the http headers not just one single header, so you can match two or more headers including CRLF in one regular expression. # The "echo-response" just reply back the body of the content type response for matched URL, the body file should be saved at "On My iPhone - Quantumult X - Data". # The length and encoding related HTTP header fields will be automatically processed by Quantumult if the "rewrite" is body related, so you should not handle them by yourself. The max supported response size is 1024kB(decompressed) for response-body and script-response-body. # The body related rewrite will not be executed if the body is empty. # When using javascript in rewrite, you can use those objects: $request, $response, $notify(title, subtitle, message), console.log(message) and Quantumult's built-in objects all have prefix "$". # Supports: $request.scheme, $request.method, $request.url, $request.path, $request.headers, $response.statusCode, $response.headers, $response.body # The $notify(title, subtitle, message) will post iOS notifications if Quantumult notification has been enabled. # The $prefs is for persistent store: $prefs.valueForKey(key), $prefs.setValueForKey(value, key), $prefs.removeValueForKey(key), $prefs.removeAllValues(). # The console.log(message) will output logs to Quantumult log file. # The setTimeout(function() { }, interval) will run function after interval(ms). # The scripts for script-request-header, script-request-body, script-response-header, script-response-body, script-echo-response and script-analyze-echo-response should be saved in local "On My iPhone - Quantumult X - Scripts" or "iCloud Drive - Quantumult X - Scripts". Samples can be found at https://github.com/crossutility/Quantumult-X # The difference between script-analyze-echo-response and script-echo-response is that the former will wait for the request body. # [rewrite_local] ;^http://example\.com/resource1/1/ url reject ;^http://example\.com/resource1/2/ url reject-img ;^http://example\.com/resource1/3/ url reject-200 ;^http://example\.com/resource1/4/ url reject-dict ;^http://example\.com/resource1/5/ url reject-array ;^http://example\.com/resource2/ url 302 http://example.com/new-resource2/ ;^http://example\.com/resource3/ url 307 http://example.com/new-resource3/ ;^http://example\.com/resource4/ url request-header ^GET /resource4/ HTTP/1\.1(\r\n) request-header GET /api/ HTTP/1.1$1 ;^http://example\.com/resource4/ url request-header (\r\n)User-Agent:.+(\r\n) request-header $1User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36$2 ;^http://example\.com/resource5/ url request-body "info":\[.+\],"others" request-body "info":[],"others" ;^http://example\.com/resource5/ url response-body "info":\[.+\],"others" response-body "info":[],"others" ;^http://example\.com/resource5/ url echo-response text/html echo-response index.html ;^http://example\.com/resource6/ url script-response-body response-body.js ;^http://example\.com/resource7/ url script-echo-response script-echo.js ;^http://example\.com/resource8/ url script-response-header response-header.js ;^http://example\.com/resource9/ url script-request-header request-header.js ;^http://example\.com/resource10/ url script-request-body request-body.js # # The $task.fetch() compose a HTTP request and deal with the response, only text body is supported. A $task.fetch() can be embeded in the completion handler of another $task.fetch(), if you want serial requests not current requests. # The scripts should be saved in local "On My iPhone - Quantumult X - Scripts" or "iCloud Drive - Quantumult X - Scripts". Samples can be found at https://github.com/crossutility/Quantumult-X/blob/master/sample-task.js # The default HTTP request timeout is 10 seconds. # # Supports 5 or 6 fields of cron excluding the command field. # [task_local] [http_backend] ;https://raw.githubusercontent.com/crossutility/Quantumult-X/master/sample-backend.js, tag=fileConverter, path=^/example/v1/ ;preference.js, tag=userPreference, path=^/preference/v1/, img-url=https://example.com, enabled=true ;convert.js, tag=fileConverter, path=^/convert/v1/ # # Only the TLS SNI or destination address in "hostname" will be handled by MitM. # # By default when MitM enabled for the HTTPS request, Quantumult X fetches the certificate(the certificate will be cached) from the original site, keeps most of the needed original certificate informations and re-signs it using the MitM root CA, this is the recommended(and more compatible) way of creating MitM certificate. # Occasionally some users like to debug the HTTPS request that its domain does not exist, so the original certificate doesn't even exist. This is when the param simple_cert_hostname comes up. The HTTPS request with TLS SNI names that are in the simple_cert_hostname(and hostname) will using the pure local generated MitM certificate. # # Important !!! You should always keep your CA passphrase and p12 private. # [mitm] passphrase = A7BCF7F0 p12 = MIILuQIBAzCCC4MGCSqGSIb3DQEHAaCCC3QEggtwMIILbDCCBccGCSqGSIb3DQEHBqCCBbgwggW0AgEAMIIFrQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIfNHP1C4EQQQCAggAgIIFgBpg00mi1AoUo5QaCsuNbCsPms9AO99bj911mx7BKbFZm2VmtdidRq88yLke4XTQJ1AmNvDfIbdk0PYESqvYEkHV9lCA+HODeN55FzvUdSRUHGoAAwjOWzGoSfJ+gMgPX7WTBrp7D3bfE7bwNybvUTIn67Gy7AgSX93h8vfq7/h4m6kuvAGjAztV3vXIQAdA6l0aNE/inbtyh1i1BVbT54dn2zBrIBuiQEoD23uzAeD29MUI8DEa54DQL0eQ3ymyFBFmUOXm7edth+44Bn3JDg9F5AZHGkCF59mlJoQW+jyw7UxDHjHocdTIxDjxSwxoK+VZycjl6jrte7e5viy4BXKrxGyZwipi6UuI2oN4AQRsT2STyDNVzgbO0iVQ2K3yTLR0DnwpxmYDfxN7Qvn4SWRDKL8nD+lwx9S53or3BuyOFhv1hT9TJYYlpBZ0KTKnVwhsEXSQjpLVSfvjuzmTMgfwLJf9EkD9tcODpYnnX0JOWUMEm1Q2hBbFeFj2ArkWhDmzc7bOREXEs/qAw54Sorcv1y7AzahFwLLdAq/mDYRWcRlx+evXuF93HFjAmw2UJ25/XkOMLUuNSP3qJqmh2u81En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