GDPR Solution
-
We came up with a solution to encrypt the IPs in the Database and to return a hashed value in the backend output to make Wordfence GDPR Compliant. It’s just a basic variant, where the backend-output of the last 2 bytes are hashed (not xed or smth). It still looks like the real deal, but if you compare your actual ip adress you will see.
`wp-content/plugins/wordfence/lib/wfUtils.php
public static function inet_pton($ip) {
// convert the 4 char IPv4 to IPv6 mapped version.
$pton = str_pad(self::hasIPv6Support() ? @inet_pton($ip) : self::_inet_pton($ip), 16,
“\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\x00\x00”, STR_PAD_LEFT);
//ahn
$pton = substr($pton,0,14).substr(hash(‘md5’,$pton,true), 0,2) ;
///ahn
return $pton;
}`
- The topic ‘GDPR Solution’ is closed to new replies.