BrowserHawk IQ now available! Click here for the full scoop!
Search:
Internal / LAN IPs returned as Other
Created: 9/3/2002    Updated: 7/18/2003
Q   We're sitting on an IP segment of 192.168.X.X. This IP address is returned as Other, although I'm working in a Danish (DK) company. Why is this? Is there any way to define segments of IPs that you do not want CountryHawk to handle, or maybe define your own countries as IP ranges that take precedence over the countries.cdd?

A   All non-routable IP addresses (those typically used for internal LANs, such as the 192.168.x.x range) are mapped to Other. This is by design, and handled this way because these same internal IPs are used all over the world, so there is no way to know where the user is.

Regarding defining segments of IPs to override CountryHawk's database - this feature is being considered for implementation in a future version of CountryHawk.

In the meantime, however, you can easily enforce your own rules by adding some logic to your scripts where CountryHawk is used. For example:

  chObj = Server.CreateObject("cyScape.countryObj")
  if Instr(chObj.IPAddr, "192.168.") > 0
     thisCountryCode = "DK"
  elseif Instr(chObj.IPAddr, "202.12.") > 0
     thisCountryCode = "FR"
  else
     thisCountryCode = chObj.CountryCode
  end if

    FAQ Home  |  Search FAQ  |  Show New Items  |  Ask a FAQ  |  Notify Me  |  Most Popular     
 
 
Copyright © 1994-2020 cyScape, Inc. All Rights Reserved. ()
ASP, ASP.NET, ColdFusion MX, CFMX, JSP, PHP