I was just interested if all these anonymous users were real people, or spiders indexing the forums. So I wrote this short and easy hack. Sure, this hack may only work well, if the spider list provided is complete as possible and accurate (do you know other sources of spider IP-lists?)
Mod Name / Version: SpiderShow 1.0beta
Description: Identifies spiders (e.g. from searchengines) that visit your forum and shows them on "Who's Online". Only visible to Administrators.
Working under: tested with UBB.threads 6.0.2, should also work with 6.0.3 & 6.1
Author: Maze
Demo: no. Simply looks like this in the anonymous-section of Who's Online:
195.145.119.25
( Spider: [:"red"]
Infoseek[/] )
Files Altered: online.php
Database Altered: no
New Files: /filters/spiders
Any other info: List of current spider IP's can be downloaded at
http://www.iplists.com/1) Place the spiders file (attached) into your /filters directory.
2) In online.php find:
code:
$Username = $piece['1'];
3) Right after it, add:
code:
#added next 16 lines 4.9.2002 M.Hoeschen: [HACK: show spiders]
$spiders = file ("{$config['path']}/filters/spiders");
while (list($linenum, $line) = each($spiders)) {
if (ereg("^#", $line)) {
if ($lastline == 0) {
$lastComment = $line;
}
$lastline = 1;
continue;
}
$line = chop ($line);
$lastline = 0;
if ($piece['1'] == $line) {
$lastComment = ereg_replace("#", "", $lastComment);
$Username = $piece['1'] ."<br />( Spider: <font class="new"><b>$lastComment</b></font>)";
}
}
#HACK end.
4) done.