It is not a thing I have done using Squid or any other standard product.
For prototyping of the HTML rewrites I would recommend writing a CGI
program, and have a apache server Apache configured to send all requests
to this CGI program.
For production, either write a small proxy for the purpose, or modify a
existing proxy. If you want to modify Squid then you should be doing
this in Squid-3 as the internals have been reworked a lot to make
content modifications possible there, but for a completely different
purpose. Doing things like this in the Squid-2.X sources is a nightmare
as it assumes the content flows thru the proxy unmodified.
Regards
Henrik
Bryan Waters wrote:
>
> What about some pointers in the right direction for the automatic
> modification to the html pages...could squid be modified programmatically to
> do this? Is there another product that does something similar?
>
> -----Original Message-----
> From: Henrik Nordstrom [mailto:hno@squid-cache.org]
> Sent: Wednesday, March 19, 2003 10:52 AM
> To: Bryan Waters
> Cc: squid-users@squid-cache.org
> Subject: Re: [squid-users] Transparent Caching
>
> ons 2003-03-19 klockan 17.48 skrev Bryan Waters:
> > I have two questions...
> >
> > 1) is there a step-by-step guide to configuring transparent caching for
> > squid on linux?
>
> The information you need to known can be found both in the Squid FAQ and
> in the Linux Transparent Proxy howto document.
>
> > 2) once I have transparent caching setup, I want to modify each web-page
> > that passes through. What i'm trying to do is setup a free internet
> access
> > kiosk network that automatically adds advertising or a small link to the
> > bottom of each page...something along the lines of what Geocities does for
> > its own web-sites but I want to do this for every requested site coming
> > through the transparent cache.
>
> This is not a task easily done with Squid.
>
> --
> Henrik Nordstrom <hno@squid-cache.org>
> MARA Systems AB, Sweden
Received on Thu Mar 20 2003 - 01:03:05 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:10 MST