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 :: Unread Messages :: Show 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: 92
Registered: September 2003
Karma: 1
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 = $_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 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: 3631
Registered: December 2004
Karma: 17
Senior Member
Administrator
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: Mon Dec 11 21:45:07 EST 2017

Total time taken to generate the page: 0.00708 seconds