Forum Moderators: DixonJones

Message Too Old, No Replies

How to work out IP country locations

         

Dan_C

9:24 am on Aug 30, 2003 (gmt 0)

10+ Year Member



Hi

Unfortunately we need to block visitors to our site originating from India. (reason being high bandwith visits and constant spam mailings, we will do this via deny in apache).

Someone in another thread said:
--------------------
IP addresses:
61.
202.
203.
210.
211.
218.
219.
220.
These IP's belong to asian countries.
--------------------

Can anyone tell me how to confim/lookup the above ip's locations.

For example
How can i find out exactly where 210. is?

Obviously we do not want to block the wrong countries/users.

Thanks in advance for any help/advice.

victor

10:05 am on Aug 30, 2003 (gmt 0)

Dan_C

2:58 pm on Aug 30, 2003 (gmt 0)

10+ Year Member



Thanks already tried that.
I can't see how its possible to get it right though

Looking at the above 203.

example

203.109.254.40 - new zealand
203.199.202.164 - india

They were just 2 i tried. Presumably there could be 203. ranges located in the USA or UK?.

victor

5:34 pm on Aug 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The top octet does not neatly map to a single country. Take a look, for example, at...

[ripe.net...]

...which is a fairly comprehensive list of mappings to european ISPs.

You got to look the whole ip address up to be sure. And that only tells you where the ISP is registered, not the country of their user.

203.109.254.40 and 203.199.202.164 are both under APNIC (Asia Pacific Network Information Centre) so they are both "asian" to a first level approximation.

[samspade.org...] is a good resource for looking up ip addresses too.