ini surge.conf

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini surge.conf相关的知识,希望对你有一定的参考价值。

[General]
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1
bypass-tun = 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
loglevel = notify

[Proxy]
BJ-All = custom
BJ-HK-Azure = custom
BJ-US-Azure = custom
BJ-JP-Azure = custom
BJ-SG-Azure = custom
JS-All = custom
JS-HK-Dedi = custom
JS-JP-Vultr = custom
JS-SG-Lease = custom

[Proxy Group]
Direct = select, DIRECT, BJ-All, JS-All
Default = select, BJ-HK-Azure, BJ-US-Azure, JS-HK-Dedi, JS-JP-Vultr, JS-SG-Lease
US = select, BJ-US-Azure
JP = select, BJ-JP-Azure, JS-JP-Vultr
Netflix = select, JS-HK-Dedi, JS-JP-Vultr, JS-SG-Lease

[Rule]
// iOS
DOMAIN-SUFFIX,lcdn-registration.apple.com,DIRECT
DOMAIN-SUFFIX,ls.apple.com,DIRECT

// AD Block
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,admob.com,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.com.cn,REJECT
DOMAIN-SUFFIX,domob.org,REJECT
DOMAIN-SUFFIX,doubleclick.net,REJECT
DOMAIN-SUFFIX,duomeng.cn,REJECT
DOMAIN-SUFFIX,duomeng.net,REJECT
DOMAIN-SUFFIX,duomeng.org,REJECT
DOMAIN-SUFFIX,googeadsserving.cn,REJECT
DOMAIN-SUFFIX,guomob.com,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,reachmax.cn,REJECT
DOMAIN-SUFFIX,smartadserver.com,REJECT
DOMAIN-SUFFIX,tapjoyads.com,REJECT
DOMAIN-SUFFIX,umeng.co,REJECT
DOMAIN-SUFFIX,umeng.com,REJECT
DOMAIN-SUFFIX,umtrack.com,REJECT
DOMAIN-SUFFIX,uyunad.com,REJECT
DOMAIN-SUFFIX,xiaozhen.com,REJECT
DOMAIN-SUFFIX,youmi.net,REJECT

DOMAIN,adse.ximalaya.com,REJECT

// All .cn sites
DOMAIN-SUFFIX,cn,Direct

// Top cn sites
DOMAIN-KEYWORD,360buy,Direct
DOMAIN-KEYWORD,alipay,Direct
DOMAIN-KEYWORD,baidu,Direct
DOMAIN-KEYWORD,taobao,Direct

DOMAIN-SUFFIX,126.net,Direct
DOMAIN-SUFFIX,163.com,Direct
DOMAIN-SUFFIX,alicdn.com,Direct
DOMAIN-SUFFIX,amap.com,Direct
DOMAIN-SUFFIX,bdimg.com,Direct
DOMAIN-SUFFIX,bdstatic.com,Direct
DOMAIN-SUFFIX,cnbeta.com,Direct
DOMAIN-SUFFIX,cnzz.com,Direct
DOMAIN-SUFFIX,douban.com,Direct
DOMAIN-SUFFIX,gtimg.com,Direct
DOMAIN-SUFFIX,hao123.com,Direct
DOMAIN-SUFFIX,haosou.com,Direct
DOMAIN-SUFFIX,ifeng.com,Direct
DOMAIN-SUFFIX,iqiyi.com,Direct
DOMAIN-SUFFIX,jd.com,Direct
DOMAIN-SUFFIX,netease.com,Direct
DOMAIN-SUFFIX,qhimg.com,Direct
DOMAIN-SUFFIX,qq.com,Direct
DOMAIN-SUFFIX,sogou.com,Direct
DOMAIN-SUFFIX,sohu.com,Direct
DOMAIN-SUFFIX,soso.com,Direct
DOMAIN-SUFFIX,suning.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

// Top blocked sites with tcp
DOMAIN-KEYWORD,facebook,Default,force-remote-dns
DOMAIN-KEYWORD,gmail,Default,force-remote-dns
DOMAIN-KEYWORD,google,Default,force-remote-dns
DOMAIN-KEYWORD,instagram,Default,force-remote-dns
DOMAIN-KEYWORD,twitter,Default,force-remote-dns
DOMAIN-KEYWORD,youtube,Default,force-remote-dns

