#!/bin/sh # # referers: CGI script to show the top referers of the 50,000 most recent # hits to this server. # # This source code is available under the license at: # http://www.w3.org/Consortium/Legal/copyright-software # # $Id: referers,v 1.8 2000-05-08 02:12:31 gerald Exp $ LOG=/usr/local/apache/logs/validator_log; export LOG cat < top referers to validator.w3.org

This page lists the top 100 referers to the W3C Validation Service (taken from the most recent 50,000 log entries.)

EOHD tail -50000 $LOG | egrep -v image/png | egrep -v image/gif | \ cut -d\" -f4 | sort | uniq -c | \ grep -v ' \-$' | sort -rn | head -100 | sed 's/\&/\&/g; s/\n",\ $1, $2, $2)}' cat <
Gerald Oskoboiny
\$Date: 2000-05-08 02:12:31 $ \
EOHD exit
%s%s