Repository navigation
Expand file tree
/
Copy pathLocket.conf
More file actions
39 lines (33 loc) · 1.53 KB
/
Copy pathLocket.conf
File metadata and controls
39 lines (33 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Shadowrocket Config
# Locket Gold Unlock + hostsVN Ad Blocking
# Author: William - Thành Long
[General]
bypass-system = true
skip-proxy = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,captive.apple.com
tun-excluded-routes = 10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.0.0/24,192.168.0.0/16,224.0.0.0/4,255.255.255.255/32
dns-server = https://doh.pub/dns-query,https://dns.alidns.com/dns-query,223.5.5.5,119.29.29.29
fallback-dns-server = system
ipv6 = false
prefer-ipv6 = false
dns-direct-system = false
icmp-auto-reply = true
always-reject-url-rewrite = false
private-ip-answer = true
udp-policy-not-supported-behaviour = REJECT
update-url = https://raw.githubusercontent.com/Long18/shadowrocket/main/Locket.conf
[Rule]
# hostsVN - Block ads Vietnamese
RULE-SET,https://raw.githubusercontent.com/bigdargon/hostsVN/master/option/domain.txt,REJECT
# Final
FINAL,PROXY
[Host]
localhost = 127.0.0.1
[URL Rewrite]
^https?://(www.)?g.cn https://www.google.com 302
^https?://(www.)?google.cn https://www.google.com 302
[Script]
Locket = type=http-response, pattern=^https:\/\/api\.revenuecat\.com\/.+\/(receipts$|subscribers\/[^/]+$), script-path=https://raw.githubusercontent.com/Long18/shadowrocket/main/js/Locket.js, requires-body=true, max-size=-1, timeout=60
deleteHeader = type=http-request, pattern=^https:\/\/api\.revenuecat\.com\/.+\/(receipts|subscribers), script-path=https://raw.githubusercontent.com/Long18/shadowrocket/main/js/deleteHeader.js, timeout=60
[MITM]
enable = true
hostname = api.revenuecat.com