-
-
Save Weeker/97ccd6ba434d37dc0d41 to your computer and use it in GitHub Desktop.
Yet another config for Surge.app (build 243+)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This config file was created for myself (@janlay). You may want to add or remove some rules to make efficient use of the Internet. | |
| # NOTE: This file only contains rules and depends on main.conf which defines your own proxy. | |
| # Your main.conf will look like this: | |
| # [Proxy] | |
| # Proxy = https,server.address,port,username,password | |
| # | |
| # Make sure this line included in the main.conf | |
| # #!PROXY-OVERRIDE:this-file.conf | |
| # Surge will support updating conf sometime in the future | |
| #!UPDATE-URL:https://gist.github.com/janlay/b57476c72a93b7e622a6/raw | |
| # stub proxy to stop surge complaining, leave this. | |
| [Proxy] | |
| Proxy = https,1.2.3.4,443,user,pass | |
| [Rule] | |
| # Accelerate most visited sites, part 1 | |
| DOMAIN-SUFFIX,cn,DIRECT | |
| DOMAIN-KEYWORD,ali,DIRECT | |
| DOMAIN-KEYWORD,taobao,DIRECT | |
| DOMAIN-KEYWORD,baidu,DIRECT | |
| # Block privacy tracker within apps | |
| DOMAIN-KEYWORD,umeng.co,REJECT | |
| DOMAIN-KEYWORD,flurry.co,REJECT | |
| DOMAIN-SUFFIX,mmstat.com,REJECT | |
| DOMAIN-SUFFIX,doubleclick.net,REJECT | |
| DOMAIN,monitor.uu.qq.com,REJECT | |
| DOMAIN-SUFFIX,beacon.qq.com,REJECT | |
| DOMAIN,pingma.qq.com,REJECT | |
| DOMAIN,stat.m.jd.com,REJECT | |
| DOMAIN,ads.mopub.com,REJECT | |
| DOMAIN-SUFFIX,cnzz.com,REJECT | |
| DOMAIN-SUFFIX,mob.com,REJECT | |
| # prevent sniffer from a public WiFi | |
| DOMAIN,init.icloud-analysis.com,REJECT | |
| # Accelerate most visited sites, part 2 | |
| DOMAIN-KEYWORD,360,DIRECT | |
| DOMAIN-SUFFIX,qq.com,DIRECT | |
| DOMAIN-SUFFIX,jd.com,DIRECT | |
| DOMAIN-SUFFIX,163.com,DIRECT | |
| DOMAIN-SUFFIX,126.net,DIRECT | |
| DOMAIN-SUFFIX,netnease.com,DIRECT | |
| DOMAIN-SUFFIX,gtimg.com,DIRECT | |
| DOMAIN-SUFFIX,ls.apple.com,DIRECT | |
| DOMAIN-SUFFIX,apple.com,Proxy | |
| DOMAIN-SUFFIX,icloud.com,Proxy | |
| DOMAIN-SUFFIX,mzstatic.com,Proxy | |
| DOMAIN-KEYWORD,aka,Proxy | |
| # Streaming services, comment out if you don't need | |
| DOMAIN-KEYWORD,sohu,DIRECT | |
| DOMAIN-KEYWORD,qiyi,DIRECT | |
| # Force some domains which are fucked by GFW while resolving DNS | |
| DOMAIN-KEYWORD,google,Proxy,force-remote-dns | |
| DOMAIN-KEYWORD,facebook,Proxy,force-remote-dns | |
| DOMAIN-KEYWORD,youtube,Proxy,force-remote-dns | |
| DOMAIN-KEYWORD,twitter,Proxy,force-remote-dns | |
| DOMAIN-SUFFIX,twimg.com,Proxy,force-remote-dns | |
| DOMAIN-KEYWORD,gmail,Proxy,force-remote-dns | |
| # Workaround for some apps | |
| DOMAIN-KEYWORD,instagram,Proxy,force-remote-dns | |
| # Telegram | |
| IP-CIDR,91.108.56.0/22,Proxy,no-resolve | |
| IP-CIDR,91.108.4.0/22,Proxy,no-resolve | |
| IP-CIDR,109.239.140.0/24,Proxy,no-resolve | |
| IP-CIDR,149.154.160.0/20,Proxy,no-resolve | |
| # LAN, debugging rules should place above this line | |
| IP-CIDR,192.168.0.0/16,DIRECT | |
| IP-CIDR,10.0.0.0/8,DIRECT | |
| IP-CIDR,172.16.0.0/12,DIRECT | |
| IP-CIDR,127.0.0.0/8,DIRECT | |
| # Detect local network | |
| GEOIP,CN,DIRECT | |
| # Use proxy for all others | |
| FINAL,Proxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment