adhole 介绍
AdHole 是一个简单透明的广告拦截器跟踪,主要是提供给个人使用。
It works by providing two elements: first a DNS server that, based on a list
of domains, either relies the query to a real server, or returns its own IP
address; and a micro HTTP server that serves an empty GIF image for any
request. As such its functionality is akin to
AdBlock,
but less pretty (you’ll probably see empty space where ads used to be) and
completely transparent (i.e. will work for any browser, on any OS on any
machine, locally or over any network). Note that you can just as well block
any domains.
I use AdHole in ‘production’ on my
RaspberryPi-powered WiFi router, where it
provides ad and tracking blocking to all my wireless toys.
My programming goal was to make it as simple and minimal as possible.
Therefore instead of a full DNS stack (and especially parsing) I work directly
on []byte slices and try to reuse the data already on hand. It was also a
nice little adventure in dealing with binary protocols the low-level way.
使用方法:
Usage: ./adhole [options] key upstream proxy list.txt key - password used for /debug actions protection upstream - real upstream DNS address, e.g. 8.8.8.8 proxy - servers' bind address, e.g. 127.0.0.1 list.txt - text file with domains to block -dport=53: DNS server port -hport=80: HTTP server port -t=5s: upstream query timeout -v=false: be verbose
adhole 官网
https://github.com/drbig/adhole
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。