go-adblock

码农软件 · 软件分类 · 常用工具包 · 2019-08-15 22:28:35

软件介绍

AdBlockPlus parser,匹配和透明的HTTP/ HTTPS代理

abpcheck:一个命令行实用程序验证AdBlockPlus规则,运行:
$ abpcheck easylist.txt
打印不能由 adblock package 进行解析的任何规则。

adblock:实现解析器和匹配的AdBlockPlus规则。

adstop:广告拦截透明的HTTP/ HTTPS代理。

它被设计为低功耗,低内存的ARM设备上运行,和服务几个客户,大多是老的智能手机不能运行广告拦截器本身。

使用前,必须配置您的设备和网络,使之作为一个透明代理访问。实现这一目标的方法之一是安装在服务器端VPN,而且所有HTTP/ HTTPS流量重定向到与路由规则的代理。然后,让通过VPN客户端浏览。

HTTPS过滤要求代理拦截设备流量和解密。为实现这一点,你必须生成一个证书,并将其添加到您的设备。

您还需要生成一个证书

$ adstop -http localhost:1080 \
	-https localhost:1081     \
	-cache .adstop			  \
	-max-age 24h			  \
	-ca-cert /path/to/ca.cert \
	-ca-key /path/to/ca.key   \ https://easylist-downloads.adblockplus.org/easylist.txt \
	some_local_list.txt

启动代理并使它监听HTTP端口1080,HTTPS端口1081,获取并从easylist和本地文件,缓存easylist在.adstop/目录下加载规则和每24小时刷新规则。

安装:

cd =/opt

git clone https://github.com/pmezard/adblock

export GOPATH=/opt/adblock/adstop

cd $GOPATH

go get

go build

目录下已经生成adstop应用程序

关于生成abpcheck步骤不再说明,参考上面的步骤,并重新更改GOPATH。

本文地址:https://codercto.com/soft/d/12454.html

The Dream Machine

The Dream Machine

M. Mitchell Waldrop / Penguin Books / 2002-8 / USD 16.00

While most people may not be familiar with the name J. C. R. Licklider, he was the guiding spirit behind the greatest revolution of the modern era. At a time when most computers were big, ponderous ma......一起来看看 《The Dream Machine》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具