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 :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Anonymize Fudforum [message #164823] Wed, 16 March 2011 06:43 Go to next message
alopezie is currently offline  alopezie   Germany
Messages: 106
Registered: September 2003
Karma: 1
Senior Member
add to buddy list
ignore all messages by this user
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 = 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 09:40]

Report message to a moderator

Re: Anonymize Fudforum [message #164824 is a reply to message #164823] Wed, 16 March 2011 09:22 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 27
Senior Member
Core Developer
add to buddy list
ignore all messages by this user
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.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Tue Aug 09 07:34:51 EDT 2022

Total time taken to generate the page: 0.00743 seconds