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

December 15th, 2025 at 10:06
With thanks. I value it.
December 15th, 2025 at 10:24
It’s amazing designed for me to have a web site, which is useful
in support of my know-how. thanks admin
December 16th, 2025 at 08:06
https://ufa100.click
I absolutely love your blog and find many of your post’s to be just what
I’m looking for. can you offer guest writers to write
content to suit your needs? I wouldn’t mind publishing a post or elaborating on a lot of the subjects you
write related to here. Again, awesome site!
December 18th, 2025 at 21:08
Hello! Someone in my Facebook group shared this site with us so I came to take a
look. I’m definitely loving the information. I’m book-marking and will be tweeting this
to my followers! Fantastic blog and great style and design.
Promo: C4bjWthY7dcX8qi
Have a look at my homepage лєнта транспортерна
December 20th, 2025 at 21:38
I know this site provides quality based articles
and additional material, is there any other web page which provides these
information in quality?
December 22nd, 2025 at 03:06
bookmarked!!, Ilove your web site!
December 26th, 2025 at 22:00
Hi there! I just wanted to ask if you ever have any problems with
hackers? My last blog (wordpress) was hacked and I ejded uup losing
many monthbs of hard work due to no backup. Do you have
anyy solutions tto protect against hackers?
December 28th, 2025 at 05:01
Понравилась функция автозапуска
my blog post; vpn регистрация
December 31st, 2025 at 20:33
Ресурсы вроде unlimited coins android предлагают широкий каталог mod игр, поддерживая полную экосистему вокруг
модификаций игр. Это направление создала культуру пользователей,
которые ищут расширенные возможности без ограничений.
January 1st, 2026 at 05:51
Regards, Ample posts.
January 1st, 2026 at 13:29
À vrai dire, personnellement observe que Plinko paraît plaisant et vif. Chaque session, le jeton chute de façon imprévisible, ce qui donne l’expérience super fun. On peut voir que le mode gratuit reste idéal pour tester avant de oser du Plinko argent réel. Par ailleurs, j’ai trouvé quelques conseils utiles sur https://rentry.co/6596-plinko-en-ligne–exploration-approfondie-du-jeu-avec-avis-et-retours-sur-mobile-et-desktop, ce qui facilite à mieux anticiper le jeu et ses fonctionnalités. À mon avis les avis Plinko aident beaucoup, surtout pour ceux qui testent le jeu. Qui d’autre a testé ces versions et révéler son expérience ? Franchement, c’est addictif et je conseille de essayer.