First, thank you and congratulations for this wonderful plugin !
I have the same problem than kkchan, as a quick fix waiting for a proper fix I made the following changes to restore the IP address from the resolved host :
— follow_me_by_internetofficer_orig.pm       2011-01-21 13:46:13.441618617 +0100
+++ follow_me_by_internetofficer.pm    2011-01-21 02:47:24.922211933 +0100
@@ -109,9 +109,20 @@
               if ($host eq '__title__') {
                       print '<th width="40">' . $plugin_message{'Follow Me'} . '</th>' ;
               } elsif ($host) {
+$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;
+}
+
                       print "<td>";
                       print '<a href="' . $AWScript . '?config=' . $SiteConfig . '&pluginmode=follow_me_by_internetofficer&host=' . $host
                       . ($Lang ? '&lang=' . $Lang : '') . '" target="_blank">' . $plugin_message{'Zoom'} . '</a>' ;
Â
It is far from being perfect, because it reads the whole dnscache file for every row, and I am not sure the file location is always the same, but it works 🙂
Â
Based on this plugin, I also wrote another one called "Who Visited" which is the counterpart of "Follow Me" : for a given URL, it shows the list of hosts that visited it. But this one is very dirty, and it doesn't ignore search engines robots. But I find it very useful, maybe you can write a similar plugin ?
Mine is available at http://crteknologies.fr/wiki/d…..re:awstats
Â
Cyril
kkcha