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

September 4th, 2026 at 15:10
Truly plenty of amazing facts!
September 4th, 2026 at 20:28
Заказывали кровать Фрия, отличная мебель от производителя в Санкт-Петербурге, привезли быстро.
My homepage; http://gitea.jb1000.com:88/mluelizbeth42
September 5th, 2026 at 00:33
Отсутствие торговой наценки салонов сразу ощущается по итоговой смете.
Качественная мебель от производителя в Москве сейчас
лучший вариант.
Feel free to visit my website – https://keyhandover.in/author/andreasarledge/
September 5th, 2026 at 22:02
Рекомендую тумбы Вента, добротная мебель от
производителя в Санкт-Петербурге без переплат.
Here is my blog :: https://card.lifenlegacydigital.com/rebekahrieger6
September 6th, 2026 at 00:16
Кровать Мальта просто супер, сразу видно, что это фабричная мебель от
производителя в Санкт-Петербурге.
Also visit my blog post … https://www.jobexpertsindia.com/companies/sadvradost/
September 6th, 2026 at 13:42
The bait stations installed around the perimeter solved our mouse issue cleanly.
https://worldasset.co.th/author/characespedes/
September 6th, 2026 at 13:48
Thanks for this resource! uvprintone.com offers reliable
UV printing solutions that provide long-lasting, vibrant results for
any project.
Here is my page; UV curing technology
September 6th, 2026 at 14:25
Extremely knowledgeable staff who identified the exact species causing structural damage.
https://alljobinpakistan.com/employer/fast-pest-control/
September 6th, 2026 at 20:48
Yes! Finally someone writes about window film.
My site Window Tinting Class Near Me Reviews
September 8th, 2026 at 07:39
I have been exploring for a little for any high-quality articles or weblog posts in this sort of house .
Exploring in Yahoo I at last stumbled upon this site.
Reading this information So i’m happy to exhibit that I have
an incredibly excellent uncanny feeling I found out exactly what I needed.
I so much undoubtedly will make certain to don?t omit this
website and give it a look regularly.
September 8th, 2026 at 11:00
Does your site have a contact page? I’m having trouble locating it but, I’d like to send you an email.
I’ve got some suggestions for your blog you might
be interested in hearing. Either way, great website and
I look forward to seeing it expand over time.
September 9th, 2026 at 07:51
I’m impressed, I must say. Seldom do I encounter
a blog that’s equally educative and interesting, and without
a doubt, you’ve hit the nail on the head. The issue is
something which too few folks are speaking intelligently
about. I’m very happy that I came across this in my search for something regarding this.