FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Anonymize Fudforum (Strip IP)  () 1 Vote
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Anonymize Fudforum [message #164823] Wed, 16 March 2011 10:43 Go to previous message
alopezie is currently offline  alopezie   Germany
Messages: 106
Registered: September 2003
Karma:
Senior Member
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[0].".".$ip[1].".".$ip[2].".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.


Alopezie.de - das Forum zum Thema Haarausfall

[Updated on: Wed, 16 March 2011 13:40]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Previous Topic: "Hey You! Register to start posting" plugin
Next Topic: Problem with fudapi.inc.php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 22:07:50 GMT 2024

Total time taken to generate the page: 0.04139 seconds