开发者

How to use squid proxy server to modify html page before sending to client

开发者 https://www.devze.com 2023-02-28 18:58 出处:网络
I am looking to setup a proxy server and I want to ru开发者_运维知识库n some python script(or any other language) to filter out some content on the html pages, the client requests through proxy server

I am looking to setup a proxy server and I want to ru开发者_运维知识库n some python script(or any other language) to filter out some content on the html pages, the client requests through proxy server.

Is there a way to do that?

Thanks


Take a look at ICAP and ECAP: http://wiki.squid-cache.org/Features/ICAP and http://wiki.squid-cache.org/Features/eCAP. They accomplish the same goal - ICAP is via an external helper daemon (which you'd need to code on your own) and ECAP uses plugins.


It is not the task of Squid to modify your HTML.

Use something like

http://httpd.apache.org/docs/2.2/mod/mod_ext_filter.html

0

精彩评论

暂无评论...
验证码 换一张
取 消