This is an old revision of the document!


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).

whovisited.pm

TODO:

  • exclude search engine robots, or at least display user agent
  • when looking for a directory only, don't display all files in this directory, only the directory or index.php/html

Integration

It would be perfect if these two plugin functionalities were directly integrated in awstats, directly with a link on the url or hostname instead of additional column, and everywhere so that we can continuously navigate between pages and hosts stats. And more important, it should use a database to avoid parsing the whole log every time.

software/awstats.1295792776.txt.gz · Last modified: 2013/09/19 16:43 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0