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

Allow fuzzier IP matching #57

Open
rcsheets opened this issue Sep 23, 2016 · 0 comments
Open

Allow fuzzier IP matching #57

rcsheets opened this issue Sep 23, 2016 · 0 comments

Comments

@rcsheets
Copy link

In order to better preserve user privacy, I would like to use this plugin but have it store only partial IP addresses rather than the entire IP.

One way to do this would be to store and match on just the first 24 bits of an IPv4 address, or first 60 bits of an IPv6 address. The prefix length could be configurable.

Another possibility would be to look up the origin AS or netblock and match on that.

Finally, a match on a geoip lookup could also work. This seems more complex than either of the above, but would allow for notifications that might make sense to more users. For example, a notification of unusual activity would make more sense to most users if it included the city from which the unusual activity originated.

Do any of these approaches sound interesting? I'd be happy to collaborate on this and contribute code provided we can agree on a good approach, and if this is a feature you'd consider merging.

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

No branches or pull requests

1 participant