On Tuesday 18 February 2003 08.46, Robert Collins wrote:
> On Tue, 2003-02-18 at 11:00, Chris Monson wrote:
> > Is there an easy way to configure squid to filter reply content
> > through an external program?  I'm interested in doing analysis on
> > the content that squid returns to the client.
> >
> > I have been poking around a lot in the source and it does not
> > appear to be possible given the current state of things.  Given
> > that, does anyone know the best place to put my own hook into the
> > source to catch the content as it goes by?  The clientProcessMiss
> > function looks promising, but I figured I would ask before
> > delving any deeper into things.
>
> I'd suggest you work with squid-3, it's got an interface for
> hooking into the client side - clientStreams.
>
> Also, the "send" routines are probably the closest fit for your
> needs, in squid 2.5 and below.


I'd recommend to also look into the Squid ICAP client project as a 
generic method of plugging in external content inspection and 
filtering to Squid. For more information see 
http://devel.squid-cache.org/ and the ICAP links from there.

Regards
Henrik

Reply via email to