On Tuesday, June 11, 2013 02:50:32 PM Amos Jeffries wrote:
> On 11/06/2013 5:22 a.m., [email protected] 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.
 


Reply via email to