Ticket #1168 (closed New feature: duplicate)

Opened 2 years ago

Last modified 14 months ago

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

Reported by: martin_LE Owned by:
Priority: major Milestone: Piwik 0.5.5
Component: New Plugin Keywords: IP data privacy
Cc: Sensitive: no

Description

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 [Plugins_Tracker], NoIpPlugin must be last. It should look like this:
Plugins_Tracker[] = Provider
Plugins_Tracker[] = GeoIP
Plugins_Tracker[] = NoIpPlugin

Attachments

NoIpPlugin.zip Download (1.3 KB) - added by martin_LE 2 years ago.
No IP Plugin files
NoIpPlugin_0.2.zip Download (1.4 KB) - added by martin_LE 2 years ago.
NoIP-Plugin v 0.2

Change History

Changed 2 years ago by martin_LE

No IP Plugin files

Changed 2 years ago by matt

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

Changed 2 years ago by martin_LE

NoIP-Plugin v 0.2

Changed 2 years ago by martin_LE

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

Changed 2 years ago by vipsoft

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.

Changed 2 years ago by martin_LE

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.

Changed 2 years ago by vipsoft

  • status changed from new to closed
  • resolution set to duplicate

Ok.

Changed 22 months ago by matt

  • milestone changed from Third Party Piwik Plugins to Piwik 0.5.5

Changed 14 months ago by jackiboa

Changed 14 months ago by jackiboa

Changed 14 months ago by apang

Note: See TracTickets for help on using tickets.