473,397 Members | 2,068 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,397 software developers and data experts.

Getting user information...

RAB
When an anonymous user visits my website what basic information can I
gather about them? I thought I read somewhere that I could get the
name of the server that is requesting my website http code? If this
is the case what would be some VB code code to capture this
information in a string variable?

Thanks in advance,
RABMissouri2007
Nov 18 '07 #1
2 1168
On Nov 18, 6:21 pm, RAB <rabmisso...@yahoo.comwrote:
When an anonymous user visits my website what basic information can I
gather about them? I thought I read somewhere that I could get the
name of the server that is requesting my website http code? If this
is the case what would be some VB code code to capture this
information in a string variable?

Thanks in advance,
RABMissouri2007
You can get the client IP address, name of the browser (User-Agent)
and a previous site visited by the user, that linked to your site
(Referrer).

' IP Address
_UserHostAddress =
HttpContext.Current.Request.UserHostAddress.ToStri ng

' Browser
_UserAgent = HttpContext.Current.Request.UserAgent.ToString

' Referrer
_Referrer = HttpContext.Current.Request.UrlReferrer.ToString
Nov 18 '07 #2
"Alexey Smirnov" <al************@gmail.comwrote in message
news:7a**********************************@b36g2000 hsa.googlegroups.com...
client IP address
HttpContext.Current.Request.UserHostAddress.ToStri ng
So easily spoofed (via proxies or other methods) these days...
name of the browser (User-Agent)
HttpContext.Current.Request.UserAgent.ToString
Several browsers are now capable of pretending to be different browsers...
previous site visited by the user, that linked to your site
HttpContext.Current.Request.UrlReferrer.ToString
More and more ISPs are stripping this off...

Not really worth bothering with...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 18 '07 #3

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

Similar topics

0
by: Jim | last post by:
I need some help getting started with a .NET web project for a commercial site. I am new to .NET and my understanding of some (but not all) of its concepts is a little sparse. I apologize for the...
0
by: Jim | last post by:
This si a repost, I apologize but perhaps my original inquiry got buried under all the usenet spam... I need some help getting started with a .NET web project for a commercial site. I am new to...
5
by: Thelma Lubkin | last post by:
I have a form/subform with the common one-to-many relationship. The form allows user to display records and move to other records via the selector, to add,delete, and edit them, with the related...
2
by: Duwayne | last post by:
I am having lots of trouble with one of my user controls (ascx) not automatically loading postback data. An image on the aspx page starts the postback and the parent has no problem loading it's own...
5
by: Brian Henry | last post by:
I have a page which reads an article from the database it has 1 text box, 2 dropdown lists, and a longreat HTML text box. I load the information from the database when the page is set to edit mode...
0
by: Grant Rettke | last post by:
Hi folks, ASP.NET 1.1 question for you folks. I'm working on a web aplication that stores some objects in the session. What is happening is that after I reach a certain page, the session is...
3
by: Fredrik Melin | last post by:
Same problem that I had before, diffrent approach.. In my application at order-creation, the user might encounter that the item he is trying to order is locked by another user, and he have to...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
2
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in...
2
by: srusskinyon | last post by:
I need some help getting unique records from our database! I work for a small non-profit homeless shelter. We keep track of guest information as well as what services we have offered for...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
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...
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
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.