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:[EMAIL PROTECTED] > Sent: Wednesday, March 19, 2003 10:52 AM > To: Bryan Waters > Cc: [EMAIL PROTECTED] > 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 <[EMAIL PROTECTED]> > MARA Systems AB, Sweden
