Search squid archive

Re: header_access help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 17 Feb 2010 15:50:43 +0100, "David C. Heitmann"
<david@xxxxxxxxxxx>
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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux