Welcome to WebmasterWorld Guest from 174.129.135.89

Forum Moderators: LifeinAsia & httpwebwitch

Message Too Old, No Replies

Is there a way to ask "Given this range of IPs, are there any in USA?"

   
1:41 pm on Nov 20, 2012 (gmt 0)

10+ Year Member



Let's say you buy a firewall, plug it in, and decide you want to block "all traffic that doesn't originate from the USA" (or whatever country - I'm just picking one so that I can be specific in my request).

You go through your logs and you see a hit from 126.114.231.243. You want to know, "Are there any IPs that are in the 126.0.0.0/8 range that are in the US?" Because if there aren't, you want to add that range as a block in your firewall.

Are there any sites/ways to ask such a question? I know that I can basically hack around it to see around 95% or so (looking at 5-10 IPs in that range). I'm just wondering if there's an easier way to ask that question.

Thanks!
2:04 pm on Nov 20, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Instead of blocking all IP's that aren't from the US, you should set it up to only accept US IP ranges. it will be much easier to moderate.

There are plenty of sites online that list the US IP ranges if you Google it.
7:26 pm on Nov 28, 2012 (gmt 0)

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



You can download all the IP ranges by country direct from the sources:

ftp://ftp.apnic.net/pub/apnic/stats/apnic/delegated-apnic-latest
ftp://ftp.arin.net/pub/stats/arin/delegated-arin-latest
ftp://ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-latest
ftp://ftp.ripe.net/ripe/stats/delegated-ripencc-latest
ftp://ftp.afrinic.net/pub/stats/afrinic/delegated-afrinic-latest