I would like to know if somebody already did this type of world wide IP blocking?
Is there a quick way to do this?
this is my existing blocking:
<Files *> order deny,allow
# Nigerian/African 419 Scammers IP addresses follow: deny from 188.8.131.52/27 deny from 184.108.40.206/29 deny from 220.127.116.11/17 deny from 62.56.235. deny from 62.56.236. *snip* (long long long long list) (i have a 21mb list of ips) deny from 58.71.0/17 deny from 61.9.0/17 deny from 61.14.192/18 deny from 61.28.128/18
Blocks (ranges) of IP addresses are assigned on an as-needed/as-requested basis. Therefore, there is no direct correspondence between IP address ranges and countries.
The usual solution (other than long lists of 'Deny from' IPs) is to use GeoIP or similar services to get a country-code for the requesting IP, and then screen requests to your site based on that value.