@anonymous-piwik-user opened this Issue on January 25th 2013

Hello everybody,

I noticed that the anonimzeIP plugin does not anonymize/mask IPv6 addresses.

The plugin should mask the last 3 bytes of an IP address.
It works well for IPv4 addresses, but not for IPv6 addresses.
The newest (10.0.1) version of piwik was used.

Maybe someone could take a look at this plugin.


Sebastian Neef aka gehaxelt

Keywords: Anonymize IP

@anonymous-piwik-user commented on February 8th 2013
@mattab commented on February 7th 2013 Owner

Can you post a screenshot showing the problem, ie. what is your IP and what is the anonimized IP ?

@anonymous-piwik-user commented on February 8th 2013


I'm not connected to the internet via IPv6 so I can't give you the diff between real IPv6 and anonymized IPv6.

I attached a screenshot of IPv4 and IPv6 addresses.

I hope I could help somehow.



@anonymous-piwik-user commented on April 13th 2013

This is really a problem, in Germany it is not allowed to store the IP addresses.
For IPv4 addresses it is working with the plugin anonymize IP. THis should be extended ASAP to include support for IPv6.

@anonymous-piwik-user commented on September 3rd 2013

In c072a0e5911b544890a39e86c9efe024bb247577: Extend AnonymizeIP to properly mask IPv6 addresses.

maskLength is now interpreted as "mask level" (0-4) and determines the number of bits to be masked.

Level IPv4 IPv6
0 0 0
1 8 64
2 16 80
3 24 104
4 32 n/a

fixes #3710

@anonymous-piwik-user commented on September 3rd 2013

In 2c378a2f2bb55b81b8de6724d8fa87036fb3b4ac: Fix test, simplify

refs #3710

@mattab commented on October 16th 2013 Owner

Great fix!

This Issue was closed on October 16th 2013
Powered by GitHub Issue Mirror