473,734 Members | 2,824 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating browser sniffer with ASP.Net

Hi all

I am very new to ASP.Net. I am trying to create a sniffer for our program. We want our users to click our sniffer and hopefully the sniffer will check their computer against our requirements. I would like to ask experts like you to see which items are actually doable with ASP.Net. Below I listed all of the items we are looking for but I can understand if some of the items are impossible to check/sniff. We would like to create a sniffer that returns the results for the below items

Broswer (minimum requirement is I.E. 6 for PC and Safari for Mac OS X
Browser type (This area will tell them what they have -AOL, MSN, IE...etc and in the list returns a red gif image if they don't have IE 6 or Safari
Browser version (This area will tell them what version they have and again returns a red gif image if they have an earlier version
Cookies (In this area we are basically trying to find out in the browser window - just for IE - if their privacy setting is set to the following: The window name is: Advanced Privacy Settings. We want "Override automatic cookie handling" to be checked; first-party-cookies and third-party-cookies radio buttons are checked and "Always allow session cookies" are checked. We also want if our website is listed in the "Per Site Privacy Actions" window (you can get to window by clicking in IE Tools-Internet Options-Privacy-Websites-Edit)
Cache (In this area we are trying to find out if their "Temporary Internet Files" settings is set to "Every visit to the page"
OS Version (This area will tell them what version they have and returns a red gif image if they don't have Windows XP or Mac OS X
Connection speed (This area will tell them what their connection speed is and returns a red gif image if they have dial-up connection
Display settings (This area will tell them what their screen resolution is
Service Pack ( This area will tell them if they have Service Pack 1 for Windows XP
Flash (This area will tell them if they have Flash plug-ins
Java (This area will tell them if they have Java Virtual Machine
Java Applets (This area will tell them if they have some of our applets installed in this directory: C:\WINNT\Downlo aded Program Files
Java Script (This area will tell them if some of the items in browsers "Security Setting" window (IE-Tools-Options-Security-Custom Level
Adobe Acrobat Reader (This area will tell them if they have Acrobat Reader 6.0
Do you have a media player? (This area will tell them if they have any media player (Windows Media, Real player, Winamp...etc
What program will open TIFs (This area will tell them what program is associated to open with the files with the extension .tiff
Firewall check (This area will tell them if they are behind a firewall
Pop-up window check (This area will tell them if there is any program that is blocking pop-up windows such as search toolbars
Parasites (This are will tell them if they are infected with parasites

Thank you in advance. Any ideas would help

Dave Bake

Nov 18 '05 #1
5 3175
Hi David,

This article will show you pretty well all of the info you can get using the
Request object in ASP.NET:

HOW TO: Determine the Browser Version in ASP.NET

http://support.microsoft.com/default...b;en-us;311281
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Dim bc As HttpBrowserCapa bilities
Dim s As String = ""
bc = Request.Browser
With bc
s &= "Browser Capabilities" & vbCrLf
s &= "Type = " & .Type & vbCrLf
s &= "Name = " & .Browser & vbCrLf
s &= "Version = " & .Version & vbCrLf
s &= "Major Version = " & .MajorVersion & vbCrLf
s &= "Minor Version = " & .MinorVersion & vbCrLf
s &= "Platform = " & .Platform & vbCrLf
s &= "Is Beta = " & .Beta & vbCrLf
s &= "Is Crawler = " & .Crawler & vbCrLf
s &= "Is AOL = " & .AOL & vbCrLf
s &= "Is Win16 = " & .Win16 & vbCrLf
s &= "Is Win32 = " & .Win32 & vbCrLf
s &= "Supports Frames = " & .Frames & vbCrLf
s &= "Supports Tables = " & .Tables & vbCrLf
s &= "Supports Cookies = " & .Cookies & vbCrLf
s &= "Supports VB Script = " & .VBScript & vbCrLf
s &= "Supports JavaScript = " & .JavaScript & vbCrLf
s &= "Supports Java Applets = " & .JavaApplets & vbCrLf
s &= "Supports ActiveX Controls = " & .ActiveXControl s & vbCrLf
End With
TextBox1.Text = s
End Sub


HOW TO: Determine Browser Type in Server-Side Code Without the BrowserType
Object in ASP.NET

http://support.microsoft.com/default...b;en-us;306576
"David Baker" <an*******@disc ussions.microso ft.com> wrote in message
news:9A******** *************** ***********@mic rosoft.com...
Hi all,

I am very new to ASP.Net. I am trying to create a sniffer for our program.
We want our users to click our sniffer and hopefully the sniffer will
check their computer against our requirements. I would like to ask experts
like you to see which items are actually doable with ASP.Net. Below I
listed all of the items we are looking for but I can understand if some of
the items are impossible to check/sniff. We would like to create a sniffer
that returns the results for the below items:

Broswer (minimum requirement is I.E. 6 for PC and Safari for Mac OS X)
Browser type (This area will tell them what they have -AOL, MSN, IE...etc
and in the list returns a red gif image if they don't have IE 6 or Safari)
Browser version (This area will tell them what version they have and again
returns a red gif image if they have an earlier version)
Cookies (In this area we are basically trying to find out in the browser
window - just for IE - if their privacy setting is set to the following:
The window name is: Advanced Privacy Settings. We want "Override automatic
cookie handling" to be checked; first-party-cookies and
third-party-cookies radio buttons are checked and "Always allow session
cookies" are checked. We also want if our website is listed in the "Per
Site Privacy Actions" window (you can get to window by clicking in IE
Tools-Internet Options-Privacy-Websites-Edit))
Cache (In this area we are trying to find out if their "Temporary Internet
Files" settings is set to "Every visit to the page")
OS Version (This area will tell them what version they have and returns a
red gif image if they don't have Windows XP or Mac OS X)
Connection speed (This area will tell them what their connection speed is
and returns a red gif image if they have dial-up connection)
Display settings (This area will tell them what their screen resolution
is)
Service Pack ( This area will tell them if they have Service Pack 1 for
Windows XP)
Flash (This area will tell them if they have Flash plug-ins)
Java (This area will tell them if they have Java Virtual Machine)
Java Applets (This area will tell them if they have some of our applets
installed in this directory: C:\WINNT\Downlo aded Program Files)
Java Script (This area will tell them if some of the items in browsers
"Security Setting" window (IE-Tools-Options-Security-Custom Level)
Adobe Acrobat Reader (This area will tell them if they have Acrobat Reader
6.0)
Do you have a media player? (This area will tell them if they have any
media player (Windows Media, Real player, Winamp...etc)
What program will open TIFs (This area will tell them what program is
associated to open with the files with the extension .tiff)
Firewall check (This area will tell them if they are behind a firewall)
Pop-up window check (This area will tell them if there is any program that
is blocking pop-up windows such as search toolbars)
Parasites (This are will tell them if they are infected with parasites)

Thank you in advance. Any ideas would help.

Dave Baker


Nov 18 '05 #2
That's a heck of a lot more information than their browser is going to send
with a Request. You will need to write an ActiveX Control or Java Applet to
run on the client and perform this type of testing.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"David Baker" <an*******@disc ussions.microso ft.com> wrote in message
news:9A******** *************** ***********@mic rosoft.com...
Hi all,

I am very new to ASP.Net. I am trying to create a sniffer for our program. We want our users to click our sniffer and hopefully the sniffer will check
their computer against our requirements. I would like to ask experts like
you to see which items are actually doable with ASP.Net. Below I listed all
of the items we are looking for but I can understand if some of the items
are impossible to check/sniff. We would like to create a sniffer that
returns the results for the below items:
Broswer (minimum requirement is I.E. 6 for PC and Safari for Mac OS X)
Browser type (This area will tell them what they have -AOL, MSN, IE...etc and in the list returns a red gif image if they don't have IE 6 or Safari) Browser version (This area will tell them what version they have and again returns a red gif image if they have an earlier version) Cookies (In this area we are basically trying to find out in the browser window - just for IE - if their privacy setting is set to the following: The
window name is: Advanced Privacy Settings. We want "Override automatic
cookie handling" to be checked; first-party-cookies and third-party-cookies
radio buttons are checked and "Always allow session cookies" are checked. We
also want if our website is listed in the "Per Site Privacy Actions" window
(you can get to window by clicking in IE Tools-Internet
Options-Privacy-Websites-Edit)) Cache (In this area we are trying to find out if their "Temporary Internet Files" settings is set to "Every visit to the page") OS Version (This area will tell them what version they have and returns a red gif image if they don't have Windows XP or Mac OS X) Connection speed (This area will tell them what their connection speed is and returns a red gif image if they have dial-up connection) Display settings (This area will tell them what their screen resolution is) Service Pack ( This area will tell them if they have Service Pack 1 for Windows XP) Flash (This area will tell them if they have Flash plug-ins)
Java (This area will tell them if they have Java Virtual Machine)
Java Applets (This area will tell them if they have some of our applets installed in this directory: C:\WINNT\Downlo aded Program Files) Java Script (This area will tell them if some of the items in browsers "Security Setting" window (IE-Tools-Options-Security-Custom Level) Adobe Acrobat Reader (This area will tell them if they have Acrobat Reader 6.0) Do you have a media player? (This area will tell them if they have any media player (Windows Media, Real player, Winamp...etc) What program will open TIFs (This area will tell them what program is associated to open with the files with the extension .tiff) Firewall check (This area will tell them if they are behind a firewall)
Pop-up window check (This area will tell them if there is any program that is blocking pop-up windows such as search toolbars) Parasites (This are will tell them if they are infected with parasites)

Thank you in advance. Any ideas would help.

Dave Baker

Nov 18 '05 #3
Thank you both for replying. From what I understand from your replies, I have two options: either use ASP.Net and create a server-side scripting (which Kevin says it is difficult to accomplish) or create a client-side scripting (using Active X or Jscript). Is that correct? If so, which path do you recommend me to go

Thanks a bunch, this information is very useful to get started

Dav

----- Ken Cox [Microsoft MVP] wrote: ----

Hi David

This article will show you pretty well all of the info you can get using the
Request object in ASP.NET

HOW TO: Determine the Browser Version in ASP.NE

http://support.microsoft.com/default...kb;en-us;31128
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Clic
Dim bc As HttpBrowserCapa bilitie
Dim s As String = "
bc = Request.Browse
With b
s &= "Browser Capabilities" & vbCrL
s &= "Type = " & .Type & vbCrL
s &= "Name = " & .Browser & vbCrL
s &= "Version = " & .Version & vbCrL
s &= "Major Version = " & .MajorVersion & vbCrL
s &= "Minor Version = " & .MinorVersion & vbCrL
s &= "Platform = " & .Platform & vbCrL
s &= "Is Beta = " & .Beta & vbCrL
s &= "Is Crawler = " & .Crawler & vbCrL
s &= "Is AOL = " & .AOL & vbCrL
s &= "Is Win16 = " & .Win16 & vbCrL
s &= "Is Win32 = " & .Win32 & vbCrL
s &= "Supports Frames = " & .Frames & vbCrL
s &= "Supports Tables = " & .Tables & vbCrL
s &= "Supports Cookies = " & .Cookies & vbCrL
s &= "Supports VB Script = " & .VBScript & vbCrL
s &= "Supports JavaScript = " & .JavaScript & vbCrL
s &= "Supports Java Applets = " & .JavaApplets & vbCrL
s &= "Supports ActiveX Controls = " & .ActiveXControl s & vbCrL
End Wit
TextBox1.Text =
End Su


HOW TO: Determine Browser Type in Server-Side Code Without the BrowserType
Object in ASP.NE

http://support.microsoft.com/default...kb;en-us;30657
"David Baker" <an*******@disc ussions.microso ft.com> wrote in message
news:9A******** *************** ***********@mic rosoft.com..
Hi all
I am very new to ASP.Net. I am trying to create a sniffer for our program.

We want our users to click our sniffer and hopefully the sniffer will
check their computer against our requirements. I would like to ask experts
like you to see which items are actually doable with ASP.Net. Below I
listed all of the items we are looking for but I can understand if some of
the items are impossible to check/sniff. We would like to create a sniffer
that returns the results for the below items
Broswer (minimum requirement is I.E. 6 for PC and Safari for Mac OS X

Browser type (This area will tell them what they have -AOL, MSN, IE...etc
and in the list returns a red gif image if they don't have IE 6 or Safari
Browser version (This area will tell them what version they have and again
returns a red gif image if they have an earlier version
Cookies (In this area we are basically trying to find out in the browser
window - just for IE - if their privacy setting is set to the following:
The window name is: Advanced Privacy Settings. We want "Override automatic
cookie handling" to be checked; first-party-cookies and
third-party-cookies radio buttons are checked and "Always allow session
cookies" are checked. We also want if our website is listed in the "Per
Site Privacy Actions" window (you can get to window by clicking in IE
Tools-Internet Options-Privacy-Websites-Edit)
Cache (In this area we are trying to find out if their "Temporary Internet
Files" settings is set to "Every visit to the page")
OS Version (This area will tell them what version they have and returns a
red gif image if they don't have Windows XP or Mac OS X)
Connection speed (This area will tell them what their connection speed is
and returns a red gif image if they have dial-up connection)
Display settings (This area will tell them what their screen resolution
is)
Service Pack ( This area will tell them if they have Service Pack 1 for
Windows XP)
Flash (This area will tell them if they have Flash plug-ins)
Java (This area will tell them if they have Java Virtual Machine)
Java Applets (This area will tell them if they have some of our applets
installed in this directory: C:\WINNT\Downlo aded Program Files)
Java Script (This area will tell them if some of the items in browsers
"Security Setting" window (IE-Tools-Options-Security-Custom Level)
Adobe Acrobat Reader (This area will tell them if they have Acrobat Reader
6.0)
Do you have a media player? (This area will tell them if they have any
media player (Windows Media, Real player, Winamp...etc)
What program will open TIFs (This area will tell them what program is
associated to open with the files with the extension .tiff)
Firewall check (This area will tell them if they are behind a firewall)
Pop-up window check (This area will tell them if there is any program that
is blocking pop-up windows such as search toolbars)
Parasites (This are will tell them if they are infected with parasites)
Thank you in advance. Any ideas would help.
Dave Baker

Nov 18 '05 #4
Hi Dave,

I think you're going to need an ActiveX control or a rich .NET client to get
what you need. You've got to search for stuff on the drive and in the
registry.

The control would be along the lines of what they use at Windows Update. The
user is going to have to accept the security warning in the browser before
the control can start scanning.

Ken
"David Baker" <an*******@disc ussions.microso ft.com> wrote in message
news:96******** *************** ***********@mic rosoft.com...
Thank you both for replying. From what I understand from your replies, I
have two options: either use ASP.Net and create a server-side scripting
(which Kevin says it is difficult to accomplish) or create a client-side
scripting (using Active X or Jscript). Is that correct? If so, which path
do you recommend me to go?

Thanks a bunch, this information is very useful to get started.

Dave


Nov 18 '05 #5
Thank you so much again. This information helps me a lot. Have a nice day

Dave
Nov 18 '05 #6

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

Similar topics

12
2036
by: AMC | last post by:
Hi, I need to code an asp based browser sniffer. It needs to detect if a browser can support css and if not redirect to a different site. Does anyone have sample code that does this? thx
13
2078
by: AMC | last post by:
Hi, I have the below code in an asp page. When I run this page in IE or Opera it correctly displays the header info and does not redirect me to 'test.html'. However, when I run this in Netscape it goes straight to the redirect page 'test.html' which indicates that javascript is not enabled and it also does not display the header info. Can someone tell me why this is happening? <%@ Language=VBScript%> <%'get header info
12
1766
by: Wade G. Pemberton | last post by:
Does anyone have a quick script to find which version of IE a page is being viewed with? Specifically, I want to seperate version 4 from versions 5+, and post a warning against using 4. I expect I'll have to search out the (navigator.appAgent) string for the MSIE substring, but since I don't need it until tomorrow, laziness dictates I ask here before getting on with it. Is there another variable? a less cumbersome way?
4
3402
by: _max_ | last post by:
HttpWebRequest() allows 'pseudo-browser' simulation to intercept incoming HTML for 'screen scraping', etc. But how would you do the opposite: Programmatically find out what a browser is sending to a website? (Probably via POST) I'd imagine this is done often, so maybe I'm just missing some terminology for doing the search. It seems you'd also have to simulate cookies to do this right. Is code available?
2
1527
by: Sergey Poberezovskiy | last post by:
Hi, Simple question: I developed an ASP.Net application that runs under IE. Now for all other browsers I display a message that the application runs under IE: If Not System.Web.HttpContextCurrent.Request.Browser.Type.ToUpper
2
3084
by: Laurent Laporte | last post by:
hello, I'm using cvs standard module under Python 2.3 / 2.4 to read a CSV file. The file is opened in binary mode, so I keep the end of line terminator. It appears that the csv.Sniffer force the line terminator to be '\r\n'. It's fine under Windows but wrong under Linux or Macintosh.
4
2574
by: trpost | last post by:
I am looking for a script using javascript to pull browser information including, browser type and version, OS info, plugins (flash, acrobat, media player, etc), java version, etc. that will work on IE/Firefox. I am looking for detalis similar to what is available at: http://www.webreference.com/tools/browser/_browserhawk.html Thanks!
3
7788
by: =?Utf-8?B?Qkw=?= | last post by:
if (Request.Browser.Cookies) { // Cookies supported } else { // Web browser not supports cookies }
0
1067
by: showellshowell | last post by:
Hi everybody, I'm looking for a very simple HTTP debugging sniffer in Python-- hopefully 200 lines of less--that allows me to write simple methods to inspect requests and responses. It would ideally work like this: sniffer = SimpleHttpDebuggingSniffer(actual_host_address, actual_host_port) sniffer.listening_port = SOME_PORT_ON_MY_DESKTOP sniffer.inbound_inspector = some_method_i_write
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8777
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9184
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8187
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6737
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6033
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4813
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3262
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.