Is there a way to block users from a particular region. Currently I have compiled a list of over 100 IP addresses that I block in my .htaccess file. Unfortunately as the list grows I see a great number of offenders come for the same areas, like China. Can I block that entire country? Or region?
Tell me more
×
Webmasters Stack Exchange is a question and answer site for
pro webmasters. It's 100% free, no registration required.
|
migrated from stackoverflow.com Feb 27 '11 at 14:12
|
Use GeoMax lite to identify the country and block them. mod_geoip apache module can help you in what you want to do. |
|||
|
|
|
You can try this in the .htaccess file:
|
|||
|
|