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 a whois feature #20111

Open
mattmary opened this issue Dec 15, 2022 · 5 comments
Open

Add a whois feature #20111

mattmary opened this issue Dec 15, 2022 · 5 comments
Labels
c: New plugin For features that probably will not be added to Matomo, but could be implemented as plugins. Enhancement For new feature suggestions that for example enhance Matomo's cabapilities..

Comments

@mattmary
Copy link
Contributor

One of our plugin users asked us if he could get a whois integration in Matomo

Summary

Otherwise, he has to copy and paste the IP in a term.
Maybe it could be a plugin which parse the generated content looking for IPs and add this feature?

Your Environment

  • Matomo Version: 4.13.0
  • PHP Version:
  • Server Operating System:
  • Additionally installed plugins:
@mattmary mattmary added Enhancement For new feature suggestions that for example enhance Matomo's cabapilities.. To Triage An issue awaiting triage by a Matomo core team member labels Dec 15, 2022
@mmokrejs
Copy link

Ideally a mouse hover() over the IP address shown in "Visitors" -> "Visits log" would show parsed WHOIS info for the network and also simple ip2hostname translation. Somes either of the two is too generic and useless.

You could even show both parsed text values underneath the IP address, that woud be even better as one can search for it using "Select a segment of visits:", would that support a REGEXP search or at least a substring search or .startswith() or .endswith() conditionals. Currently only mathematics operators are allowed ... for the Visitor IP cases I tried at least.

BTW, am on PHP 7.4.

@sgiehl
Copy link
Member

sgiehl commented Dec 19, 2022

This might be similar or even a duplicate of #3889.
Personally I think this might be a very rare use case, as the majority of Matomo users are using the IP Anonymization, which makes it impossible to fetch this data afterwards. It would though be needed to do that prior to anonymizing the IP, which would make the tracking requests slower, as it needs to send out whois requests before storing any data.
I don't think this is something that might come to core soon. Nevertheless it should be possible to develop a custom plugin for this.

@sgiehl sgiehl added c: New plugin For features that probably will not be added to Matomo, but could be implemented as plugins. and removed To Triage An issue awaiting triage by a Matomo core team member labels Dec 19, 2022
@mmokrejs
Copy link

mmokrejs commented Dec 22, 2022

I do not know about your experience but I always inspected the Apache logs before Wordpress and similar tools arose. Definitely, it is disappointing one cannot do a simple filtering search using IP address ranges using a wildcard or even a substring search.

The hostname and whois queries could be done later by some batch "overnight" and then the IP address zapped. Why do you need to do all the queries before an entry is added to the logs? Isn't it in an editable database?

Seems like I should leave Matomo. I just inspect the Visits log and that's it. And these simple additions are simply missing.

@sgiehl
Copy link
Member

sgiehl commented Dec 23, 2022

@mmokrejs That would need to be done upfront, as Matomo can be configured to anonymize IPs. If that is the case, the ip is stored anonymized in the database, which would make it impossible to work with the IP later.
It seem you don't use IP anonymization, in that case it would for sure also be possible to do that later.

@mmokrejs
Copy link

mmokrejs commented Dec 23, 2022

@sgiehl Yes, I do not use IP anonymization so it can be done in some batches or another thread. Still I think the anonymization could happen before the IP is shredded so the freature could be available even to users using IP anonymization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: New plugin For features that probably will not be added to Matomo, but could be implemented as plugins. Enhancement For new feature suggestions that for example enhance Matomo's cabapilities..
Projects
None yet
Development

No branches or pull requests

4 participants