Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Auto Update Spider ID MOD : Active Users
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 19

aspwiz
Junior Member

250 Posts

Posted - 09 November 2003 :  09:19:18  Show Profile  Visit aspwiz's Homepage
Hi.

This code is provided as is, and involves REPLACING your existing active_users.asp file.
If you have made modifications to this file already, then you will need to implement
this based on the contents of your own file taking only the nessesary bits (If you get stuck, post a link here to a txt version)

It has been pretty well tested, but let me know if you get any errors.

Basically the new script does the same, but shows up search engine spiders and different browsers
so you can see more accurately who, or what is on your site.

Installation Notes:-
Find line 80 which reads:-
StrFromAddr = "CHANGE ME" 'PLEASE CHANGE THIS LINE TO YOUR OWN EMAIL ADDRESS
and enter your own email address.

For those that have used this before this version, you should note there are changes outside of the two functions you are used to replacing.

You'll be pleased to know that there will be a regular update of this script.
Once the script is installed, future updates will be implemented by changing the value of
one variable AgentCsvStr on line 39.

Here is a link to the file:-
http://www.webforumz.com/active_users.txt
LAST UPDATED:- 15 Nov 2003

Please make sure you leave the email functionality enabled and that the email address you use on line 80 is real
and you regularly get the emails on that account. That way, if I get inundated with new user agents, I can
quickly send you an update before my email server is brought down.

Oh, and by the way... why not register on the forums at www.webforumz.com

Edited by - aspwiz on 23 October 2004 11:52:37

aspwiz
Junior Member

250 Posts

Posted - 09 November 2003 :  11:52:43  Show Profile  Visit aspwiz's Homepage
I shall post updates to this script each week where possible as I have already identified 3 new BOTS.
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 09 November 2003 :  12:01:05  Show Profile  Visit MarcelG's Homepage
nice script! Very easy to implement! I just replaced the fUserAgent function!
Tip: for clarity in this forum, you could provide the code as download...makes the topic a but more readeable.

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 09 November 2003 12:02:20
Go to Top of Page

aspwiz
Junior Member

250 Posts

Posted - 09 November 2003 :  12:06:56  Show Profile  Visit aspwiz's Homepage
You should also replace the WhatPage function so the active users page reads properly.

Iake your advice on what you said and shall amend the above post when I update the script in a week(ish)
Go to Top of Page

soxc
New Member

53 Posts

Posted - 09 November 2003 :  13:43:57  Show Profile
Nice little mod...thanks
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 09 November 2003 :  15:31:50  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
quote:

Basically the new script does the same, but shows up search engine spiders so you can see which search engine is crawling you site.



How does it identify them as spiders? I added the page to my site and all looks the same to me, but the google spider is there, I know the ip range of it and it still shows it as guest. Do you have a screenshot of this add on at work? Thanks. (ran it on sql server 2000)

coaster crazy
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 09 November 2003 :  15:35:12  Show Profile  Visit masterao's Homepage
I agree with Marcel in that this is a great addon to AU.

Which changes have you made in the WhatPage function so that it requires changing? I did a quick check with the original one, and I couldn't see any obvious changes.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 09 November 2003 :  15:45:28  Show Profile  Visit MarcelG's Homepage
masterao ; this was added (as far as a saw)
if strOnlineLocation <> "" then strPage = strOnlineLocation
	If inStr(Agentstr,"SEARCH ENGINE SPIDER") then strpage=replace(strpage,"Viewing","Indexing")
	If inStr(Agentstr,"SEARCH ENGINE SPIDER") then strpage=replace(strpage,"Replying to","Indexing")
	If inStr(agentstr,"SEARCH ENGINE SPIDER") then strpage=replace(strpage,">Forums<",">Indexing Forum Homepage<")
	'response.write "<script>alert('" & strpage & "')</script>"

Near the end.

So when a spider is 'reading' a topic, it is shown as 'indexing a topic' etc.

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 09 November 2003 15:46:03
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 09 November 2003 :  16:10:10  Show Profile  Visit masterao's Homepage
Thanks for that, Marcel. I have customized the WhatPage function on my site, so I cannot just replace it.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 09 November 2003 :  16:22:57  Show Profile  Visit MarcelG's Homepage
I know what you mean, the same goes for me
I am already getting scared for the next Snitz release...

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 09 November 2003 16:24:25
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 09 November 2003 :  16:33:50  Show Profile  Visit masterao's Homepage
Lets not get into that here, as it is off topic (but I agree with you. It would be a daunting project to do so).

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 09 November 2003 :  17:20:56  Show Profile  Visit richfed's Homepage
quote:
Originally posted by weeweeslap

quote:

Basically the new script does the same, but shows up search engine spiders so you can see which search engine is crawling you site.



How does it identify them as spiders? I added the page to my site and all looks the same to me, but the google spider is there, I know the ip range of it and it still shows it as guest. Do you have a screenshot of this add on at work? Thanks. (ran it on sql server 2000)



Does this work on SQL server? I see no change either - and I know there's a spider on my site as we speak; at least one.

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

soxc
New Member

53 Posts

Posted - 09 November 2003 :  20:53:32  Show Profile
This script is DB independant so will work with SQl, Access and MySQL as far as I can tell.

Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 10 November 2003 :  01:51:34  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
anyone have a screenshot of it working? I have spiders on my site 24/7 ( #1 ranking on basically all search engines for the stuff I cover) and have several ID'ed by IP but this add on isn't identifying them, maybe you can provide a screenshot to see what it should look like. Thanks

coaster crazy
Go to Top of Page

aspwiz
Junior Member

250 Posts

Posted - 10 November 2003 :  02:30:25  Show Profile  Visit aspwiz's Homepage
Ok everyone...

Just to clarify.

If Google or any other engine visits your website then it leaves a trail in your server logs doesnt it? In your server logs you can probally see (apart from IP address) it's user agent.

All browser's have a user agent, as do search engine spiders.

The script just identifies them by that, so if Google really is on site, then it will DEFINITLY show it.

Can I please ask everyone to keep in the part of code that emails me when a new user agent is found?? It need not be for long, a few weeks oughta do it. Just change the 'mail.from' line to something apt for your board.

If several people can do this for a few weeks, then I can improve this script to cater for all bots.

Cheers,
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 10 November 2003 :  02:39:33  Show Profile  Visit Nathan's Homepage
By now the fUserAgent could use an update to support newer browsers. AKA Safari and Firebird.

My how things fly along.

Nathan Bales
CoreBoard | Active Users Download
Go to Top of Page
Page: of 19 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07