Re: [squid-users] header_replace: Can items be merged?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 04 Nov 2010 03:53:57 +1300

On 04/11/10 03:43, Jenny Lee wrote:
>
>
>
> ----------------------------------------
>> Date: Thu, 4 Nov 2010 03:39:49 +1300
>> From: squid3_at_treenet.co.nz
>> To: squid-users_at_squid-cache.org
>> Subject: Re: [squid-users] header_replace: Can items be merged?
>>
>> On 04/11/10 03:32, Jenny Lee wrote:
>>>
>>> Hello folks,
>>>
>>> acl BADGUY dstdomain somewhere
>>> header_replace User-Agent Nutscrape/1.0 (CP/M; 8-bit) BADGUY
>>>
>>> Is there any way to do this? It is sucking in the whole line as UA (as expected). Quotation marks did not help.
>>>
>>> Any ideas?
>>
>> request_header_access User-Agent deny BADGUY
>>
>> The replace only happens if the header has been removed first.
>
>
> Sorry I left it out assuming this is given. Yes it is removed.
>
> request_header_access User-Agent deny all
>
> It just does not work with BADGUY or anything else. It is correctly replaced though... but with the entire line... UA becomes:
>
> User-Agent Nutscrape/1.0 (CP/M; 8-bit) BADGUY
> "User-Agent Nutscrape/1.0 (CP/M; 8-bit)" BADGUY
> BADGUY User-Agent Nutscrape/1.0 (CP/M; 8-bit)
>

Oh. I see. No ACLs are not accepted on that directive.
The only tuning available is by not doing some removals.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.9
   Beta testers wanted for 3.2.0.2
Received on Wed Nov 03 2010 - 14:54:05 MDT

This archive was generated by hypermail 2.2.0 : Thu Nov 04 2010 - 12:00:01 MDT