Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

how to get referer's IP address

I can get referer using request.servervariables("http_referer"), but how can I get referer's IP address instead of referer's domain name?
 
thanks
0
flyoversky
Asked:
flyoversky
  • 2
1 Solution
 
epeeleCommented:
   tIP = Request.ServerVariables ("REMOTE_ADDR")
0
 
AzraSoundCommented:
you can use a component such as AspDNS
http://www.serverobjects.com/products.htm#aspdns

or roll your own (VB Code):
"How to Resolve a Hostname Into an IP Address"
http://www.mvps.org/vbnet/index.html?code/network/hostnamefromip.htm
0
 
flyoverskyAuthor Commented:
thank very much!
0
 
flyoverskyAuthor Commented:
thank very much!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now