On 04/11/10 03:43, Jenny Lee wrote:
----------------------------------------
Date: Thu, 4 Nov 2010 03:39:49 +1300
From: squid3@xxxxxxxxxxxxx
To: squid-users@xxxxxxxxxxxxxxx
Subject: Re: 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