Write a script to analyze the raw access logs. Or you could use something like this:
LINK:
<A HREF="/cgi-bin/download.cgi?file=0111111.exe">Norton Definitions</A
+>
download.cgi:
#!/usr/bin/perl -wT
use strict;
use CGI;
use Fcntl qw|:flock|;
my $q = new CGI;
my ($file) = $q->param('file') =~ /^(\w+\.\w+)$/;
open (FILE, "/path/to/logs/$file.txt") or die("Can't open file: $!");
flock (FILE, LOCK_EX) or die("Can't lock file: $!");
my $count = <FILE> + 1;
open (FILE, ">/path/to/logs/$file.txt") or die("Can't open file for wr
+iting: $!");
print FILE $count;
close (FILE);
print "Location: http://site.com/downloads/$file\n\n";
That's just example code. Obviously it wouldn't be great to use for production, but you get the idea.
Joshua