Re: [squid-users] Can't see user-agent header in access.log

2007-03-16 Thread Henrik Nordstrom
tor 2007-03-15 klockan 22:34 -0300 skrev Alejandro:

> What can I do to force the user-agent header to be present in the access 
> log file in order to check its value ???

See the logformat directive. Allows you to specify exactly what should
be logged in access.log.

Regards
Henrik


signature.asc
Description: Detta är en digitalt signerad	meddelandedel


Re: [squid-users] Can't see user-agent header in access.log

2007-03-16 Thread Chris Robertson

Alejandro wrote:
Dear all, I've a Squid proxy on a Debian Sarge box (I can't remember 
the squid version now). I want to filter by a "acl name browser" type 
in order to allow just Mozilla anc compatible web browsers. I made the 
appropriatte acl (acl webbrowsers browser Mozilla) and the filter rule 
(http_access deny !webbrowsers), but it doesn't work at allOpera 
browsers can go through my Squid :(


So I went to the Squid's access.log file and I notice that user-agent 
header is not present at all.


What can I do to force the user-agent header to be present in the 
access log file in order to check its value ???


Special thanks

alejandro.-


From squid.conf.default:

#  TAG: useragent_log
# Note: This option is only available if Squid is rebuilt with the
#   --enable-useragent-log option
#
#   Squid will write the User-Agent field from HTTP requests
#   to the filename specified here.  By default useragent_log
#   is disabled.

Check with squid -v to see if user agent logging has been compiled in.

Be aware that Opera makes it very easy to switch the reported user agent 
(http://www.opera.com/support/search/view/570/).


Chris


[squid-users] Can't see user-agent header in access.log

2007-03-15 Thread Alejandro
Dear all, I've a Squid proxy on a Debian Sarge box (I can't remember the 
squid version now). I want to filter by a "acl name browser" type in 
order to allow just Mozilla anc compatible web browsers. I made the 
appropriatte acl (acl webbrowsers browser Mozilla) and the filter rule 
(http_access deny !webbrowsers), but it doesn't work at allOpera 
browsers can go through my Squid :(


So I went to the Squid's access.log file and I notice that user-agent 
header is not present at all.


What can I do to force the user-agent header to be present in the access 
log file in order to check its value ???


Special thanks

alejandro.-