Re: [squid-users] Can url_rewrite_program determine the referer?

From: Diego Woitasen <diego_at_woitasen.com.ar>
Date: Sun, 9 Oct 2011 15:19:42 -0300

On Sun, Oct 9, 2011 at 11:10 AM, dustfinger x
<dustfinger_at_muddymukluk.com> wrote:
> Hi,
>
> The system is using Squid version 3.1.8.
>
> I have configured squid to use a url_rewrite_program that redirects
> users to the company portal sites under certain circumstances. The
> problem is that the portal sites references external content and the
> external content URI's are also being re_written. Is there any way for
> me to determine if a particular uri has a referer? It would be idea if
> I could determine the referer's domain name, but even just knowing if
> the uri request has a referer would be helpful.
>
> Sincerely,
>
> dustfinger.
>

Use "acl referer_regex" and url_rewriter_access. For example:

acl intranet_ref referer_regex *.intranet.com.*
url_rewriter_access deny intranet_ref
url_rewriter_access allow all

Regards,
 Diego

-- 
Diego Woitasen
Received on Sun Oct 09 2011 - 18:19:51 MDT

This archive was generated by hypermail 2.2.0 : Mon Oct 10 2011 - 12:00:03 MDT