This is a perl5 script that produces a report listing all the places on the Web people have come from, sorted by where they went.
Webtrace has been tested under both Linux/Apache 1.0+ and WinNT/WebSite 1.1+ environments.
It analyzes a specially modified version of the Common Log Format web server log files to produce a listing of referers.
This type of Web server log format is becoming known as the "Combined CERN/NCSA" log format (This is how WebSite 1.1 identifies it).
If you use the Apache Web server, you can implement this type of log by enabling support for configurable logging, and using the following line in the httpd.conf file:
LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
http://www.obscure.org/slow-net/webtrace/webtrace-1.0.tar.gz
webtrace config-file-name.cfgInvoking webtrace from a cron job or other program scheduling facility to get updated statistics on a daily basis works well.