Created
July 15, 2016 02:59
-
-
Save allenxuyb/87f1945a6bf4487f0a247bfd35c01119 to your computer and use it in GitHub Desktop.
Config for surge.app
This file contains 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 (@shanskc). You may want to add or remove some rules to make efficient use of the Internet. | |
# Update: Rules and configuration tuning | |
# 此配置仅供参考适用于 Surge 1.2 最新版本(包含 Proxy Group、URL Rewrite->可根据需要在底部自己启用) | |
[General] | |
# warning, notify, info, verbose | |
loglevel = warning | |
# all-tcp-mode = false | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, e.crashlytics.com, apple.cn | |
bypass-tun = 0.0.0.0/8, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
# dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114, 8.8.8.8 | |
[Proxy] | |
🇯🇵JP = http,adc.com,443 | |
🇺🇸US = http,adc.com,443 | |
# 代理组,根据上面的 proxy 来定,可以不全写 | |
[Proxy Group] | |
Proxy = select,🇬SG,🇯🇵JP,🇺🇸US | |
[Rule] | |
# Accelerate most visited sites | |
# 加速经常访问的站点 | |
DOMAIN-SUFFIX,cn,DIRECT | |
DOMAIN-KEYWORD,ali,DIRECT | |
DOMAIN-KEYWORD,taobao,DIRECT | |
DOMAIN-KEYWORD,baidu,DIRECT | |
DOMAIN-KEYWORD,360,DIRECT | |
DOMAIN-SUFFIX,qq.com,DIRECT | |
DOMAIN-SUFFIX,jd.com,DIRECT | |
DOMAIN-SUFFIX,yhd.com,DIRECT | |
DOMAIN-SUFFIX,iqiyi.com,DIRECT | |
DOMAIN-SUFFIX,netease.com,DIRECT | |
DOMAIN-SUFFIX,sspai.com,DIRECT | |
DOMAIN-SUFFIX,tmall.com,DIRECT | |
DOMAIN-SUFFIX,tudou.com,DIRECT | |
DOMAIN-SUFFIX,weibo.com,DIRECT | |
DOMAIN-SUFFIX,youku.com,DIRECT | |
DOMAIN-SUFFIX,xunlei.com,DIRECT | |
DOMAIN-SUFFIX,zhihu.com,DIRECT | |
DOMAIN-SUFFIX,cnbeta.com,DIRECT | |
DOMAIN-SUFFIX,douban.com,DIRECT | |
DOMAIN-SUFFIX,ifeng.com,DIRECT | |
DOMAIN-SUFFIX,163.com,DIRECT | |
DOMAIN-SUFFIX,126.net,DIRECT | |
DOMAIN-SUFFIX,sogou.com,DIRECT | |
DOMAIN-SUFFIX,sohu.com,DIRECT | |
DOMAIN-SUFFIX,soso.com,DIRECT | |
DOMAIN-SUFFIX,gtimg.com,DIRECT | |
DOMAIN-SUFFIX,lcdn-registration.apple.com,DIRECT | |
DOMAIN-SUFFIX,ls.apple.com,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-SUFFIX,youmi.net,REJECT | |
DOMAIN-SUFFIX,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 | |
// AD Block | |
DOMAIN-KEYWORD,2345,REJECT | |
DOMAIN-KEYWORD,hao123,REJECT | |
DOMAIN-KEYWORD,adsmogo,REJECT | |
DOMAIN-SUFFIX,acs86.com,REJECT | |
DOMAIN-SUFFIX,adcome.cn,REJECT | |
DOMAIN-SUFFIX,adinfuse.com,REJECT | |
DOMAIN-SUFFIX,admaster.com.cn,REJECT | |
DOMAIN-SUFFIX,adsage.cn,REJECT | |
DOMAIN-SUFFIX,adsage.com,REJECT | |
DOMAIN-SUFFIX,adsmogo.org,REJECT | |
DOMAIN-SUFFIX,ads.mobclix.com,REJECT | |
DOMAIN-SUFFIX,adview.cn,REJECT | |
DOMAIN-SUFFIX,adwhirl.com,REJECT | |
DOMAIN-SUFFIX,adwo.com,REJECT | |
DOMAIN-SUFFIX,appads.com,REJECT | |
DOMAIN-SUFFIX,domob.cn,REJECT | |
DOMAIN-SUFFIX,domob.org,REJECT | |
DOMAIN-SUFFIX,duomeng.cn,REJECT | |
DOMAIN-SUFFIX,duomeng.net,REJECT | |
DOMAIN-SUFFIX,duomeng.org,REJECT | |
DOMAIN-SUFFIX,googeadsserving.cn,REJECT | |
DOMAIN-SUFFIX,immob.cn,REJECT | |
DOMAIN-SUFFIX,inmobi.com,REJECT | |
DOMAIN-SUFFIX,mobads.baidu.com,REJECT | |
DOMAIN-SUFFIX,mobads-logs.baidu.com,REJECT | |
DOMAIN-SUFFIX,smartadserver.com,REJECT | |
DOMAIN-SUFFIX,tapjoyads.com,REJECT | |
DOMAIN-SUFFIX,umeng.com,REJECT | |
DOMAIN-SUFFIX,umtrack.com,REJECT | |
DOMAIN-SUFFIX,uyunad.com,REJECT | |
# prevent sniffer from a public WiFi | |
DOMAIN,init.icloud-analysis.com,REJECT | |
# Streaming services, comment out if you don't need | |
# 流媒体服务 如果你不需呀 注释掉 | |
# DOMAIN-KEYWORD,sohu,DIRECT | |
# DOMAIN-KEYWORD,qiyi,DIRECT | |
# Ads in Video apps | |
DOMAIN-SUFFIX,actives.youku.com,REJECT | |
DOMAIN-SUFFIX,ad.api.3g.tudou.com,REJECT | |
DOMAIN-SUFFIX,ad.api.3g.youku.com,REJECT | |
DOMAIN-SUFFIX,ad.m.iqiyi.com,REJECT | |
DOMAIN-SUFFIX,adcontrol.tudou.com,REJECT | |
DOMAIN-SUFFIX,adplay.tudou.com,REJECT | |
DOMAIN-SUFFIX,afp.qiyi.com,REJECT | |
DOMAIN-SUFFIX,agn.aty.sohu.com,REJECT | |
DOMAIN-SUFFIX,ark.letv.com,REJECT | |
DOMAIN-SUFFIX,asimgs.pplive.cn,REJECT | |
DOMAIN-SUFFIX,atanx.alicdn.com,REJECT | |
DOMAIN-SUFFIX,atm.youku.com,REJECT | |
DOMAIN-SUFFIX,c.yes.youku.com,REJECT | |
DOMAIN-SUFFIX,cc.xtgreat.com,REJECT | |
DOMAIN-SUFFIX,cm.zhiziyun.com,REJECT | |
DOMAIN-SUFFIX,cupid.iqiyi.com,REJECT | |
DOMAIN-SUFFIX,cupid.qiyi.com,REJECT | |
DOMAIN-SUFFIX,d.dsp.imageter.com,REJECT | |
DOMAIN-SUFFIX,dc.letv.com,REJECT | |
DOMAIN-SUFFIX,de.as.pptv.com,REJECT | |
DOMAIN-SUFFIX,g.uusee.com,REJECT | |
DOMAIN-SUFFIX,gug.ku6cdn.com,REJECT | |
DOMAIN-SUFFIX,ifacelog.iqiyi.com,REJECT | |
DOMAIN-SUFFIX,iwstat.tudou.com,REJECT | |
DOMAIN-SUFFIX,kwflvcdn.000dn.com,REJECT | |
DOMAIN-SUFFIX,lives.l.qq.com,REJECT | |
DOMAIN-SUFFIX,logger.baofeng.com,REJECT | |
DOMAIN-SUFFIX,logstat.t.sfht.com,REJECT | |
DOMAIN-SUFFIX,lstat.youku.com,REJECT | |
DOMAIN-SUFFIX,lvip.youku.com,REJECT | |
DOMAIN-SUFFIX,m.aty.sohu.com,REJECT | |
DOMAIN-SUFFIX,msg.71.am,REJECT | |
DOMAIN-SUFFIX,match.rtbidder.net,REJECT | |
DOMAIN-SUFFIX,n-st.vip.com,REJECT | |
DOMAIN-SUFFIX,n.mark.letv.com,REJECT | |
DOMAIN-SUFFIX,nstat.tudou.com,REJECT | |
DOMAIN-SUFFIX,p-log.ykimg.com,REJECT | |
DOMAIN-SUFFIX,p.l.qq.com,REJECT | |
DOMAIN-SUFFIX,p.l.ykimg.com,REJECT | |
DOMAIN-SUFFIX,p.l.youku.com,REJECT | |
DOMAIN-SUFFIX,pics.taobaocdn.com,REJECT | |
DOMAIN-SUFFIX,pop.uusee.com,REJECT | |
DOMAIN-SUFFIX,pq.stat.ku6.com,REJECT | |
DOMAIN-SUFFIX,pv.sohu.com,REJECT | |
DOMAIN-SUFFIX,r.l.youku.com,REJECT | |
DOMAIN-SUFFIX,rcd.iqiyi.com,REJECT | |
DOMAIN-SUFFIX,rtb.behe.com,REJECT | |
DOMAIN-SUFFIX,show.re.taobao.com,REJECT | |
DOMAIN-SUFFIX,shrek.6.cn,REJECT | |
DOMAIN-SUFFIX,simba.6.cn,REJECT | |
DOMAIN-SUFFIX,st.vq.ku6.cn,REJECT | |
DOMAIN-SUFFIX,stat.tudou.com,REJECT | |
DOMAIN-SUFFIX,stat.youku.com,REJECT | |
DOMAIN-SUFFIX,static.g.ppstream.com,REJECT | |
DOMAIN-SUFFIX,static.ku6.com,REJECT | |
DOMAIN-SUFFIX,static.lstat.youku.com,REJECT | |
DOMAIN-SUFFIX,stats.tudou.com,REJECT | |
DOMAIN-SUFFIX,strip.taobaocdn.com,REJECT | |
DOMAIN-SUFFIX,stuff.cdn.biddingx.com,REJECT | |
DOMAIN-SUFFIX,t.cr-nielsen.com,REJECT | |
DOMAIN-SUFFIX,tns.simba.taobao.com,REJECT | |
DOMAIN-SUFFIX,traffic.uusee.com,REJECT | |
DOMAIN-SUFFIX,union.6.cn,REJECT | |
IP-CIDR,123.125.117.0/22,REJECT,no-resolve | |
# Force some domains which are fucked by GFW while resolving DNS, or don't respect the system proxy | |
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-KEYWORD,instagram,Proxy,force-remote-dns | |
DOMAIN-KEYWORD,gmail,Proxy,force-remote-dns | |
DOMAIN-SUFFIX,t.co,Proxy,force-remote-dns | |
DOMAIN-SUFFIX,twimg.com,Proxy,force-remote-dns | |
// Blocked sites | |
DOMAIN-SUFFIX,apple.com,Proxy | |
DOMAIN-SUFFIX,aaplimg.com,Proxy | |
DOMAIN-SUFFIX,icloud.com,Proxy | |
DOMAIN-SUFFIX,mzstatic.com,Proxy | |
DOMAIN-SUFFIX,me.com,Proxy | |
DOMAIN-KEYWORD,aka,Proxy | |
DOMAIN-KEYWORD,blogspot,Proxy | |
DOMAIN-SUFFIX,amazonaws.com,Proxy | |
DOMAIN-SUFFIX,android.com,Proxy | |
DOMAIN-SUFFIX,angularjs.org,Proxy | |
DOMAIN-SUFFIX,appspot.com,Proxy | |
DOMAIN-SUFFIX,akamaihd.net,Proxy | |
DOMAIN-SUFFIX,amazon.com,Proxy | |
DOMAIN-SUFFIX,t66y.com,Proxy | |
DOMAIN-SUFFIX,bit.ly,Proxy | |
DOMAIN-SUFFIX,bitbucket.org,Proxy | |
DOMAIN-SUFFIX,blog.com,Proxy | |
DOMAIN-SUFFIX,blogcdn.com,Proxy | |
DOMAIN-SUFFIX,blogger.com,Proxy | |
DOMAIN-SUFFIX,blogsmithmedia.com,Proxy | |
DOMAIN-SUFFIX,box.com,Proxy | |
DOMAIN-SUFFIX,box.net,Proxy | |
DOMAIN-SUFFIX,bloomberg.com,Proxy | |
DOMAIN-SUFFIX,chromium.org,Proxy | |
DOMAIN-SUFFIX,cl.ly,Proxy | |
DOMAIN-SUFFIX,cloudfront.net,Proxy | |
DOMAIN-SUFFIX,cloudflare.com,Proxy | |
DOMAIN-SUFFIX,cocoapods.org,Proxy | |
DOMAIN-SUFFIX,comodoca.com,Proxy | |
DOMAIN-SUFFIX,crashlytics.com,Proxy | |
DOMAIN-SUFFIX,d.pr,Proxy | |
DOMAIN-SUFFIX,danilo.to,Proxy | |
DOMAIN-SUFFIX,dayone.me,Proxy | |
DOMAIN-SUFFIX,dribbble.com,Proxy | |
DOMAIN-SUFFIX,dropbox.com,Proxy | |
DOMAIN-SUFFIX,dropboxstatic.com,Proxy | |
DOMAIN-SUFFIX,dropboxusercontent.com,Proxy | |
DOMAIN-SUFFIX,droplr.com,Proxy | |
DOMAIN-SUFFIX,docker.com,Proxy | |
DOMAIN-SUFFIX,duckduckgo.com,Proxy | |
DOMAIN-SUFFIX,digicert.com,Proxy | |
DOMAIN-SUFFIX,dnsimple.com,Proxy | |
DOMAIN-SUFFIX,dueapp.com,Proxy | |
DOMAIN-SUFFIX,edgecastcdn.net,Proxy | |
DOMAIN-SUFFIX,engadget.com,Proxy | |
DOMAIN-SUFFIX,eurekavpt.com,Proxy | |
DOMAIN-SUFFIX,evernote.com,Proxy | |
DOMAIN-SUFFIX,fb.me,Proxy | |
DOMAIN-SUFFIX,fbcdn.net,Proxy | |
DOMAIN-SUFFIX,fc2.com,Proxy | |
DOMAIN-SUFFIX,feedburner.com,Proxy | |
DOMAIN-SUFFIX,fabric.io,Proxy | |
DOMAIN-SUFFIX,flickr.com,Proxy | |
DOMAIN-SUFFIX,fastly.net,Proxy | |
DOMAIN-SUFFIX,g.co,Proxy | |
DOMAIN-SUFFIX,ggpht.com,Proxy | |
DOMAIN-SUFFIX,github.com,Proxy | |
DOMAIN-SUFFIX,github.io,Proxy | |
DOMAIN-SUFFIX,githubapp.com,Proxy | |
DOMAIN-SUFFIX,githubusercontent.com,Proxy | |
DOMAIN-SUFFIX,golang.org,Proxy | |
DOMAIN-SUFFIX,goo.gl,Proxy | |
DOMAIN-SUFFIX,gstatic.com,Proxy | |
DOMAIN-SUFFIX,godaddy.com,Proxy | |
DOMAIN-SUFFIX,gravatar.com,Proxy | |
DOMAIN-SUFFIX,itunes.com,Proxy | |
DOMAIN-SUFFIX,imageshack.us,Proxy | |
DOMAIN-SUFFIX,img.ly,Proxy | |
DOMAIN-SUFFIX,imgur.com,Proxy | |
DOMAIN-SUFFIX,imore.com,Proxy | |
DOMAIN-SUFFIX,instapaper.com,Proxy | |
DOMAIN-SUFFIX,jshint.com,Proxy | |
DOMAIN-SUFFIX,ift.tt,Proxy | |
DOMAIN-SUFFIX,ifttt.com,Proxy | |
DOMAIN-SUFFIX,j.mp,Proxy | |
DOMAIN-SUFFIX,kat.cr,Proxy | |
DOMAIN-SUFFIX,linode.com,Proxy | |
DOMAIN-SUFFIX,linkedin.com,Proxy | |
DOMAIN-SUFFIX,licdn.com,Proxy | |
DOMAIN-SUFFIX,lithium.com,Proxy | |
DOMAIN-SUFFIX,megaupload.com,Proxy | |
DOMAIN-SUFFIX,mobile01.com,Proxy | |
DOMAIN-SUFFIX,modmyi.com,Proxy | |
DOMAIN-SUFFIX,nytimes.com,Proxy | |
DOMAIN-SUFFIX,name.com,Proxy | |
DOMAIN-SUFFIX,openvpn.net,Proxy | |
DOMAIN-SUFFIX,openwrt.org,Proxy | |
DOMAIN-SUFFIX,ow.ly,Proxy | |
DOMAIN-SUFFIX,pinboard.in,Proxy | |
DOMAIN-SUFFIX,ssl-images-amazon.com,Proxy | |
DOMAIN-SUFFIX,sstatic.net,Proxy | |
DOMAIN-SUFFIX,stackoverflow.com,Proxy | |
DOMAIN-SUFFIX,staticflickr.com,Proxy | |
DOMAIN-SUFFIX,squarespace.com,Proxy | |
DOMAIN-SUFFIX,symcd.com,Proxy | |
DOMAIN-SUFFIX,symcb.com,Proxy | |
DOMAIN-SUFFIX,symauth.com,Proxy | |
DOMAIN-SUFFIX,ubnt.com,Proxy | |
DOMAIN-SUFFIX,t.co,Proxy | |
DOMAIN-SUFFIX,thepiratebay.org,Proxy | |
DOMAIN-SUFFIX,tumblr.com,Proxy | |
DOMAIN-SUFFIX,twimg.com,Proxy | |
DOMAIN-SUFFIX,twitch.tv,Proxy | |
DOMAIN-SUFFIX,twitter.com,Proxy | |
DOMAIN-SUFFIX,wikipedia.com,Proxy | |
DOMAIN-SUFFIX,wikipedia.org,Proxy | |
DOMAIN-SUFFIX,wikimedia.org,Proxy | |
DOMAIN-SUFFIX,wordpress.com,Proxy | |
DOMAIN-SUFFIX,wsj.com,Proxy | |
DOMAIN-SUFFIX,wsj.net,Proxy | |
DOMAIN-SUFFIX,wp.com,Proxy | |
DOMAIN-SUFFIX,vimeo.com,Proxy | |
DOMAIN-SUFFIX,youtu.be,Proxy | |
DOMAIN-SUFFIX,ytimg.com,Proxy | |
# Workaround for some apps | |
# 一些应用程序的解决办法 | |
# 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 | |
[URL Rewrite] | |
# URL 替换 | |
^http://www.google.cn http://www.google.com.hk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment