clion007 / adss Goto Github PK
View Code? Open in Web Editor NEW全自动dnsmasq防DNS劫持及全面广告屏蔽脚本(ADSS),重新启用,项目更名为ADSS,进行重大调整升级后镜像至gitcode和gitee,方便国内用户使用。
Home Page: https://clion007.github.io/adss/
License: GNU General Public License v3.0
全自动dnsmasq防DNS劫持及全面广告屏蔽脚本(ADSS),重新启用,项目更名为ADSS,进行重大调整升级后镜像至gitcode和gitee,方便国内用户使用。
Home Page: https://clion007.github.io/adss/
License: GNU General Public License v3.0
发现用户白名单以及系统自带的白名单不生效。
我测试了下deletWhiteListRules.sh是正常的。
但问题是:
while read -r line
do
if [ -s "/tmp/dnsrules.conf" ]; then
sed -i "/$line/d" /tmp/dnsrules.conf
elif [ -s "/tmp/hostsrules.conf" ]; then
sed -i "/$line/d" /tmp/hostsrules.conf
fi
done < /tmp/whitelist
检测/tmp下的这两个文件其实是不存在的,前面的getDnsmasqAdRules.sh,getHostsAdRules.sh生成的文件叫dnsAd&hostsAd。所以这个脚本实际上执行后没有效果。
另外,即便执行有效,在主程序中
mv /tmp/dnsrules.conf /etc/dnsmasq.d/dnsrules.conf
mv /tmp/hostsrules.conf /etc/dnsmasq/hostsrules.conf
sort /tmp/dnsAd | uniq >> /etc/dnsmasq.d/dnsrules.conf
sort /tmp/hostsAd | uniq >> /etc/dnsmasq/hostsrules.conf
也会把被去掉的部分又覆盖进来。
我觉得应该是把几个脚本文件名统一一下。统一成dnsAd&hostsAd
然后删掉主程序里面的mv命令。
也就是执行白名单后,去重,覆盖。
dnsmasq是支持通配符的
比如设置特殊域名走特定的dns服务器
echo "server=/google.com/8.8.8.8" >> /etc/dnsmasq.d/server.conf
所有*.google.com的解析全部转发到8.8.8.8这个DNS服务器来进行解析
然后让8.8.8.8自动走ss通道
这样我们只需要维护这个server.conf的列表就行了
这个列表应该没有多大
我刚刚看了下你总结的那个表,800多KB,太大了,里面全部是address,应该适当的合理使用上面我说的功能
而且单纯的dnsmasq是没什么用的(就算你现在host正确,但是只要你一访问,就被GFW知道了),必须要配合ss或者其他vpn工具
看了下脚本,下载的一些ad host之类的规则误杀好严重,很多都是把一些非ad域名直接给干掉了,有一个直接把meizu.com这个域名全干掉了
那一些看起来不像是单纯的去广告,更像是不喜欢哪个产品就直接把他干掉,太偏激了。
如果是完全是写出来仅供个人使用的话还没啥,但是这个明显不是
希望可以尽量舍弃那些个人倾向非常严重的ad规则
请问迁移到coding后不开源了?怎么查看源代码
墙现在这么厉害,通过这个还能翻墙吗
请问,同时使用您这个和SSR,是先用您的规则还是SSR
用的ad.sh
广告屏蔽没看出效果
路由器内存倒是猛降
移动宽带把53端口劫持了,好像不好使
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.