DOMAIN-SUFFIX,appspot.com,Default,force-remote-dns
DOMAIN-SUFFIX,t.co,Default,force-remote-dns
DOMAIN-SUFFIX,twimg.com,Default,force-remote-dns

// Custom
DOMAIN-SUFFIX,itsliveradio.apple.com,US,force-remote-dns
DOMAIN-SUFFIX,cdn-apple.com,Default
DOMAIN-SUFFIX,dmm.co.jp,JP
DOMAIN-SUFFIX,icloud.com,Default
DOMAIN-SUFFIX,me.com,Default

DOMAIN,aod.itunes.apple.com,Direct
DOMAIN,osxapps.itunes.apple.com,Direct
DOMAIN,streamingaudio.itunes.apple.com,Direct

// Top blocked sites
DOMAIN-KEYWORD,blogspot,Default

DOMAIN-SUFFIX,apple.com,Default
DOMAIN-SUFFIX,amazonaws.com,Default
DOMAIN-SUFFIX,android.com,Default
DOMAIN-SUFFIX,angularjs.org,Default
DOMAIN-SUFFIX,akamaihd.net,Default
DOMAIN-SUFFIX,amazon.com,Default
DOMAIN-SUFFIX,bit.ly,Default
DOMAIN-SUFFIX,bitbucket.org,Default
DOMAIN-SUFFIX,blog.com,Default
DOMAIN-SUFFIX,blogcdn.com,Default
DOMAIN-SUFFIX,blogger.com,Default
DOMAIN-SUFFIX,blogsmithmedia.com,Default
DOMAIN-SUFFIX,box.net,Default
DOMAIN-SUFFIX,bloomberg.com,Default
DOMAIN-SUFFIX,chromium.org,Default
DOMAIN-SUFFIX,cl.ly,Default
DOMAIN-SUFFIX,cloudfront.net,Default
DOMAIN-SUFFIX,cloudflare.com,Default
DOMAIN-SUFFIX,cocoapods.org,Default
DOMAIN-SUFFIX,crashlytics.com,Default
DOMAIN-SUFFIX,dribbble.com,Default
DOMAIN-SUFFIX,dropbox.com,Default
DOMAIN-SUFFIX,dropboxstatic.com,Default
DOMAIN-SUFFIX,dropboxusercontent.com,Default
DOMAIN-SUFFIX,docker.com,Default
DOMAIN-SUFFIX,duckduckgo.com,Default
DOMAIN-SUFFIX,digicert.com,Default
DOMAIN-SUFFIX,dnsimple.com,Default
DOMAIN-SUFFIX,edgecastcdn.net,Default
DOMAIN-SUFFIX,engadget.com,Default
DOMAIN-SUFFIX,eurekavpt.com,Default
DOMAIN-SUFFIX,fb.me,Default
DOMAIN-SUFFIX,fbcdn.net,Default
DOMAIN-SUFFIX,fc2.com,Default
DOMAIN-SUFFIX,feedburner.com,Default
DOMAIN-SUFFIX,fabric.io,Default
DOMAIN-SUFFIX,flickr.com,Default
DOMAIN-SUFFIX,fastly.net,Default
DOMAIN-SUFFIX,ggpht.com,Default
DOMAIN-SUFFIX,github.com,Default
DOMAIN-SUFFIX,github.io,Default
DOMAIN-SUFFIX,githubusercontent.com,Default
DOMAIN-SUFFIX,golang.org,Default
DOMAIN-SUFFIX,goo.gl,Default
DOMAIN-SUFFIX,gstatic.com,Default
DOMAIN-SUFFIX,godaddy.com,Default
DOMAIN-SUFFIX,gravatar.com,Default
DOMAIN-SUFFIX,imageshack.us,Default
DOMAIN-SUFFIX,imgur.com,Default
DOMAIN-SUFFIX,jshint.com,Default
DOMAIN-SUFFIX,ift.tt,Default
DOMAIN-SUFFIX,itunes.com,Default
DOMAIN-SUFFIX,j.mp,Default
DOMAIN-SUFFIX,kat.cr,Default
DOMAIN-SUFFIX,linode.com,Default
DOMAIN-SUFFIX,linkedin.com,Default
DOMAIN-SUFFIX,licdn.com,Default
DOMAIN-SUFFIX,lithium.com,Default
DOMAIN-SUFFIX,megaupload.com,Default
DOMAIN-SUFFIX,mobile01.com,Default
DOMAIN-SUFFIX,modmyi.com,Default
DOMAIN-SUFFIX,mzstatic.com,Default
DOMAIN-SUFFIX,nytimes.com,Default
DOMAIN-SUFFIX,name.com,Default
DOMAIN-SUFFIX,openvpn.net,Default
DOMAIN-SUFFIX,openwrt.org,Default
DOMAIN-SUFFIX,ow.ly,Default
DOMAIN-SUFFIX,pinboard.in,Default
DOMAIN-SUFFIX,ssl-images-amazon.com,Default
DOMAIN-SUFFIX,sstatic.net,Default
DOMAIN-SUFFIX,stackoverflow.com,Default
DOMAIN-SUFFIX,staticflickr.com,Default
DOMAIN-SUFFIX,squarespace.com,Default
DOMAIN-SUFFIX,symcd.com,Default
DOMAIN-SUFFIX,symcb.com,Default
DOMAIN-SUFFIX,symauth.com,Default
DOMAIN-SUFFIX,ubnt.com,Default
DOMAIN-SUFFIX,thepiratebay.org,Default
DOMAIN-SUFFIX,tumblr.com,Default
DOMAIN-SUFFIX,twitch.tv,Default
DOMAIN-SUFFIX,wikipedia.com,Default
DOMAIN-SUFFIX,wikipedia.org,Default
DOMAIN-SUFFIX,wikimedia.org,Default
DOMAIN-SUFFIX,wordpress.com,Default
DOMAIN-SUFFIX,wsj.com,Default
DOMAIN-SUFFIX,wsj.net,Default
DOMAIN-SUFFIX,wp.com,Default
DOMAIN-SUFFIX,vimeo.com,Default
DOMAIN-SUFFIX,youtu.be,Default
DOMAIN-SUFFIX,ytimg.com,Default

