Web Hosting Talk







View Full Version : How do you record referrers?


NVB
08-28-2001, 12:17 PM
My log files do not list referrers. They are in the form IP Address - - [date - code] "GET url" 200 code

How can I configure the server to record referrer information in the log files? The server is linux with Apache.

creid
08-28-2001, 12:27 PM
there was an online thing. But i forget the URL

ffeingol
08-28-2001, 02:47 PM
This page on the Apache website documents the various log formats and how to use them (http://httpd.apache.org/docs/logs.html).

Frank

Kaith Sutai-Rustaz
08-29-2001, 09:53 AM
Also, I believe "Apache for Dummies" has the info (nice book...helped me -train- a host a while back on the same subject - referer info)

:)

NVB
08-29-2001, 04:24 PM
I was able to get it to work by adding the line

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""

To the apache httpd.conf file, then doing a restart. Thanks, to all that replied.

Is there any disadvantage to listing referrers? Why would apache default to not including referrer information?