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.