Name

referer_log

Synopsis

This directive causes Squid to create a log file of Referer values from client requests. The file contains four fields: time, client identifier, Referer value, and the URI request. For example, when a client requests the image foo.png embedded in an index.html, the referer log contains:

1068047502.377 192.168.1.2 /index.html /foo.png

Squid writes an entry for every HTTP request that has a Referer header. Unlike access.log, entries are written to this file when the request is received.

Syntax

referer_log pathname

Default

No default

Example

referer_log /usr/local/squid/var/logs/referer.log

Related

log_fqdn, cache_access_log, useragent_log

Get Squid: The Definitive Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.