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
Switch to threaded view of this topic Create a new topic Submit Reply
Anonymize Fudforum [message #164823] Wed, 16 March 2011 10:43 Go to next message
alopezie is currently offline  alopezie   Germany
Messages: 106
Registered: September 2003
Karma: 1
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

Re: Anonymize Fudforum [message #164824 is a reply to message #164823] Wed, 16 March 2011 13:22 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Apparently Julian Assange (the guy form WikiLeaks) said that the Internet is the "greatest spying machine the world has ever seen" and an obstacle to free speech. This is a great procedure for admins to protect their users online identities.
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Sun Nov 24 07:26:19 GMT 2024

Total time taken to generate the page: 0.02002 seconds