Skip to content

Add geolocation-based filtering #19

@stklcode

Description

@stklcode

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/

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions