469,332 Members | 6,678 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,332 developers. It's quick & easy.

Getting calling URL

I would like to get the calling URL or IP, basically to log where
people came from to get to my site, like if they came from yahoo or
google etc.

Is there a way I can do that?

Thanks, Ed,

Mar 10 '06 #1
4 1938
I think for that you have to analyze your IIS logs. I don't believe the
referrer is sent when a request is made to ASP.NET isapi handler.

Someone correct me if I'm wrong.

Mar 10 '06 #2
Try

Request.ServerVariables["REMOTE_ADDR"]

Elton Wang
"GenCode" wrote:
I would like to get the calling URL or IP, basically to log where
people came from to get to my site, like if they came from yahoo or
google etc.

Is there a way I can do that?

Thanks, Ed,

Mar 10 '06 #3
Take a look at Request.Referer.

BTW, "Referer" should be "Referrer", isn't it? Or is it in the UK, it is
spelt "Referer"?
"GenCode" <go****@gencode.com> wrote in message
news:11********************@v46g2000cwv.googlegrou ps.com...
I would like to get the calling URL or IP, basically to log where
people came from to get to my site, like if they came from yahoo or
google etc.

Is there a way I can do that?

Thanks, Ed,

Mar 10 '06 #4
Thanks everyone,

Request.UrlReferrer.AbsoluteUri

Was what I needed, Ed,

Mar 17 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Peter Afonin | last post: by
33 posts views Thread by JamesB | last post: by
5 posts views Thread by Rahul Babbar | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by haryvincent176 | last post: by
reply views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.