Skip site navigation (1)Skip section navigation (2)
Date:      01 Oct 2001 18:06:55 -0400
From:      Chris Shenton <chris@shenton.org>
To:        <freebsd-isp@freebsd.org>
Subject:   WWW Proxy which rewrites URLs in the content, returning to Proxy?
Message-ID:  <87elon2eww.fsf@thanatos.shenton.org>
In-Reply-To: <20011001165457.Q46251-100000@mirage.nlink.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
I'm looking for a web proxy which initially allows a user to enter a
URL, then as expected retrieves the doc, but before presenting to the
user, rewrites any URLs in the doc to force the browser to return
through the proxy to fetch the link.  This is for a firewall type of
application, allowing proxied access to internal resources for
external people.

Example:

User connects to

        http://proxy.example.com

and is asked to authenticate, then types in their desired URL for an
internal site into a web form, like:

        http://internal/foo.html

The proxy would go to the internal server "internal.example.com", grab
the page, and rewrite all URLs in the content from:

        http://internal/bar.html
to
        http://proxy.example.com/proxyservlet?url=http://internal/bar.html

or something similar.  This way the client returns to the proxy box
each time, rather than getting a URL which he can't resolve or can't
get to since it's inside the firewall. This needs to be done for 
A HREF, IMG SRC, external stylesheet references, and any other similar
URL.  (What about BASE? HTTP redirects?  other HTTP header info not
part of the content?)

I'm starting to look into these and found Apache::ProxyStuff (perl),
Muffin (Java), and a couple others. Most seem designed to block access
to some sites based on content, remove banner adverts, etc, rather
than transform content slightly.

Any package suggestions? Pointers to places or lists which would have
more info on this type of thing?

Thanks!


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87elon2eww.fsf>