Another Filtering Proxy

Privoxy, Bfilter, AdBlock ...
只要不是 Proxomitron ,这里都可以讨论

Moderator: phoenix

Post Reply
User avatar
phoenix
Site Admin
Posts: 526
Joined: Dec 29 2007, 16:27

Another Filtering Proxy

Post by phoenix »

AFProxy 是什么

AFProxy 是框架和规则的集合。

框架

框架提供必要的工具(待完善),并在每个 HTTP 会话周期的不同阶段执行用户定义的规则。

反映到应用层面,目前它可以执行如下动作:

- URL 过滤
- HTTP HEADER 过滤
- WEB PAGE 过滤

规则

AFProxy 类似于 Firefox 的扩展系统,它提供基础工具(待完善)和接口,但由规则实现具体的功能。

目前版本的缺省规则只提供了最基本的过滤功能,用于展示其如何运作。

规则由 Python 语句实现。规则可以有自己的配置文件和用户语法。

源代码中的 ListFile.py 中的 parse_line_to_regex() 函数展示了如何解析 Privoxy 风格的 URL pattern。规则开发者愿意的话,也可以实现 ADP 或 BFilter 规则的解析,或者发展自己的语法。

规则所能实现的功能仅受制于 Python 语言本身的限制。

开发者

开发规则需要了解一些基本的 Python 知识。很显然,AFProxy 作者一人之力无法实现众多规则以满足所有用户的需求。功能的完善需要其他开发者的贡献和时间的积累。

用户

用户需要在规则制定的规范里行事。在抱怨之前,请先检查用户条目是否符合规则的规范。当然,在目前文档基本为零的情况下,你可以向规则开发者提问以寻求帮助。

更新历史

Code: Select all

AFProxy -- Another Filtering Proxy
==================================

Version 0.4 (20141221)
--------------
* List files not bundled and inited in URLFilter.py any more, now globle available to other filters
+ Unfiltered content is streamed to client, while not cached before sending
* Fix config auto reload
* Fix Privoxy parse (replace '.*' in the host regex with '[^/]*' so it won't match the path string)

Version 0.3 (20141205)
--------------
+ URLFilter.py now supports multiple list files for each filter
+ Parse Privoxy actions files (default.action, user.action) for URL blocking
* List files moved to <Lists> directory

Version 0.2 (20141129)
--------------
+ Privoxy style URL patterns for block, bypass and filters URL matching
+ Basic header filtering: HeaderFilter.py
+ Basic web page filtering: PageFilter.py
+ Config auto reload

Version 0.1 (20141122)
--------------
Initial release

+ URL blocking
+ URL redirecting
+ Filtering bypass
+ Regex support for above actions
免责声明

- 本软件不收费,不强制安装,本人不对使用该软件造成的任何情绪失控负责。
- 本软件尚处于早期开发阶段,请勿给予过高期待。
- 本软件为个人软件,软件功能的增加删除,视个人喜好而定,受个人能力限制。
- 本软件开放源代码,本软件随时可能夭折,本软件不提供任何保证。

- 本人不喜欢写文档,但欢迎任何人的帮助和贡献。
- 本人愿意回答使用软件过程中的合理问题,但鉴于个人精力有限及心情好坏,也许不能一一作答,请体谅。

EXE下载
http://proxfilter.net/afproxy/AFProxy%200.4.zip
Attachments
AFProxy_py 0.4.zip
python 源代码
(218.23 KiB) Downloaded 682 times
Post Reply