Re: [squid-users] referer_regex and empty referer

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 18 Aug 2004 22:16:02 +0200 (CEST)

On Wed, 18 Aug 2004, Kevin Murphy wrote:

> However, I would like people to be able to load the images directly -
> that is, I'd like the servers to allow requests that don't have a
> Referer: header.
>
> I tried this acl:
>
> acl no_referer referer_regex ^$
>
> but it doesn't seem to match requests without a Referer.

Correct.

> Does anyone know a way to do this?

The following should wotk

   acl has_referer referer_regex .

then use !has_referer in http_access.

Regards
Henrik
Received on Wed Aug 18 2004 - 14:16:08 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:02 MDT