diff options
Diffstat (limited to 'httpd/cgi-bin/referers')
-rwxr-xr-x | httpd/cgi-bin/referers | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/httpd/cgi-bin/referers b/httpd/cgi-bin/referers deleted file mode 100755 index e8abf54..0000000 --- a/httpd/cgi-bin/referers +++ /dev/null @@ -1,48 +0,0 @@ -#!/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 <<EOHD -Content-Type: text/html - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> - -<title>top referers to validator.w3.org</title> - -<body bgcolor="#FFFFFF" text="#000000" link="#0000ee" vlink="#551a8b"> - -<p> - This page lists the top 100 referers to <a href="/">the W3C Validation - Service</a> (taken from the most recent 50,000 log entries.) -</p> - -<table> -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/</\</g' | \ - awk '{printf("<tr><td>%s</td><td><a href=\"%s\">%s</a></td></tr>\n",\ - $1, $2, $2)}' - -cat <<EOHD -</table> - -<hr> -<address> -<a href="http://www.w3.org/People/Gerald/">Gerald Oskoboiny</a><br> -\$Date: 2000-05-08 02:12:31 $ \ -</address> - -EOHD - -exit - |