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

62 Responses to “phpBB force login hack”

  1. Winnie Says:
    August 16th, 2025 at 04:29

    With thanks! Loads of facts.

  2. Carmelo Says:
    August 16th, 2025 at 19:23

    It is appropriate time to make a few plans for the long run and itt is time to be happy.
    I’ve read tuis submit and if I may just I wish to suggest you few fascinating things or advice.
    Maybe you could write subsequent articles referring to this article.
    I wish to learn more issues about it!

  3. big368 Says:
    August 17th, 2025 at 03:52

    Hi, Neat post. There’s an issue along with your website in internet
    explorer, could test this? IE nonetheless is the marketplace chief and a
    good section of other folks will miss your excellent writing due to this problem.

  4. handyman SEO Says:
    August 17th, 2025 at 05:27

    I have to thank you for the efforts you have put in writing this blog.
    I am hoping to see the same high-grade content by you in the future as
    well. In fact, your creative writing abilities has inspired me to get my own blog
    now 😉

  5. concrete SEO Says:
    August 17th, 2025 at 07:10

    Very nice article, totally what I wanted to find.

  6. roofing SEO Says:
    August 17th, 2025 at 08:47

    Very nice post. I just stumbled upon your weblog and wished to say that I’ve truly enjoyed surfing around your blog posts.
    In any case I’ll be subscribing to your feed and I hope you write again very soon!

  7. Joe Says:
    August 17th, 2025 at 11:36

    I do agree wih aall the ideas you have introduced to your post.
    They’re really convincing and will definitely work. Still, thhe posts are too short for novices.
    Could you please prolong them a biit from next time?

    Thanks foor the post.

  8. fence company Colorado Springs Says:
    August 17th, 2025 at 16:49

    This is a topic which is close to my heart… Thank you!
    Where are your contact details though?

  9. zoom官网 Says:
    August 17th, 2025 at 18:35

    Wonderful beat ! I wish to apprentice while you amennd your web
    site, how can i subscribe for a blog web site? The account helped me a acceptable deal.
    I had been tiny bit acquainted of thhis your broadcast offered brught clear idea

    Also visit my homepage … zoom官网

  10. fencing companies Colorado Springs Says:
    August 17th, 2025 at 19:06

    Hello there! This post couldn’t be written any better!
    Reading this post reminds me of my old room mate!
    He always kept chatting about this. I will forward
    this post to him. Pretty sure he will have a good read.
    Many thanks for sharing!

  11. signal Says:
    August 17th, 2025 at 23:19

    Wonderful beat ! I wish to apprentice while yyou
    amend your site, how can i subscribe for a blog site?
    The account helped mme a acceptable deal. I had been tiny bit
    acquainted of this your broadcast provided bright clear concept

    Review myy blog; signal

  12. SEO for contractors Says:
    August 18th, 2025 at 01:13

    This design is wicked! You most certainly know how to keep a reader entertained.
    Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Fantastic job.
    I really loved what you had to say, and more than that, how you presented it.
    Too cool!

Comments