[OzzModz] Country Flags by IP Address

[OzzModz] Country Flags by IP Address 2.2.1 Patch Level 3

No permission to download
Compatible XF 2.x versions
  1. 2.2
You may not redistribute the addon in whole or in part.
Visible branding
Shows what country your members are in based on their current IP address.

This add-on uses MaxMind's GeoLite2-Country database and MaxMind's DB Reader. This add-on does not require mod_geoip to be installed on your server.

Note: Not compatible with the XenForo Cloud. It will not work on XF cloud hosted sites!


  • Works with both IPV4 and IPV6 IP addresses
  • Select what user groups can view flags
  • Select where the flags are displayed.
  • Automatic database updates
Flag view permissions are no longer in add-on options, they are in user/user group permissions.​

All users of this add-on must obtain their own license key from MaxMind and enter it in the add-on options.

To obtain a license key, see this:
You can sign up by following this link,
This add-on connects to the MaxMind database site to download the MaxMind database when you enter your license key in the add-on options. If it is unable to connect to MaxMind, the add-on will not function until it is able to connect and download the database. THERE IS A DELAY between the time you get your key and when the key becomes active. If you enter your key before it's active, the database will not be downloaded, your key will not be saved and an error will be thrown.

First release
Last update


4.64 star(s) 11 ratings

More resources from Ozzy47

Latest updates

  1. [OzzModz] Country Flags by IP Address 2.2+ Update 2.2.1 Patch Level 3

    2.2.1 Patch Level 3: - Fix: check $user is not array in member_list_macros template modification
  2. [OzzModz] Country Flags by IP Address 2.2+ Update 2.2.1 Patch Level 2

    2.2.1 Patch Level 2: - Fix: avoid "call canViewCountryFlag() on null" in template modification
  3. [OzzModz] Country Flags by IP Address 2.2+ Update 2.2.1 Patch Level 1

    2.2.1 Patch Level 1: Fixed incorrect flag display condition

Latest reviews

A simple thing that, especially for my community, adds so much to it. The users like being able to see where the members are from. The only issue is (and it's not something that can really be controlled by this add-on) is when those users are using VPN's.
Yeah, unfortunately VPN’s cause false flags to be shown. :( thanks for leaving a review.
Could not get this addon to work. Even with a license key from Maxmind, waiting 24 hours, double-checking the key was valid by testing it manually, re-running the cron entry to make sure the data was downloaded, setting usergroup permissions, etc. Just produces a white page with an "unexpected error occured" for anyone who should be able to see flag info. Nothing in server log to debug why this happens, either.
Excellent addon which instantly allows us to compare the given location of a new member with their actual country. If they don't match, chances are the member is a spammer. Also we can instantly tell whether someone is from a high spam source like India.
Very useful and visually appealing additions to the forum. If you have a multi-national community, then this addon helps you to categorize the people according to their location. Using it since day 1 and no complaints. Thank you.
Fantastic addon. Been using the XF1 version for several years and now finally migrating, glad to see this was updated.

My only gripe is that like some others I really feel like the default sprites look dated and changing them is quite a hassle. I've replaced them with famfamfam's flags myself but there are plenty of other alternatives if you do some digging.

Overall though, excellent work!
Love this add-on. Good job for developing it and introducing it to Xenforo. It is very beneficial and works very well.
Useful add-on. I would recommend including an option to use country flag emojis instead of a sprite sheet though. They're much higher resolution.
Works very nice in my forum. I want to thanks Snog for keeping this free. Its a good add-on for Xenforo 2.
I didn't realize all the work put into this and how it worked until reading the xenForo 1.x version. This will help my moderators spot spam and trolls.
Excellent support too. Snog helped install and diagnose a server issue.
I’ve used this on v1 and now v2 of xenforo. It’s a must for those with a global audience. I’m surprised it’s free to be honest. I’m more surprised it’s not built within xenforo itself
Top Bottom