No IP Plugin: removes the IP address of a visitor before writing to the DB #1168

anonymous-piwik-user opened this Issue Feb 22, 2010 · 7 comments


None yet
3 participants

In some european countries like France or Germany, it is not allowed to save the IP address of a visitor (due to data privacy laws). This plugin overwrites the IP of a current visitor with zero.

How to install

  • download the plugin
  • unzip it into the plugins directory
  • activate it
    Attention: If you're using other plugins like GeoIP, make sure that this plugins runs at last, otherwise GeoIP can't work. To check the order, look in your config/config.ini.php. In the section [NoIpPlugin must be last. It should look like this:[BR]
    Plugins_Tracker[= Provider[BR]
    Plugins_Tracker[= GeoIP[BR]
    Plugins_Tracker[= NoIpPlugin[BR]

Keywords: IP data privacy

Attachment: No IP Plugin files


mattab commented Feb 22, 2010

You have a good point that plugins should execute in given orders. I created to ticket to improve the hooks functionnality: #1169

Attachment: NoIP-Plugin v 0.2

Version 0.2 uses the Tracker.saveVisitorInformation hook, so order of plugins is not important any more.


robocoder commented Feb 28, 2010

Do you plan to continue developing this plugin? One idea is to add a table lookup (by country) that specifies the number of octets to mask (vs hard-coded at 2) for visitors from that country (vs everyone). This would require some research as I don't know of a list of all countries with such privacy rules. Such a list would also be subject to change, e.g., the court in France recently ruled that IP addresses are not considered personal information.

Otherwise, let us know if we should close this ticket, as it somewhat dupes #692.

This ticket can be closed.
I'm glad to see that it's implemented in [1877].
Current privacy rules in countries like Germany or France are unstable and may change in the near future. I think the effort of making the plugin country specific is not worth the benefit.


robocoder commented Feb 28, 2010


@anonymous-piwik-user anonymous-piwik-user added this to the Piwik 0.5.5 milestone Jul 8, 2014

This issue was closed.

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