Re: [squid-users] Replacing an image based on the refer...

From: Henrik K <hege_at_hege.li>
Date: Wed, 13 Aug 2008 17:53:19 +0300

On Tue, Aug 12, 2008 at 09:03:33AM -0700, John Doe wrote:
> Hi,
>
> I need to use an external program to potentially replace images requests,
> based on the referers, but url_rewrite does not pass the referer. It is
> for people direct linking images on many external sites/forums. I need the
> referer because the images seen directly on our site should not be
> replaced. Would a combination with external_acl do the trick?

You are much better off doing this with Apache's rewrite, if that happens to
be your http server. Sadly Squid is pretty awkward for rewriting purposes.
Received on Wed Aug 13 2008 - 14:53:26 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 13 2008 - 12:00:03 MDT