Warning: Expiry date cannot have a year greater then 9999 in /home/kilandor/seditioforge.com/system/common.php on line 244
Questions and support about the plugins. - Forums - whosonline - Seditio Forge
 
> 1 <

Author Message

donP

13 posts
http://www.sangelo.net
Location: Italy Rozzano (MI)
Occupation:
Age: 38
#139   2007-11-06 20:35 GMT      
Ehi, what version of whosonline plugin are you using on this site?
Is it a modification made by you?
How can you show bots, spiders and crawlers names instead of Visitor #1?
donP

Kilandor

118 posts
http://www.seditioforge.com/
Location: United States TN
Occupation: Web Coder - Gamer - Game Devloper(working on it)
Age: 26
#140   2007-11-07 02:57 GMT      
Its, one I actually got from Lombi(I work for him), and modified. I think he got someone to make it for him. I don't think it was a public release one. But I modified the one he had to show like that, before it was only visible to admin, in the list view cause it only changed the IP. And it showed in the main list with users also, But I removed it from showing there.

Its pretty basic though. All you have to do is, create a list of bots(can google and find lots of pages with them) Compare $_SERVER['HTTP_USER_AGENT'] to the list. Store that data in sql, with the IP address of the bot, and the name for it to show (also with the list). And then, have it check the ip in online list, if it matches an IP in sql table replace it.

rayblo

3 posts

Location: Netherlands
Occupation:
Age:
#164   2007-12-08 15:37 GMT      
Maybe would be nicer if you add an example in here Kilandor!

rayblo

3 posts

Location: Netherlands
Occupation:
Age:
#165   2007-12-08 17:46 GMT      
Found this aswell botlist

Kilandor

118 posts
http://www.seditioforge.com/
Location: United States TN
Occupation: Web Coder - Gamer - Game Devloper(working on it)
Age: 26
#166   2007-12-09 02:39 GMT      
Interesting that there is a some kind a plugin/mod that logs that depth, though not really needed.

Well that method is using a pregmatch on the useragent. While what I have just uses the exact.

This is the way mine is.

This is just text in an array

Code:
Googlebot/1.0=Google.com
Googlebot/2.1= Google.com
Googlebot/Test=Google.com


Then all you do is explode that array by = then you get 2 arrays, first one is useragent, second one is name, to show. All you do is compare the useragent to the first list. If you get a match, store it in SQL, along wiht the IP address. Then in Whoisonline just compare IP adress to stored IP address if match, replace with the name.

Orkan

2 posts

Location: Poland
Occupation:
Age:
#283   2008-04-12 22:38 GMT      
Yah, just my 2 cents.
For better performance, store IP's in DB as integers: int(10) unsigned. To convert IP's use this PHP functions: ip2long() and long2ip(), even mySQL supports this format natively
> 1 <
Copyright © 2008 Domain.Com. All Rights Reserved.
Page created in 0.255 seconds