想要过滤广告,可以使用privoxy作为http以及https的代理。
下载->安装->配置请参考这个链接。
https://blog.csdn.net/Lazybones_3/article/details/85091550
使用代理:

然后就可以在终端启动privoxy,
sudo /usr/local/sbin/privoxy /usr/local/etc/privoxy/config
注意:关机后这个进程会被杀掉,所以下一次开机也要执行启动命令才能上网。
如果privoxy在工作,当访问一些网址比如https://www.google.com.hk, 就会看到:

如果你有科学上网工具,比如cisco AnyConnect。 那么privoxy是会阻拦的。在连接时会遇到以下错误:

那么需要打开网络偏好设置->高级-->代理,取消http和https使用privoxy作为代理,好,应用,这个时候再使用AnyConnect 来连接,就不好报这个错误了。


尽情Google吧。

这里附上anyconnect 4.8的安装包(for Mac)
2020年05年18日更新:
4.8版本 链接: https://pan.baidu.com/s/1ZFPtja6C8ex22t8hv_IsBQ 提取码: aaww
网友评论