Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 1999
Posts: 282
Enthusiast
Enthusiast
Offline
Joined: Oct 1999
Posts: 282
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.

Sponsored Links
Joined: Oct 1999
Posts: 282
Enthusiast
Enthusiast
Offline
Joined: Oct 1999
Posts: 282
attachment was missing...
Attachments
55741-spiders.zip (0 Bytes, 22 downloads)

Joined: Feb 2002
Posts: 67
Power User
Power User
Offline
Joined: Feb 2002
Posts: 67
Nice one - thanks!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)