I just checked the MaxMind database and it is a problem with their data: This is their range match: 194.87.128.0/18,2017370,2017370,,0,0 This is their country match: 2017370,en,EU,Europe,RU,Russia,0 Which is why Country Code to IP address matching can be unreliable. I'd suggest switching to: CC_SRC ...