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

to get some information about the web site user

i building a website in a LAN which will not be published on the
internet. but the users in the LAN are accessing the web site through
an ISA firewall server. i would like to ask if there is a way to get
the ip address of the users to monitor their access to the web site. i
tried to use the servervariable REMOTE_ADDR but of course it returns
the firewall's ip address.
can any one tell how can i do get the ip address of the users to save
it in a database.
thank you

Jul 25 '05 #1
11 1800
Soha wrote:
i building a website in a LAN which will not be published on the
internet. but the users in the LAN are accessing the web site through
an ISA firewall server. i would like to ask if there is a way to get
the ip address of the users to monitor their access to the web site. i
tried to use the servervariable REMOTE_ADDR but of course it returns
the firewall's ip address.
can any one tell how can i do get the ip address of the users to save
it in a database.


Have you tried stepping through the Request.ServerVariables collection yet?
You ought to find one in there (X_FORWARDED_FOR, for example) with another
IP address. This is not necessarily the originating IP address, since the
user could be sitting behind NAT, or some other type of proxy.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 25 '05 #2
If you're only inside the LAN, why not require the user to authenticate,
then you can get LOGON_USER instead, which is likely more valuable than IP
address (and in general, can be used to map back to IP address).

ASP/IIS can only see what the last hop shows it; there is no way to get back
to the original user's machine if the one exposed is the firewall.


"Soha" <se******@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
i building a website in a LAN which will not be published on the
internet. but the users in the LAN are accessing the web site through
an ISA firewall server. i would like to ask if there is a way to get
the ip address of the users to monitor their access to the web site. i
tried to use the servervariable REMOTE_ADDR but of course it returns
the firewall's ip address.
can any one tell how can i do get the ip address of the users to save
it in a database.
thank you

Jul 25 '05 #3

i did study the server variable but i didn't find any variable with the
name X_FORWARDED_FOR even on msdn web site i can't find anything
also i can't do a login page coz the site is just for view a collection
of the news and articles from the newspapers written about the place i'm
working in. so i guess it will be annoying for my college. is there any
other solution???
*** Sent via Developersdex http://www.developersdex.com ***
Jul 25 '05 #4
> also i can't do a login page coz the site is just for view a collection

You don't need to build a login page for people to authenticate. You just
turn off anonymous access, if it's all on one domain they won't have to
enter anything, otherwise IIS will take care of the prompt for you... and in
either case, now Request.ServerVariables("LOGON_USER") will be populated.
working in. so i guess it will be annoying for my college. is there any
other solution???


Aside from using login name instead of IP address? Afraid not. If this
information is not exposed, you may as well be trying to get blood from a
stone. Why do you need to know who it is, anyway?
Jul 25 '05 #5
NOTE: If you refuse to quote, I will refuse to respond further.

Soha ElSaeed wrote:
i did study the server variable but i didn't find any variable
with the name X_FORWARDED_FOR even on msdn web site i can't
find anything


Who said anything about the MSDN site? I asked if you had bothered STEPPING
THROUGH the collection. Try it.

And yes, I know MSDN says nothing about X_FORWARDED_FOR. But MSDN cannot
possibly know every header that might be sent in a request.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 25 '05 #6
coz my manager wants to know who accessed the site and who didn't to
punish the ones who didn't. (stubidtly)
thanks but i have to go back to the system administrator to make this
changes.

*** Sent via Developersdex http://www.developersdex.com ***
Jul 25 '05 #7
note: i'm sorry but i don't refuse to qoute i'm just new in this site so
i don't know how to qoute.i just know how to reply.

about the X_FORWARDED_FOR i thought the msdn knows the server variables
and its headers. but i'm still searching in other asp sites coz the asp
help i have now is the help from msdn.
*** Sent via Developersdex http://www.developersdex.com ***
Jul 25 '05 #8
> note: i'm sorry but i don't refuse to qoute i'm just new in this site so
i don't know how to qoute.i just know how to reply.
First off, please use a newsreader.
http://www.aspfaq.com/5007

