Re: [squid-users] rewrite content and url

From: Amos Jeffries <squid3@dont-contact.us>
Date: Sun, 02 Dec 2007 20:56:25 +1300

alexus wrote:
> is there a way to replace content on the fly? and/or url?
>
> for instance:
>
> content:
> user goes to website and at one point he reaches a site that has
> certain content, i want to rewrite that content something else

Yes. But you will need squid 3.0 where ICAP/eCAP support is now
available and an ICAP server to do the re-write on the fly.

>
> url:
> user goes to specific url and instead of sending user to that url, i'd
> rewrite url and send user to different url?

All current versions and most old support this type of redirection.
http://www.squid-cache.org/Versions/v2/2.6/cfgman/
http://www.squid-cache.org/Versions/v3/3.0/cfgman/

Look for 'redirect' and 'rewrite' (there are a few points where its
possible).

Amos
Received on Sun Dec 02 2007 - 00:56:35 MST

This archive was generated by hypermail pre-2.1.9 : Tue Jan 01 2008 - 12:00:01 MST