00400: Alternatives to recording IP address

Summary: Alternatives to recording IP address
Created: 2005-03-21 03:22
Status: Closed - replied
Category: Feature
From: patrick?
Priority: 3
Version: 2.0
OS: debian/apache1.3/php4

Description: Haven't found an answer elsewhere to this privacy option: Are there alternatives to recording IP addresses in pmwiki? Can recording of IP addresses be turned off, e.g., if logins are required?

I can provide this as an option if desired. --Pm

Thanks! That would be great. What are the next steps? --Patrick

Found what looks like an easy direct solution, just inserted blank values for the following in pmwiki.php:

$new["host:$Now"] = ""; # $_SERVER['REMOTE_ADDR'];
$page['host'] = ""; # $_SERVER['REMOTE_ADDR'];


I believe it is better to store IP addresses, but to allow administrators to hide them in the page history. This way, in case of problems like vandalism, it will be possible for an administrator to review them. --Petko July 12, 2009, at 08:33 PM

It is possible to store IP addresses, but hide them from the history. To do so, you can set such lines into local/config.php:

$EnablePostAuthorRequired = 1; # require an author name (optional)
$DiffStartFmt = "<div class='diffbox'><div class='difftime'>\$DiffTime
 \$[by] \$DiffAuthor - \$DiffChangeSum</div>";

Then, the IPs will not appear. You can temporarily remove the lines to see the IPs in case of vandalism. --Petko February 03, 2010, at 08:24 PM

Note, the $EnablePostAuthorRequired line is optional, if set, all users must provide author names; if not set, a user who didn't fill the Author field, will have his IP address displayed in the page history. --Petko