Second, do you see the way I've included relevant portions of your message,
interspersed with my reply? This is what Dave is talking about when he says
"quote"...
about the X_FORWARDED_FOR i thought the msdn knows the server variables
and its headers. but i'm still searching in other asp sites coz the asp
help i have now is the help from msdn.


Stop "searching in other asp sites" and save this asp page as srvvar.asp:

<%
for each x in Request.ServerVariables
response.write x & "<br>" & Request.ServerVariables(x) & "<p>"
next
%>

Now, hit srvvar.asp on the server, through the firewall, from one of the
machines that you are planning to capture information from. Maybe you will
getlucky and see something like X_FORWARDED_FOR, maybe not. It all depends
on your firewall's hardware and whether or not it supports the functionality
and whether it has been enabled/configured to do so.

If these guys are all inside your LAN, why are they going through a firewall
to hit an internal app? Couldn't you just place that application inside the
firewall (or make them log in), if it is so important for the boss to know
who has visited and who has not?

A
Jul 25 '05 #9
>First off, please use a newsreader.
thank u but it seems that the system administrator has closed the nntp
coz i can't connect.and i always receive a msg saying the could not be
found. so i have to keep using the html interface for the newsgroup

second i didn't get the "X_FORWARDED_FOR" after i run the script.

[qoute]If these guys are all inside your LAN, why are they going through
a firewall to hit an internal app? Couldn't you just place that
application inside the firewall (or make them log in), if it is so
important for the boss to know who has visited and who has not?[/qoute]

third i don't know why the previous system administrator has done this
and the current system administrator is lazy to watch the firewall log
files which shows the requests the users do on web sites. so i have to
solve this problem on my own.

thank u A and thank u Dave
and Dave; i hope now u understand why i didn't qoute.
*** Sent via Developersdex http://www.developersdex.com ***
Jul 25 '05 #10
Soha ElSaeed wrote:
First off, please use a newsreader.


thank u but it seems that the system administrator has
closed the nntp coz i can't connect.and i always receive
a msg saying the could not be found. so i have to keep
using the html interface for the newsgroup


And yet it is still possible to quote from the developersdex.com
interface.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message.
Use of this email address implies consent to these terms. Please do not
contact me directly or ask me to contact you directly for assistance. If
your question is worth asking, it's worth posting.

*** Sent via Developersdex http://www.developersdex.com ***
Jul 25 '05 #11
>And yet it is still possible to quote from the
developersdex.com interface.


yes by copying the text and adding the > sign to the text. and again
sorry for not taking quotes


*** Sent via Developersdex http://www.developersdex.com ***
Jul 27 '05 #12

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

Similar topics

4
by: PHPkemon | last post by:
Hi there, A few weeks ago I made a post and got an answer which seemed very logical. Here's part of the post: PHPkemon wrote: > I think I've figured out how to do the main things like...
53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
4
by: Marquisha | last post by:
If this is off-topic, please forgive me. But I thought this might be the perfect spot to get some advice about how to proceed with a project. Working on a Web site design for a nonprofit...
6
by: iclinux | last post by:
I have to build a GUI applicaiton that could run on different OS such as windows and *nix, which GUI toolkit is better? Best Regards.
5
by: Tom | last post by:
Hi, I'm new to asp.net 2.0 and I'm working on creating a web site that allows user to log into the web site and view information pertaining to them such as accounts, sales, and other information...
0
by: Lester Knutsen | last post by:
A two-day IBM Informix and DB2 User Group Technical Conference - Friday and Saturday, December 8-9, 2006 Location - Fairview Park Marriott, Falls Church, VA (near Washington D.C.)...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
6
by: chanko | last post by:
hi all! ok i'll try and keep this clean and simple i have a web app where users can log in and manage a mini site (ie galleries, files, news....) and i have a web app which is the site...
1
by: =?Utf-8?B?RW1tYSBIb3Bl?= | last post by:
Hi All, I need some advice please. I have very good knowledge of MS Access, Excel etc, reasonable knowledge of VBA and some very basic knowledge of VB6 and virtually non-existant knowledge of...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.