This is an old revision of the document!
Table of Contents
awstats
Plugins
Mods
Follow Me Plugin
Fix the reverse DNS host problem.
$filename = '/var/lib/awstats/dnscachelastupdate.' . $SiteDomain . '.txt'; if (open(FILE, $filename)) { while(<FILE>) { chomp; @fields = split('\t', $_); if (lc($fields[2]) eq $host) { $host = $fields[1]; } } close FILE; }
TODO:
- fix when different IPs are resolved to the same ns, example:
21593800 92.103.0.242 reverse.completel.net 21593800 213.30.130.42 reverse.completel.net 21593800 92.103.7.242 reverse.completel.net 21593800 92.103.143.70 reverse.completel.net 21593800 212.99.78.124 reverse.completel.net 21593800 92.103.167.46 reverse.completel.net
This should even be fixed in awstats that may detect that this resolution was not complete, or detect that different IPs resolved to the same name and ignore resolution, or maintain a list of not unique names… Or I change the fix to resolve every IP in the log file, which will be a lot longer than back-resolving once the name, or we get a list of IPs, but still they are different visitors (here from all over France), so we should just detect several IPs resolved to the same name, put that name in a file, and then either ignore this name or build a compound name with the ip.
Who Visited Plugin
I wrote a new plugin, based on Following Me plugin, that shows all hosts that visited a given page (vs all pages that a given host visited, as Following Me is doing).
TODO:
- exclude search engine robots, or at least display user agent