It would be useful to be able to check for specific IP addresses either explicitly or that match a given subnet within the visitor log for some users. I'm not sure if the best route would be via a plugin or within the existing core.
I believe matching a specific IP address is already covered by the segmentation API.
For subnets, one would need to convert the subnet to a range, to use >= and <= in the segment expression. (Can refactor some code in the SitesManager API.)
Hey vipsoft. Sounds like you're on top of it. Thanks for considering the idea.
It already works, you can search for IP in a range by building the range yourself:
&segment=visitIp>22.214.171.124,visitIp<126.96.36.199 will match the IP 188.8.131.52
Hey Matt. I'm not sure what you mean. Is that available through the GUI?
Not through the UI, yet, because if we add this, in fact we want to add the full set of filters that are available (http://piwik.org/docs/analytics-api/segmentation/ ) not only the IP. This is covered in: #1839 (first point)
this is possible to filter visitors via the API segmentation feature: http://piwik.org/docs/analytics-api/segmentation/
Excellent. Looks like the Segment API is a more comprehensive and flexible approach.
In , added SitesManager API getIpsForRange($ipRange).
Anthon, visitIp>184.108.40.206,visitIp<220.127.116.11 doesn't work anymore with 1.4-rc2 - probably, the filter applied is not expecting ipv4? Now, when I run this on the demo, the following IP gets returned:
btw, I see that after upgrading demo to rc2, the IP 18.104.22.168 is there, but it doesn't look like a correct IP since it ends with .0 ? (IP anonymization not setup on the demo)
sorry my bad, the filter indeed works as expected in RC2!
however the question with the ip ending .0 is still valid
It seems it was a one off occurence, since all recent IPs tracked by demo look good!