stklcode / statify-blacklist

Filter extension for the Statify WordPress plugin
https://wordpress.org/plugins/statify-blacklist/
GNU General Public License v2.0
2 stars 1 forks source link

Add geolocation-based filtering #19

Open stklcode opened 4 years ago

stklcode commented 4 years ago

Feature request from WP support forums: https://wordpress.org/support/topic/great-feature-request/

Introduce a feature to white- or blacklist requests from certain countries from tracking.

To achieve this, a geolocation service has to be integrated and processed during live filter - cron cleanup is not possible here because the IP is not saved.

Such service might be MaxMind GeoIP2 which provides a nice PHP API1. Keep in mind the latest changes for database usage2.

[1] https://maxmind.github.io/GeoIP2-php/ [2] https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/