1 2 3
Geo::IP perl module can be used to automatically select the geographically closest mirror, or to analyze your web server logs to determine the countries of your visiters.