Welcome to WebmasterWorld Guest from 54.205.17.36

Forum Moderators: LifeinAsia

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)

Junior Member

10+ Year Member

joined:Apr 13, 2005
posts: 128
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:May 6, 2008
posts:2011
votes: 0


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)

Administrator from US 

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

joined:Jan 25, 2005
posts:14662
votes: 95


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
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members