473,322 Members | 1,241 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,322 software developers and data experts.

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\Downloaded 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 3138
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(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim bc As HttpBrowserCapabilities
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 = " & .ActiveXControls & 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*******@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.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\Downloaded 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*******@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.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\Downloaded 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(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Clic
Dim bc As HttpBrowserCapabilitie
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 = " & .ActiveXControls & 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*******@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.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\Downloaded 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*******@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.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
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
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...
12
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...
4
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...
2
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...
2
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...
4
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...
3
by: =?Utf-8?B?Qkw=?= | last post by:
if (Request.Browser.Cookies) { // Cookies supported } else { // Web browser not supports cookies }
0
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.