Flag bot, proxy, VPN, Tor and data center visits, exclude them if you want, and locate visitors with IPGeolocation.io databases on your server.
See which visits come from bots, proxies, VPNs, Tor and data centers, keep that traffic out of your reports if you want, and locate visitors with IPGeolocation.io databases stored on your own Matomo server.
Traffic quality
Many bots now run JavaScript and use normal browser names, so Matomo counts them as visitors. Their IP addresses can give them away. With an IPGeolocation.io IP Security, Residential Proxy or IP Hosting database, the plugin:
ipgeolocationTrafficType, ipgeolocationThreatScore);Traffic quality works with any location provider, so you can keep your current geolocation database.
Location
The IPGeolocation.io (MMDB) location provider fills in the country, region, city, postal code, coordinates, ISP and organization from IPGeolocation.io location, ISP, ASN and company databases. Regions come as ISO codes, so Matomo shows them without a name lookup.
Automatic updates
Enter your database key and paste the download links from your IPGeolocation.io dashboard. The key is kept in a password field that Matomo masks on its own pages. Once a day the plugin asks IPGeolocation.io whether a new release is out, downloads only then, checks every file against its checksum, and switches to the new files without interrupting tracking. You can also copy the files into the database folder yourself.
Privacy
All lookups run on your Matomo server. Visitor IP addresses are not sent to IPGeolocation.io or anyone else.
Requirements
core:archive) or your own cron job running ./console ipgeolocation:update-databases.plugins/ must be named IPGeolocation. On activation Matomo shows Database Upgrade Required, because the plugin adds two columns to the visits table: confirm it. On a large database, run ./console core:update from the command line instead, as that Matomo page advises../console ipgeolocation:update-databases in the Matomo folder. After that, Matomo's cron job checks for new releases every day.Without download links, copy the .mmdb files into the database folder yourself (default misc/ipgeolocation in the Matomo folder). Put them directly in the folder, not in subfolders: Matomo's System Check lists unknown folders inside the Matomo folder as folders to delete.
https://database.ipgeolocation.io/v2/download/... links of your subscription are accepted; sample links are rejected. The plugin always asks for the MMDB format.
Update cycle of your subscription
Weekly (default) or Daily, as in your plan. With Daily on a weekly plan, the plugin downloads every day and only finds the same release.
Database folder
Where downloads are saved. Every IPGeolocation.io .mmdb file in this folder is used (not in subfolders). Other files, such as Matomo's own DB-IP or MaxMind databases, are skipped. Relative paths start in the Matomo folder.
Do not record visits from
Traffic types that are not recorded at all. Off by default.
Do not record visits with a threat score of at least
1 to 100, or empty for off.
Every new visit gets one traffic type. When an IP has several flags, the first type in this list wins.
Traffic type Meaning From Bot The IP is associated with bot traffic, including known good bots such as search engine crawlers. IP Security Tor A Tor network IP. IP Security Known attacker The IP has been flagged for attacks or other malicious activity. IP Security Residential proxy A home or mobile internet connection that a residential proxy network routes other people's traffic through. Traffic sent this way looks like an ordinary household visitor, so it is hard to tell apart from real visits. IP Security, Residential Proxy Other proxy An IP flagged as a proxy that is not a home or mobile connection and not a VPN. IP Security VPN A VPN exit IP. IP Security Relay The IP is associated with relay network activity. IP Security Corporate gateway A corporate or enterprise egress gateway. IP Security (version 4) Hosting A cloud, hosting or data center IP. IP Security, IP Hosting, or the company or ASN type "HOSTING" in location databases Not flagged The installed databases have no flag for the IP. This does not mean the visit is safe. Not checked The visit was recorded without an IP Security, Residential Proxy or IP Hosting database.VPN, relay and corporate gateway come before hosting because those services run in data centers but carry real people.
The threat score is the IP Security database's score from 0 to 100. Visits whose IP has no IP Security record get no score, not 0.
Use the segments to filter any report, for example ipgeolocationTrafficType==not_flagged or ipgeolocationThreatScore>=50.
Excluded visits are not stored, so they never appear in any report. Before you switch exclusion on, look at Visitors > Traffic quality for a few days to see how much traffic each type brings.
https://database.ipgeolocation.io/v2/status, which needs no key. A database is downloaded only when its release time for your update cycle has changed..mmdb file(s) and checksum.txt. Every file must match its SHA-256 checksum and open as an IPGeolocation.io database. Otherwise the installed files stay in use and the next run tries again.security-pro-ip-security-v4--db-ip-security.mmdb, so two products with the same file name never overwrite each other. Downloads in progress are hidden files starting with .download-. To stop using a database, remove its link and delete its files../console ipgeolocation:update-databases. --force downloads every database even when no new release is out.The default database folder, misc/ipgeolocation, is inside the Matomo folder, like Matomo's own geolocation databases. On Apache, Matomo's .htaccess stops the web server from serving these files. On IIS, Matomo's web.config for misc only blocks .php files, so choose a database folder outside the web root.
On Windows, a database that a tracking request has open cannot be replaced in one step, so the update moves the old file aside under a hidden name and removes it once it is closed. This needs PHP 7.3 or newer. With PHP 7.2 on Windows, an update that runs while the file is open fails with "Cannot move the new database into place"; the old file stays in use and the next daily run installs the new one. For the same reason, uninstalling on PHP 7.2 under Windows can leave a downloaded file that was open behind; delete it by hand.
Each server that receives tracking requests needs the files. Either put the database folder on shared storage and run the update on one server, or run ./console ipgeolocation:update-databases on every server.
Measured inside Matomo 6 on PHP 8.4 with Matomo's built-in PHP database reader, the 11 GB IP Security database and a location database, over 2,000 visits: about 1 ms per visit (median; 95% of visits under 1.7 ms), most of it for opening the files, with about 6 MB of memory. On the first run, with the files not yet in the server's disk cache, the median was 1.5 ms. Files are read from disk, not loaded into memory. Installing the PHP maxminddb extension makes lookups faster.
Are visitor IP addresses sent to IPGeolocation.io?
No. Lookups only read database files on your server. The plugin connects to IPGeolocation.io only to check for and download new database releases, and those requests contain no visitor data.
Does it work on Matomo Cloud?
No. Matomo Cloud uses a fixed geolocation database, and this plugin needs database files on your own server. It is for self-hosted Matomo 5 and 6.
Does it work with Matomo for WordPress?
Not yet. Matomo for WordPress manages geolocation itself, so the IPGeolocation.io location provider cannot be selected there, and the plugin's database folder and update status need changes for WordPress. Support is planned for a later version.
Which databases do I need?
For traffic quality: IP Security (all flags and the threat score), Residential Proxy, or IP Hosting. IP Hosting is a small file of a few MB and covers the hosting type only. IP Security and Residential Proxy are about 10 to 13 GB each. For location: any IPGeolocation.io location, ISP, ASN or company database, or a bundle that combines them. You can use any combination.
Can I keep my current location provider?
Yes. Traffic quality works with any location provider. Only select IPGeolocation.io (MMDB) under Administration > System > Geolocation if you also want our location data.
What is the difference between "Residential proxy" and "Other proxy"?
A residential proxy is a home or mobile internet connection that a proxy network routes other people's traffic through. Traffic sent this way looks like an ordinary household visitor, so Matomo cannot tell it apart from real visits on its own. Other proxy covers every other IP flagged as a proxy: it is not a home or mobile connection and not a VPN. VPNs have their own type.
What does "Not flagged" mean?
The installed databases have no flag for the IP. It does not mean the visit is safe or human.
Why are some visits "Not checked"?
They were recorded before an IP Security, Residential Proxy or IP Hosting database was installed. The traffic type is set when a visit starts and is not added to older visits.
Why can't I exclude VPN users?
Most VPN, relay and corporate gateway users are real people. They are labelled, so you can segment them, but they cannot be excluded by type. If you need to, use the threat score.
Why do I see few Hosting visits on Matomo 6?
Matomo 6 comes with Tracking Spam Prevention switched on. Two of its settings, Block tracking requests from Cloud hosting providers and Block traffic requests from Cloud provider IP ranges, drop requests from cloud and hosting networks before this plugin sees them, so those visits are not stored and do not appear in any report. The first setting compares the visitor's organization from the active location provider with a list of hosting companies; when IPGeolocation.io (MMDB) is your location provider, that organization comes from our database. To keep these visits and see them as Hosting instead, turn both settings off under Administration > System > General settings. Matomo explains both settings in its FAQ: Block spam and bot traffic with Tracking Spam Prevention. On Matomo 5, Tracking Spam Prevention is an optional plugin from the Marketplace.
Why are only recent residential proxies excluded?
Residential proxy networks route traffic through home and mobile connections. An IP that was used as a proxy weeks ago is most likely just its owner. Only IPs seen as a proxy in the last 7 days are excluded.
Does Matomo's IP anonymization affect the results?
The traffic type, threat score and location use the IP that Matomo uses for geolocation. With Matomo's default privacy settings, that is the full IP address; only the anonymized IP is stored. If you turn on Also use the Anonymized IP addresses when enriching visits under Administration > Privacy > Anonymize data, the plugin looks up the anonymized address (for example 5.255.0.0), which gives less precise results. Exclusion always uses the full IP of the request, like Matomo's own spam prevention.
Where is my database key stored?
In Matomo's plugin settings, as a password field. Matomo shows it as ****** on its own pages, including the settings page and Administration > Diagnostic > Config file. Download links are stored without the key, and the plugin hides the key in every message and log line. Matomo 5.0.0 masks the key on the Config file page but its settings page still sends it to the browser inside the password field (shown as dots); Matomo 5.14.3 and 6 mask it there too.
Can I keep other MMDB files, such as Matomo's DB-IP database, in the database folder?
Yes. Files that are not IPGeolocation.io databases are skipped, and the Geolocation page lists them as not used.
The update failed. What now?
The installed files stay in use and the next daily run tries again. The reason is shown on the Geolocation page and in ./console ipgeolocation:update-databases. Typical reasons are an expired subscription or a wrong link, missing write permission on the database folder, too little disk space, and a missing PHP zip extension.
How much disk space do I need?
About twice the size of the databases, plus the download. The IP Security and Residential Proxy databases are about 10 to 13 GB each, so plan for about 30 GB free for each of them.
How fast is it?
In our tests with the 11 GB IP Security database and a location database, the plugin added about 1 ms per visit (median), most of it for opening the files, with about 6 MB of memory. Matomo's built-in MMDB reader was used; no PHP extension is needed. Location and traffic type are looked up once per visit. Exclusion is checked on every tracking request, but only when an exclusion rule is switched on.
Version
0.1.0
License
Keywords
geolocation, proxy, bot-detection, vpn, tor, traffic-quality, ipgeolocation, mmdb
Last Updated
Dec 1st 2026
Requirements
Matomo >=5.0.0-b1,<7.0.0-b1
Matomo 5.x, Matomo 6.x
Downloads
0
Changelog
Support
View and download this plugin for a specific Matomo version: