Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add geolocation-based filtering #19

Open
stklcode opened this issue Jan 8, 2020 · 0 comments
Open

Add geolocation-based filtering #19

stklcode opened this issue Jan 8, 2020 · 0 comments

Comments

@stklcode
Copy link
Owner

stklcode commented Jan 8, 2020

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant