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 | 406 Comments »

406 Responses to “phpBB force login hack”

  1. commercial excavation companies Says:
    December 15th, 2025 at 10:06

    With thanks. I value it.

  2. Lehi plumber Says:
    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

  3. ufa100 Says:
    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!

  4. лєнта транспортерна Says:
    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 лєнта транспортерна

  5. Vicente Says:
    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?

  6. Seth Says:
    December 22nd, 2025 at 03:06

    bookmarked!!, Ilove your web site!

Comments