« How to fix GCC 4.3’s removal of old headers | Home | Disable the jump box of the FAQ in phpBB 3 »
phpBB force login hack
By admin | December 16, 2008
To set up a private forum in phpBB, you could simply make all the forums “No Access” to guests and bots. But if they can still view your member list and profiles, that is a security leak. Here is a patch to remedy that by forcing the guest or bot to login before they can see the forum:
- Open up index.php from your phpBB installation.
- After line 25 (“$auth->acl($user->data);“), add the following code:
// Hack to disable anonymous viewing
if ($user->data[‘user_id’] == ANONYMOUS || $user->data[‘is_bot’])
{
login_box();
} else { - After the line “page_header($user->lang[‘INDEX’]);“, add the following code:
// end hack to disable anonymous viewing
}; - Re-upload index.php to your web server. Don’t forget to clear your cache and log out to see the effect.
If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!
Topics: PHP | 19 Comments »
December 13th, 2009 at 14:55
This actually works! I just wasted about 15 minutes searching around for a modification that would do the job for me, when all I needed to do was manually add a few lines of code. Thanks for the useful post.
October 30th, 2010 at 10:30
Hack again?!
February 11th, 2013 at 11:22
Great! It really works!
February 14th, 2022 at 20:25
… [Trackback]
[…] There you will find 27596 additional Info to that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
February 16th, 2022 at 04:09
… [Trackback]
[…] Read More on on that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
March 20th, 2022 at 19:20
… [Trackback]
[…] Read More here to that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
March 29th, 2022 at 20:19
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
May 10th, 2022 at 22:12
… [Trackback]
[…] Read More on on that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
May 20th, 2022 at 16:30
… [Trackback]
[…] Find More Info here to that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
June 11th, 2022 at 21:48
… [Trackback]
[…] Read More Info here on that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
July 6th, 2022 at 18:01
… [Trackback]
[…] There you can find 70097 additional Information to that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
July 16th, 2022 at 07:05
… [Trackback]
[…] Read More Info here to that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
September 20th, 2022 at 05:53
… [Trackback]
[…] Find More to that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
December 17th, 2022 at 17:59
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
December 20th, 2022 at 02:03
… [Trackback]
[…] Find More on on that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
January 4th, 2023 at 13:12
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
January 12th, 2023 at 03:17
… [Trackback]
[…] Read More on to that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
January 21st, 2023 at 18:46
… [Trackback]
[…] Find More here to that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]
February 1st, 2023 at 05:33
… [Trackback]
[…] Read More Info here on that Topic: compdigitec.com/labs/2008/12/16/phpbb-force-login-hack/ […]