• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Looking for list of ip ranges by country

macssuck

Senior member
I would like to ban certain countries from accessing our web server but I cannot find a list of their ip's.

 
The ARIN is the official distributors of IP addresses. If it's anywhere, they have it. But, for the most part, IP's are not evenly assigned by country - They are pretty scattered. Some of the asian countries have somewhat well-defined boundries, but not many.

- G
 
ARIN is the IP authority for americas i believe. RIPENET is for europe and I forget the other one. Basically there are three autorities for IP address assignment. go to ARINs web page and I'm sure you'll find more.
 
it is fairly difficult to filter by IP address for a geographical region just because IP ranges are scattered all around the world; i recommend turning DNS resolution for your logs on and trying to filter like *.de for germany or *.cn for china - use tcpwrappers to do it. you won't catch the ones that don't resolve, but it's better than nothing.
 
it is fairly difficult to filter by IP address for a geographical region just because IP ranges are scattered all around the world; i recommend turning DNS resolution for your logs on and trying to filter like *.de for germany or *.cn for china - use tcpwrappers to do it. you won't catch the ones that don't resolve, but it's better than nothing.
 
The idiot (every router problem he encountered was always a bad serial port or cable never a software issue) that ran the IS department at our county office of education (they provide internet for our school district) finally quit so now that we have a guy that's going to implement some security I?m looking to compile a list of ip's that should be banned from accessing our webserver.
 
As others have stated here IP address are issued by region rather than country. The assigning authorities are:

ARIN at www.arin.net for the Americas
APNIC at www.apnic.net for Asia-Pacific
RIPE at www.ripe.net for Europe.

The address blocks they cover are thus



APNIC Address Blocks 61/8, 202/7, 210/7, 218/7 and 220/8
ARIN Address Blocks 24/8, 63/8, 64/6, 68/8, 199/8, 200/8, 204/6,208/7 and 216/8
RIPE Address Blocks 62/8, 80/7, 193/8, 194/7, 212/7 and 217/8

Addresses outside of these blocks were allocated generally prior to the registries being set-up.

These registris took over from IANA in 1997 and addresses assigned before this time cannot be assumed to fit in with this geographic model.

 
Back
Top