Sorry for double posting. I accidently posted in the wrong section before:
I hope this issue has not been solved before. At least the thread i read let it unsolved or where even closed.
I found a solution which at least works for me quite well. I am obfuscating the last octet of the IP adress and have not tested if it also works when 2 octets are replaced by a 0.
The provider is determined by a php function called gethostbyaddr. It determines a hostname by an ip-adress. Big internet service providers normally have many adresses so you can assume all 255 possibilities of the last octet belong to the same provider. The only adress that normally isn’t used (as it is used for other means in the IP protocol) ist that one with a 0. My solution is not to replace the last octet with a 0 but with a 1.
Only one line of code has to be changed for that. In /plugins/AnonymizeIP/AnonymizeIP.php i replaced $ip[–$i] = chr(0); (in “applyIPMask”) with $ip[–$i] = chr(1); .
I have no idea if that works in every case. For a few tests I was able to make it worked perfectly well.
Perhapse that could be a good solution for some of you.