« 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 | 310 Comments »

November 15th, 2025 at 11:18
Играю в обеденный перерыв, поднял 5к
https://www.beta.lyricchamp.com/promokody-melbet-stavki-2025/
November 15th, 2025 at 11:46
Играю в метро, мобильный интернет тянет
https://conf.epdaonline.org/melbet-2025-obzor-bk-vebcity-ru/
November 15th, 2025 at 12:23
Выводил 80к на QIWI — без комиссии
https://sezonbahce.com/melbet-zerkalo-rabochee-seychas-2025.html
November 15th, 2025 at 17:57
Джекпот в Mega Moolah — 12 млн, кто-то
сорвал
https://unboxedexpestg.wpengine.com/bonusy-melbet-2025-obzor-aksiiy/
November 15th, 2025 at 18:23
Играю третий месяц, в плюсе на 87к
https://ashwajalajit.com/2025/10/20/melbet-bonusy-pri-registracii-2025/
November 15th, 2025 at 18:30
I’m really enjoying the design and layout of your blog. It’s a very easy on the eyes which
makes it much more enjoyable for me to come here and visit more often. Did you hire out a
developer to create your theme? Excellent work!
November 15th, 2025 at 21:21
This page truly has all of the information and facts I wanted about this subject and didn’t know
who to ask.
November 16th, 2025 at 00:47
Турнир по слотам Pragmatic, призы 500к
https://eric.eepsea.org/?p=95220
November 16th, 2025 at 08:34
I think the admin of this site is actually working hard in favor of
his site, since here every information is quality based data.
November 16th, 2025 at 14:36
Hi there would you mind letting me know which
hosting company you’re utilizing? I’ve loaded your blog in 3
completely different browsers and I must say this blog loads a lot faster then most.
Can you recommend a good hosting provider at a honest price?
Kudos, I appreciate it!