Compdigitec Labs

« | Home | »

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:

  1. Open up index.php from your phpBB installation.
  2. 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 {
  3. After the line “page_header($user->lang[‘INDEX’]);“, add the following code:
    // end hack to disable anonymous viewing
    };
  4. 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 »

310 Responses to “phpBB force login hack”

  1. https://www.beta.lyricchamp.com/promokody-melbet-stavki-2025/ Says:
    November 15th, 2025 at 11:18

    Играю в обеденный перерыв, поднял 5к

    https://www.beta.lyricchamp.com/promokody-melbet-stavki-2025/

  2. https://conf.epdaonline.org/melbet-2025-obzor-bk-vebcity-ru/ Says:
    November 15th, 2025 at 11:46

    Играю в метро, мобильный интернет тянет

    https://conf.epdaonline.org/melbet-2025-obzor-bk-vebcity-ru/

  3. https://sezonbahce.com/melbet-zerkalo-rabochee-seychas-2025.html Says:
    November 15th, 2025 at 12:23

    Выводил 80к на QIWI — без комиссии

    https://sezonbahce.com/melbet-zerkalo-rabochee-seychas-2025.html

  4. https://unboxedexpestg.wpengine.com/bonusy-melbet-2025-obzor-aksiiy/ Says:
    November 15th, 2025 at 17:57

    Джекпот в Mega Moolah — 12 млн, кто-то
    сорвал

    https://unboxedexpestg.wpengine.com/bonusy-melbet-2025-obzor-aksiiy/

  5. https://ashwajalajit.com/2025/10/20/melbet-bonusy-pri-registracii-2025/ Says:
    November 15th, 2025 at 18:23

    Играю третий месяц, в плюсе на 87к

    https://ashwajalajit.com/2025/10/20/melbet-bonusy-pri-registracii-2025/

  6. home care Greensboro NC Says:
    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!

  7. In-home senior care Lexington NC Says:
    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.

  8. https://eric.eepsea.org/?p=95220 Says:
    November 16th, 2025 at 00:47

    Турнир по слотам Pragmatic, призы 500к

    https://eric.eepsea.org/?p=95220

  9. Alta survey Utah Says:
    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.

  10. vinyl flooring Denver Says:
    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!

Comments