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
|