In Europe there is a clear trend towards limiting the storage of IPs, as many people see them as "personal data".
Well, beside the long story behind this it is a fact that more and more websites have to do something here.
In case of Fudforum there is a simple solution by adding the following code in index.php (resp. in src/root_index.php.t to ensure to maintain if there is new code generated):
$ip = $_SERVER['REMOTE_ADDR'];
$ip = explode(".", $ip);
$_SERVER['REMOTE_ADDR'] = "".$ip.".".$ip.".".$ip.".99";
As the result the last block is replaced by a generic "99" which is - for the moment - enough in my opinion.
The other thing to be done is "old data". I did a quick sql-statement, which is roughly like the following:
update `XX_msg` set ip_addr = concat(left(ip_addr,length(ip_addr)-2),"99") WHERE right (`ip_addr`,2) > 1
Its not 100% (IP 0-9 are missing), but doing similar queries will do the job.
[Updated on: Wed, 16 March 2011 09:40]
Report message to a moderator