PhpBB
From Cship
phpBB is a very popular free open source forum/board software written in PHP.
Contents |
[edit] Anonymity
This instructions show how to disable the logfiles of the phpBB script on the webserver. With implementing the code, a webmaster can offer his users to surf anonymously on his website.
Make a backup of your websites and databases. Connect to your web hoster with a FTP client. Browse to the directory in which you have stored phpBB.
[edit] phpBB 2.x
Open the file "common.php" and search for:
$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( (
!empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : getenv('REMOTE_ADDR') );
Replace it with:
$client_ip = "0.0.0.0";
[edit] phpBB 3.x
Change to the subdirectory "includes". Open the file "session.php" and search for:
$this->ip = (!empty($_SERVER['REMOTE_ADDR'])) ? htmlspecialchars($_SERVER['REMOTE_ADDR']) : '';
Replace it with:
$this->ip = '0.0.0.0';
Check now if your board still works properly. Otherwise restore your file backup.

