473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Using Request.Browser.Crawler - is it reliable?

Has anyone used/tested Request.Browser.Crawler ? Is it reliable, or are there false
positives/negatives?

Thanks!

Dec 13 '05 #1
3 5706
It's based on the browserCaps, which you can override in the web.config.
Otherwise it uses the built-in one found in the machine.config file
(C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONF IG)

If you do a search for "browserCaps" and look for "crawler" in that section,
you'll see what sets it off.

Obviously it can easily be fooled, anyone can simply change the header
information. I think for the most part however, you won't get false
positives (Crawler == true when it isn't), but you will get false negatives
(crawler == false when it is).

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Bill" <Bi*****@yahoo.com> wrote in message
news:uQ*************@TK2MSFTNGP15.phx.gbl...
Has anyone used/tested Request.Browser.Crawler ? Is it reliable, or are
there false
positives/negatives?

Thanks!

Dec 13 '05 #2
Cool - thanks!

Follow up - how can I use, or access, "Request.Browser.Crawler" in a classical ASP page?

I need to detect if a browser is a crawler so that I do not update the page count. Of
course, because of the nature of crawler beasties, I can not do a redirect. And the
application is too extensive for me to do a rewrite at this time.

Thanks,

Bill.

"Karl Seguin" wrote...
It's based on the browserCaps, which you can override in the web.config.
Otherwise it uses the built-in one found in the machine.config file
(C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONF IG)

If you do a search for "browserCaps" and look for "crawler" in that section,
you'll see what sets it off.

Obviously it can easily be fooled, anyone can simply change the header
information. I think for the most part however, you won't get false
positives (Crawler == true when it isn't), but you will get false negatives
(crawler == false when it is).

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Bill" wrote...
Has anyone used/tested Request.Browser.Crawler ? Is it reliable, or are
there false
positives/negatives?

Thanks!


Dec 13 '05 #3
The only way I know of is to either (a) parse the header itself, or (b) use
a 3rd party component like BrowserHawk
(https://www.cyscape.com/products/bhawk/)

Karl

--

MY ASP.Net tutorials
http://www.openmymind.net/

"Bill" <Bi*****@yahoo.com> wrote in message
news:Ob**************@TK2MSFTNGP12.phx.gbl...
Cool - thanks!

Follow up - how can I use, or access, "Request.Browser.Crawler" in a
classical ASP page?

I need to detect if a browser is a crawler so that I do not update the
page count. Of
course, because of the nature of crawler beasties, I can not do a
redirect. And the
application is too extensive for me to do a rewrite at this time.

Thanks,

Bill.

"Karl Seguin" wrote...
It's based on the browserCaps, which you can override in the web.config.
Otherwise it uses the built-in one found in the machine.config file
(C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONF IG)

If you do a search for "browserCaps" and look for "crawler" in that
section,
you'll see what sets it off.

Obviously it can easily be fooled, anyone can simply change the header
information. I think for the most part however, you won't get false
positives (Crawler == true when it isn't), but you will get false
negatives
(crawler == false when it is).

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Bill" wrote...
> Has anyone used/tested Request.Browser.Crawler ? Is it reliable, or are
> there false
> positives/negatives?
>
> Thanks!
>
>
>



Dec 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Roger Twomey | last post by:
I have an application that checks for browser, version and active X enabled. It uses the result for a simple if then. The issue I have is that Request.Browser.MajorVersion is returning the...
3
by: Ganesh | last post by:
I am a .NET Professional and working in web development. I found a bug (i think so) while using Request.Browser object to identify the browser name and version. It shows me the correct browser name...
1
by: ocn0248 | last post by:
The code bellow must be executed under safari web-browser. I need to know how I can get the major version of the safari web-browser. Thanks in advance vb.net code Partial Class SafariTest...
5
by: whoopding | last post by:
How can I return all the properties in the Request.Browser object using a for each...next loop?
4
by: customerservice | last post by:
I have been tracking website traffic on my site www.grabbagvideo.com:84 and also https://www.grabbagvideo.com for a few weeks now. I am using the request.browser.crawler property in attempt to...
1
by: Alex D. | last post by:
does anybody knos the string for the Opera browser to do something similar to : this.Request.Browser.IsBrowser("IE"). Thanks, Alex.
3
by: Charles Zhang | last post by:
How can I get Request.Browser.Crawler to work correctly? Do I need to update <browserCapssection of the web configuration file? If yes, where can I find something that cover all browsers and...
0
by: germ | last post by:
we are running into a situation where accessing Request.Browser.MajorVersion causes a System.ArgumentNullException. when this happens the HTTP_USER_AGENT value is "Mozilla/4.x (Win95)" I am...
1
by: Nathan Sokalski | last post by:
Where can I find out what values are submitted by different browsers for Page.Request.Browser.Browser? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.