Hi,
Running Apache 2.2.11 32bit with mod_geoip 1.2.7 on windows 7
I have been using mod_geoip 1.2.5 with geolite country database for a while now. Problem is that from time to time it returns the wrong country code. This happens for 127.0.0.1 and also my own external IP number. Most of the time it works OK and then it will give the wrong country. It should be GB in my case.
So I just upgraded to mod_geoip 1.2.7 and latest geoip.dat file and the same problem happens. i.e. sometimes I get country code GB and sometimes I get various other country codes for the same IP number.
I have modded my apache log file to include the country code and infact I can have some files from one page request have the correct country code and some files have the wrong country code. See below. I get RU and US returned when it should be GB as the rest of the files are. Refreshing the page will sometimes get it right.
This is not what I would expect. Either the database has the correct country or it doesn't. Having it sometimes return the correct country and not other times looks like a software bug. (N.B. that below is not the actual IP. I edited it).
I have also used the maxmind PHP code to get country and this always seems to get it correctly.
Any suggestions as to what the problem is ?
Thanks
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET / HTTP/1.1" 200 4291 "-" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET /js/js.js HTTP/1.1" 200 1690 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET /css/screen.css HTTP/1.1" 200 7504 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET /js/screen.js HTTP/1.1" 200 6353 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET /pics/frmsr.gif HTTP/1.1" 200 125 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "RU" - - 2012-08-04 02:42:36 "GET /pics/frmst.gif HTTP/1.1" 200 82 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET /pics/robert-champagne-photographer.gif HTTP/1.1" 200 1724 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET /pics/frmsb.gif HTTP/1.1" 200 143 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET /pics/frmsl.gif HTTP/1.1" 200 123 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "US" - - 2012-08-04 02:42:36 "GET /pics/frmctl.gif HTTP/1.1" 200 223 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET /pics/frmctr.gif HTTP/1.1" 200 225 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "US" - - 2012-08-04 02:42:36 "GET /pics/frmcbr.gif HTTP/1.1" 200 386 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET /pics/frmcbl.gif HTTP/1.1" 200 384 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET /landscape/Light-and-Fluffy.jpg HTTP/1.1" 200 108549 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET /js/screen.js?screen=1280x1024&win=1280x871&cdi=24&java=true&shk=n&svg=n&fla=y&rp=n&mov=n&wma=y&pdf=n&uid=null&sid=null HTTP/1.1" 200 6353 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET /pics/black-and-white-photographer.gif HTTP/1.1" 200 65836 "http://www.robertchampagnephotographer.co.uk/" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
123.123.123.123 "GB" - - 2012-08-04 02:42:36 "GET /favicon.ico HTTP/1.1" 200 894 "-" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"