|
 |
asp_components thread: RE: HTTP_USER_AGENT and Browser identification/S- cooter
Message #1 by "Butner, Robert S" <butner@B...> on Fri, 24 Aug 2001 09:13:44 -0700
|
|
Scooter is the web crawler agent used by AltaVista for indexing/updating
sites. On a site that is registered in major search engines, you'll find
quite a few such agents making up a significant portion of your traffic.
If you decide to adjust your page display according to user agent,it's good
to remember this and consider what sort of representation will do you the
most good.
There are components for keeping track of browser capabilities (e.g.,
BrowserHawk -- info at http://www.cyscape.com/ -- which I've never used but
is advertised extensively). If you're really serious about making
browser-aware pages, I'd suggest this approach because trying to keep up
with the various versions of agents and what they can/cannot do is enough
to drive one crazy. Personally, I tend to target everything for version
4.0 or higher IE/NS browsers, and not worry about the bells and whistles
available on the newer browsers. It eliminates some nice options (e.g.,
XML data binding to tables in IE 5 and above, among others) but makes for
simple pages that work for nearly everyone.
Scott Butner (butner@b...)
Senior Research Scientist, Environmental Technology Division
Pacific Northwest National Laboratory
MS K6-04
PO Box 999, Richland, WA 99352
(xxx)-xxx-xxxx voice/(509)-372-4995 fax
-----Original Message-----
From: Arbon Reimer [mailto:arbon_reimer@h...]
Sent: Friday, August 24, 2001 8:43 AM
To: ASP components
Subject: [asp_components] Re: HTTP_USER_AGENT and Browser
identification
The Mozilla(3.0, Indy Library) is probably telling you that it's
Netscape
version 3.0, and that it was some kind of customization for
Indianapolis'
public libraries.
There are a lot of people who develop custom browsers... like if you
install
MSIE from an Earthlink internet access disk... the title bar will say
something like this:
"<web page title> - Microsoft Internet Explorer provided by Earthlink
Internet Access - dial 1-800-555-1212"
Just advert ploys... and this shows up in IIS logs too.
About Scooter.. I dunno what that is, never really heard of it!
Regards,
Arbon Reimer
Message #2 by "Balajewicz, Greg" <Greg.Balajewicz@A...> on Fri, 24 Aug 2001 12:34:38 -0500
|
|
Thank you both for your help.
I am not trying to provide different pages for different browsers (ie
hell
on earth:) but I just want to know what browsers are frequent visitors
to be
able to know if I should test the site for the browser. Do you know of
any
articles/resources which can help me identify the browsers?
Again, thanks for you help!
Greg
Message #3 by Kyle Burns <kburns@c...> on Fri, 24 Aug 2001 14:02:29 -0500
|
|
Profession ASP Techniques for Webmasters (ISBN 1861001797) was one of my
early ASP book purchases. This book includes some sample code for obtaining
browser totals for reporting purposes. The user agent string is what is
used to determine the browser type. I don't have the original code, but
here is the stored procedure that I use to extract browser information for
reporting. I hope it helps get you the criteria you need. In case you
aren't too familiar with TSQL, CHARINDEX is functionally equivalent to the
VB InStr() function.
<TSQL>
CREATE PROCEDURE sp_GetBrowserStatistics
(
@SiteIP VARCHAR(15)
)
AS
--Internet Explorer
SELECT 'Internet Explorer 2.X' As UserAgent, HitCount=ISNULL(SUM(ItemCount),
0)
FROM UserAgentSummary
WHERE HostIP = @SiteIP
AND CHARINDEX('(compatible; MSIE 2.', ItemText) > 0
UNION
SELECT 'Internet Explorer 3.X' As UserAgent, HitCount=ISNULL(SUM(ItemCount),
0)
FROM UserAgentSummary
WHERE HostIP = @SiteIP
AND CHARINDEX('(compatible; MSIE 3.', ItemText) > 0
UNION
SELECT 'Internet Explorer 4.X' As UserAgent, HitCount=ISNULL(SUM(ItemCount),
0)
FROM UserAgentSummary
WHERE HostIP = @SiteIP
AND CHARINDEX('(compatible; MSIE 4.', ItemText) > 0
UNION
SELECT 'Internet Explorer 5.X' As UserAgent, HitCount=ISNULL(SUM(ItemCount),
0)
FROM UserAgentSummary
WHERE HostIP = @SiteIP
AND CHARINDEX('(compatible; MSIE 5.', ItemText) > 0
--Netscape Navigator
UNION
SELECT 'Netscape Navigator 2.X' As UserAgent,
HitCount=ISNULL(SUM(ItemCount), 0)
FROM UserAgentSummary
WHERE HostIP = @SiteIP
AND CHARINDEX('Mozilla/2.', ItemText) > 0
AND CHARINDEX('MSIE', ItemText) = 0
AND CHARINDEX('Opera', ItemText) = 0
UNION
SELECT 'Netscape Navigator 3.X' As UserAgent,
HitCount=ISNULL(SUM(ItemCount), 0)
FROM UserAgentSummary
WHERE HostIP = @SiteIP
AND CHARINDEX('Mozilla/3.', ItemText) > 0
AND CHARINDEX('MSIE', ItemText) = 0
AND CHARINDEX('Opera', ItemText) = 0
UNION
SELECT 'Netscape Navigator 4.X' As UserAgent, HitCount
ISNULL(SUM(ItemCount), 0)
FROM UserAgentSummary
WHERE HostIP = @SiteIP
AND CHARINDEX('Mozilla/4.', ItemText) > 0
AND CHARINDEX('MSIE', ItemText) = 0
AND CHARINDEX('Opera', ItemText) = 0
UNION
SELECT 'Netscape Navigator 6.X' As UserAgent,
HitCount=ISNULL(SUM(ItemCount), 0)
FROM UserAgentSummary
WHERE HostIP = @SiteIP
AND CHARINDEX('Mozilla/5.', ItemText) > 0
AND CHARINDEX('MSIE', ItemText) = 0
AND CHARINDEX('Opera', ItemText) = 0
--Opera
UNION
SELECT 'Opera' As UserAgent, HitCount=ISNULL(SUM(ItemCount), 0)
FROM UserAgentSummary
WHERE HostIP = @SiteIP
AND CHARINDEX('(compatible; Opera', ItemText) > 0
--Other
UNION
SELECT 'Other' As UserAgent, HitCount=ISNULL(SUM(ItemCount), 0)
FROM UserAgentSummary
WHERE HostIP = @SiteIP
AND CHARINDEX('Mozilla/2.', ItemText) = 0
AND CHARINDEX('Mozilla/3.', ItemText) = 0
AND CHARINDEX('Mozilla/4.', ItemText) = 0
AND CHARINDEX('Mozilla/5.', ItemText) = 0
AND CHARINDEX('MSIE', ItemText) = 0
AND CHARINDEX('Opera', ItemText) = 0
ORDER BY UserAgent
</TSQL>
=================================
Kyle M. Burns, MCSD
ECommerce Technology Manager
Centra Credit Union
kburns@c...
-----Original Message-----
From: Butner, Robert S [mailto:butner@B...]
Sent: Friday, August 24, 2001 11:14 AM
To: ASP components
Subject: [asp_components] RE: HTTP_USER_AGENT and Browser
identification/S cooter
Scooter is the web crawler agent used by AltaVista for indexing/updating
sites. On a site that is registered in major search engines, you'll find
quite a few such agents making up a significant portion of your traffic.
If you decide to adjust your page display according to user agent,it's good
to remember this and consider what sort of representation will do you the
most good.
There are components for keeping track of browser capabilities (e.g.,
BrowserHawk -- info at http://www.cyscape.com/ -- which I've never used but
is advertised extensively). If you're really serious about making
browser-aware pages, I'd suggest this approach because trying to keep up
with the various versions of agents and what they can/cannot do is enough
to drive one crazy. Personally, I tend to target everything for version
4.0 or higher IE/NS browsers, and not worry about the bells and whistles
available on the newer browsers. It eliminates some nice options (e.g.,
XML data binding to tables in IE 5 and above, among others) but makes for
simple pages that work for nearly everyone.
Scott Butner (butner@b...)
Senior Research Scientist, Environmental Technology Division
Pacific Northwest National Laboratory
MS K6-04
PO Box 999, Richland, WA 99352
(xxx)-xxx-xxxx voice/(509)-372-4995 fax
-----Original Message-----
From: Arbon Reimer [mailto:arbon_reimer@h...]
Sent: Friday, August 24, 2001 8:43 AM
To: ASP components
Subject: [asp_components] Re: HTTP_USER_AGENT and Browser identification
The Mozilla(3.0, Indy Library) is probably telling you that it's Netscape
version 3.0, and that it was some kind of customization for Indianapolis'
public libraries.
There are a lot of people who develop custom browsers... like if you
install
MSIE from an Earthlink internet access disk... the title bar will say
something like this:
"<web page title> - Microsoft Internet Explorer provided by Earthlink
Internet Access - dial 1-800-555-1212"
Just advert ploys... and this shows up in IIS logs too.
About Scooter.. I dunno what that is, never really heard of it!
Regards,
Arbon Reimer
Message #4 by Oleg Kapeljushnik <c-oleg.kapeljushnik@w...> on Fri, 24 Aug 2001 16:13:53 -0400
|
|
You can turn on USerAgent option in IIS log configuration.
And then IIS will automaticlly collect this information for you.
Then you can import this file into some statistic software and it will tell
you
what freqently used.
Oleg
-----Original Message-----
From: Balajewicz, Greg [mailto:Greg.Balajewicz@A...]
Sent: Friday, August 24, 2001 1:35 PM
To: ASP components
Subject: [asp_components] RE: HTTP_USER_AGENT and Browser identificati
on/S cooter
Thank you both for your help.
I am not trying to provide different pages for different browsers (ie
hell
on earth:) but I just want to know what browsers are frequent visitors
to be
able to know if I should test the site for the browser. Do you know of
any
articles/resources which can help me identify the browsers?
Again, thanks for you help!
Greg
Message #5 by "Balajewicz, Greg" <Greg.Balajewicz@A...> on Fri, 24 Aug 2001 15:41:05 -0500
|
|
|
|
 |