Re: [squid-users] header_access help

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 18 Feb 2010 11:12:17 +1300

On Wed, 17 Feb 2010 15:50:43 +0100, "David C. Heitmann"
<david_at_lafourmi.de>
wrote:
> how can i make a acl rule for reply- and request_header_access???
> i would only allow User-Agent for gmx and ebay
>
> i have testing:
> acl gmx srcdomain gmx.net gmx.de gmx.com
>
> reply_header_access User-Agent allow gmx
> request_header_access User-Agent allow gmx
>
> but it doesent work :(
>
> can somebody help me please

All header are allowed unless denied.

Allowing something which is happening anyway is pointless work.

Your requirement of "only allow User-Agent for gmx and ebay" needs to be
inverted.
"deny if not for gmx and ebay" making the rule:

  request_header_access User-Agent deny !gmx

Note: There is no _reply_ User-Agent: field.

PS: every other website you see which has a mobile cellular version, or
has IE-specific versions, or has IE-only requirements will now die is
various horrible and visually annoying ways.

Amos
Received on Wed Feb 17 2010 - 22:12:21 MST

This archive was generated by hypermail 2.2.0 : Thu Feb 18 2010 - 12:00:06 MST