Feature: #84053 - API to anonymize IP addresses
See forge#84053
Description
A new API has been introduced which can be used to anonymize IP addresses. This shall help to comply with data protection and privacy laws and requirement.
\TYPO3\
If $mask
is set to null (default value), the setting $GLOBALS
is taken into account.
The following options for $mask
are possible:
0
: The anonymization is disabled.1
: For IPv4 addresses the last byte is masked. E.g.192.
is transformed to168. 100. 10 192.
.168. 100. 0 - For IPv6 addresses the Interface ID. E.g.
2002:
is transformed to6dcd: 8c74: 6501: fb2: 61c: ac98: 6bea 2002:
6dcd: 8c74: 6501::
2
: For IPv4 addresses the last two bytes are masked. E.g.192.
is transformed to168. 100. 10 192.
.168. 0. 0 - For IPv6 addresses the Interface ID and SLA ID. E.g.
2002:
is transformed to6dcd: 8c74: 6501: fb2: 61c: ac98: 6bea 2002:
6dcd: 8c74::
The default value for $GLOBALS
is 1
!
Impact
The core uses this API whenever IP addresses are stored, this includes:
- Indexed Search uses the new setting for its search statistics.