zhiyi7 / gfw-pac Goto Github PK
View Code? Open in Web Editor NEW科学上网。通过 gfwlist 和** IP 地址生成 PAC(Proxy auto-config) 文件。对存在于 gfwlist 的域名和解析出的 IP 在国外的域名使用代理。
License: Other
科学上网。通过 gfwlist 和** IP 地址生成 PAC(Proxy auto-config) 文件。对存在于 gfwlist 的域名和解析出的 IP 在国外的域名使用代理。
License: Other
felixonmars/dnsmasq-china-list#345
badafans/better-cloudflare-ip#56
这里过来的讨论。
一直是在手动作这事儿,效果很好
可否增加广告部分域名,用于广告屏蔽。
if args.direct_rule:
directrule_parts = urlparse.urlsplit(args.direct_rule)
if not directrule_parts.scheme or not directrule_parts.netloc:
# It's not an URL, deal it as local file
with open(args.direct_rule, 'rb') as f:
direct_rule = f.read()
else:
# Yeah, it's an URL, try to download it
print 'Downloading user rules file from %s' % args.user_rule
direct_rule = urllib2.urlopen(args.direct_rule, timeout=10).read()
direct_rule = direct_rule.splitlines(False)
A small mistake which causes a error if direct_rule doesn't exist.
May change to this:
if args.direct_rule:
directrule_parts = urlparse.urlsplit(args.direct_rule)
if not directrule_parts.scheme or not directrule_parts.netloc:
# It's not an URL, deal it as local file
with open(args.direct_rule, 'rb') as f:
direct_rule = f.read()
else:
# Yeah, it's an URL, try to download it
print 'Downloading user rules file from %s' % args.user_rule
direct_rule = urllib2.urlopen(args.direct_rule, timeout=10).read()
direct_rule = direct_rule.splitlines(False)
else:
direct_rule = []
||googleapis.com
@@||clientservices.googleapis.com
@@||fonts.googleapis.com
@@||khm.googleapis.com
@@||khm0.googleapis.com
@@||khm1.googleapis.com
@@||khm2.googleapis.com
@@||khm3.googleapis.com
@@||khmdb.googleapis.com
||storage.googleapis.com
@@||translate.googleapis.com
@@||update.googleapis.com
@@||safebrowsing.googleapis.com
例如如上规则实际是有意义的,部分三级域名 wall 内可用,但经过 gfw-pac 处理后,只剩一个 "googleapis.com": 1,
想针对不同的域名使用不同的代理是否有办法实现呢
我想把gfw名单放在我的vps里面,让别人使用我的ip时,无法访问被gfw墙的域名,因为我的ip只用来代理电商,大佬指点一下怎么做到跟操作的
Traceback (most recent call last):
File "gfw-pac.py", line 289, in
main()
File "gfw-pac.py", line 273, in main
direct_rule = direct_rule.splitlines(False)
AttributeError: 'NoneType' object has no attribute 'splitlines'
环境:osx10.11.4 Python 2.7.10
利用v2rayN客户端,手动指定了pac文件位置,但是好像没起什么作用?
能说下具体如何配置么?
从VPN梯子机场评测来说,我们更倾向于老牌高端的机场推荐。毕竟机场节点的科学上网服务就像购买其它任何商品一样,一分钱一分货,但对于学生党或偶尔需要翻墙的用户来说,希望可以花费较少的金钱就可以科学上网,因此我们特别整理了稳定便宜的机场推荐和部分可试用免费梯子分享来满足小伙伴的需求。
我们对以下推荐的机场梯子进行测速,保证机场线路稳定可靠,且满足高性价比低价因素外,我们尽可能推荐成立时间较长翻墙机场,以最大限度地降低机场跑路的风险。以下机场梯子推荐适用于多个平台上的Clash for Windows、Clash for Android、ClashX、Surfboard、Shadowrocket、V2rayN、Surge、Quantumult X、Stash、Loon、sing-box等翻墙插件。这些梯子软件可以直接导入并使用,适合已经掌握一些基础翻墙知识的用户。
很多机场给新注册用户赠送一定流量,限时体验,用户用起来体验好的可以续费,喜欢撸羊毛用户可以多注册一些机场免费使用,觉得用起来比较好用的适合自己当前网络的再进行续费使用:
使用免费翻墙VPN、免费机场节点、免费梯子加速器时要谨慎,大多数免费的科学上网软件存在隐患,使用者将面临网络数据泄漏等隐私安全风险,很多垃圾机场利用人们贪图便宜的心理收集个人信息进行倒卖获利,甚至截取账号密码盗取资产。即使是少数公益节点,也会在存在网络不稳定流量不足断线卡顿的问题。
所以为了隐私安全与稳定性,建议还是选择几款稳定靠谱的机场梯子 。
免责声明: 本文所介绍的机场梯子VPN请只限用于正常外贸商务、新媒体、游戏娱乐、学习交流,切勿用在违法犯罪用途,用户请自觉遵守当地法律法规,出现一切后果本项目作者概不负责。
#2024梯子推荐 #翻墙机场 #翻墙机场推荐 #SS/DDR/机场 机场加速器购买 #V2ray机场梯子 #Trojan机场 #Clash节点VPN #好用的便宜梯子 #翻墙梯子 #高性价比梯子 #稳定梯子推荐 #手机电脑梯子 #外网梯子
轻量应用-多快好省
中度应用-流量充沛
重度应用-高速稳定
顶级应用-尊享丝滑
var proxy = "SOCKS5 127.0.0.1:7080";
我写成上面那样会报错
但直接设置socks5代理并没有问题
浏览器是最新的firefox
谢谢~~
比如,该如何让telegram的ip段使用代理呢?
谢谢🙏!
Telegram IP段
91.108.4.0/22
91.108.8.0/22
91.108.12.0/22
91.108.20.0/22
91.108.36.0/23
91.108.38.0/23
91.108.56.0/22
149.154.160.0/20
149.154.164.0/22
149.154.172.0/22
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.