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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.