Re: Re: [squid-users] User Agent Setting Not Being Used

From: <CACook_at_quantum-sci.com>
Date: Wed, 12 Jun 2013 09:16:09 -0800

On Tuesday, June 11, 2013 02:50:32 PM Amos Jeffries wrote:
> On 11/06/2013 5:22 a.m., CACook_at_quantum-sci.com wrote:
> > For some reason Squid is passing along my real UserAgent:
> > User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0
> >
> > ... rather than the one I'm telling it to pass along:
> > request_header_replace User-Agent Mozilla/5.0 (compatible; Goog1ebot/2.1; +http://www.google.com/bot.html)
> >
> > Anyone know why?
>
> You replacing headers requires request_header_access to remove the
> existing one first.

Thanks, but it doesn't work. After this and a restart:
 
request_header_access User-Agent deny all
request_header_replace User-Agent Mozilla/5.0 (compatible; Goog1ebot/2.1; +http://www.google.com/bot.html)
 
... still the true user agent.
 
Received on Wed Jun 12 2013 - 16:16:12 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 14 2013 - 12:00:29 MDT