Re: Content parsing

From: Patricio Baptista da Luz <patluz@dont-contact.us>
Date: Thu, 04 May 2000 12:20:20 -0300

Hi Mario,

You are correct in your assumption, if you look at the html code, pass the mouse
over the link, etc you still see "http://www.microsoft.com", but when you click on
the link, you will get to "http://www.redhat.com", and you have the option of in
the browser URL field display the "original" or the "rerouted" site.

Regards,
Patricio

"Mario L. Peralta" wrote:

> oliver.carl@tradearbed.com wrote:
> >
> > Hello Mario,
> >
> > I'm not sure whether squid has the possibilities to do a rewrite of urls, but
> > you should check out squidGuard (www.squidguard.org) which is a redirector for
> > squid. It has the capabilities to do a rewrite of urls (and many things more).
> >
> > best regards
> > Oliver
> >
>
> Yes, i've been reading about squidguard, but if i understood well, it
> works through
> the redirector interface wich means only with urls and client addresses,
> but not
> content (html pages).
>
> > "Mario L. Peralta" <mario@mecon.gov.ar> on 05/04/2000 12:02:22 AM
> >
> > To: Ahsan Khan <ahsank@one.net.pk>, squid-users@ircache.net
> > cc: (bcc: Oliver CARL/LU/TRADEARBED)
> >
> > Subject: Re: Content parsing
> >
> > Ahsan Khan wrote:
> > >
> > > You can Better do it By CNAM in DNS .:-))
> > >
> > > With Regards
> > > Ahsan Khan
> > > Sr. System Admin
> > > Internet Division (OneNet)
> > > Sun Communication Pvt. Ltd.
> > > Pakistan
> > > http://www.one.net.pk
> > >
> > > ----- Original Message -----
> > > From: "Mario L. Peralta" <mario@mecon.gov.ar>
> > > To: <squid-users@ircache.net>
> > > Sent: Thursday, May 04, 2000 12:49 AM
> > > Subject: Content parsing
> > >
> > > > I wanna write a module for squid that change links in html pages
> > > > (something like
> > > > parsing all html pages and replacing the link <A
> > > > HREF=http://www.microsoft.com> by
> > > > <A HREF=http://www.redhat.com>) ;-)
> > > > I've been reading the Squid Programmers Guide (chapter 4: Flow of a
> > > > typical request)
> > > > but i get lost trying to follow the explanation in the code...
> > > > Any tips?
> > > > TIA
> >
> > Perhaps I wasn't clear... I know my english is poor, so i'll try to
> > explain a little
> > more.
> > I intend to use squid as a reverse proxy to access some web servers.
> > These web servers have pages with links to other sites, and i itend to
> > override
> > those links, all by means of squid.conf, for example:
> >
> > # Link rewriting rules
> > rewrite www.somesite.com host.othersite.com
> > rewrite www.anothersite.com host.someothersite.com
> > ...
> >
> > and so on, the link rewriting should search for the pattern of the 1st
> > column and
> > replace it for the pattern on the second column, in all HTML pages.
> >
> > Please let me know if i'm not clear.
> > Thanks
> >
> > --
> > Weiler's Law:
> > Nothing is impossible for the man who doesn't have to do it
>
> --
> Weiler's Law:
> Nothing is impossible for the man who doesn't have to do it
Received on Thu May 04 2000 - 09:38:36 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:53:16 MST