DOMAIN-SUFFIX,netflix.com,Netflix
DOMAIN-SUFFIX,netflix.net,Netflix
DOMAIN-SUFFIX,nflxext.com,Netflix
DOMAIN-SUFFIX,nflximg.com,Netflix
DOMAIN-SUFFIX,nflximg.net,Netflix
DOMAIN-SUFFIX,nflxvideo.net,Netflix

// Telegram
IP-CIDR,91.108.4.0/22,Default,no-resolve
IP-CIDR,91.108.56.0/22,Default,no-resolve
IP-CIDR,109.239.140.0/24,Default,no-resolve
IP-CIDR,149.154.160.0/20,Default,no-resolve

// LAN
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

GEOIP,CN,Direct
FINAL,Default

centos下php.ini配置项

【中文标题】centos下php.ini配置项【英文标题】:php.ini configuration items under centos 【发布时间】:2012-04-16 19:22:31 【问题描述】:

配置文件路径:/etc/php.ini

/etc/php.d 下的其他 .ini 文件:curl.ini、fileinfo.ini、gd.ini、json.ini、mysql.ini、mysqli.ini、pdo.ini、 pdo_mysql.ini, pdo_sqlite.ini, phar.ini,sqlite3.ini,zip.ini

问题是我在 .ini 文件下找不到“post_max_size”、“disable_functions”等这些项目的配置位置,我应该自己将它们添加到 php.ini 中吗?

PS:windows或ubuntu下这些配置项好像在php.ini里,对吗?

【问题讨论】:

【参考方案1】:

你可以从 php functon ini_set 做

请看这个

http://php.net/manual/en/function.ini-set.php

【讨论】:

【参考方案2】:

核心配置放在php.ini文件中,扩展配置放在php.d文件夹中。

【讨论】:

也就是说,我应该自己将它们添加到php.ini文件中? 我可以再评论一下这个答案吗?

以上是关于ini surge.conf的主要内容,如果未能解决你的问题,请参考以下文章

ini surge.conf

ini surge.conf

php如何修改ini文件

centos下php.ini配置项

在Delphi下,怎样在DLL里读取ini文件的内容

vb读写ini文件