Search squid archive

Re: Re: Re: User Agent Setting Not Being Used

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

 





>________________________________
> From: "CACook@xxxxxxxxxxxxxxx" <CACook@xxxxxxxxxxxxxxx>
>To: squid-users@xxxxxxxxxxxxxxx 
>Sent: Friday, June 14, 2013 9:26 AM
>Subject: Re: Re: Re:  User Agent Setting Not Being Used
> 
>
>On Wednesday, June 12, 2013 09:16:09 AM CACook@xxxxxxxxxxxxxxx wrote:
>> On Tuesday, June 11, 2013 02:50:32 PM Amos Jeffries wrote:
>> > On 11/06/2013 5:22 a.m., CACook@xxxxxxxxxxxxxxx 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.
>
>So no one can help with either of my problems.  Not the unable to stay logged in, nor this one.
>
>Disappointing.
>
>
>
>
>
>




The following configuration works for me:

==================================================
...
...
request_header_access All deny all
request_header_replace User-Agent Mozilla/5.0 (compatible; Goog1ebot/2.1; +http://www.google.com/bot.html)
request_header_access User-Agent deny all
request_header_access Accept allow all
...
...
request_header_access All deny all
==================================================




HTTP headers:

HTTP_CONTENT_LENGTH:0
HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING:gzip, deflate
HTTP_ACCEPT_LANGUAGE:en-US,en;q=0.5
HTTP_COOKIE:ASP.NET_SessionId=2uttz2iusqy5pn55q1320w55
HTTP_HOST:www.proxydetect.com
HTTP_USER_AGENT:Mozilla/5.0 (compatible; Goog1ebot/2.1; +http://www.google.com/bot.html)
HTTP_DNT:1 





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

  Powered by Linux