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 useful or helpful, please help Compdigitec by spreading the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: PHP | 3 Comments »

3 Responses to “phpBB force login hack”

  1. Adam Parkzer Says:
    December 13th, 2009 at 2:55 pm

    This actually works! I just wasted about 15 minutes searching around for a modification that would do the job for me, when all I needed to do was manually add a few lines of code. Thanks for the useful post.

  2. Clienlyinnope Says:
    March 5th, 2010 at 10:26 am

    This is the compiled list of godaddy coupons our entire IT group uses.

    Godaddy domain coupons:
    RAD7 : 30% Off .com renewal domains, as many domains as you want
    RAD5 : 10% Off order
    RUSH3 : $7.49 domains
    RUSH1 : 10% off any order

    Godaddy hosting coupns:
    RUSH20 : 20% Off Hosting (1,2,3 yr accounts)
    CHN1 : 10% Off Monthly hosting accounts

    Based on order size:
    RUSH2 : $5 off order of $30 or more
    MOPOFF : $10 off order of $40 or more
    MOP15 : 15% off order of $75 or more

    Unique coupons:
    BUCKSSL : $12.99 SSL ( 56% Off )
    AUCTION12 : 50% Off Auction accounts

    These coupons never expire so print them.

    The only one we cannot find is a .net discount, anyone got one?

  3. Dyerensecurne Says:
    March 9th, 2010 at 11:12 pm

    How can I make myresume stand out in the crowd and land a job interview when so many capable people are unemployed and applying for the same positions I am applying for? I feel like employers don’t even have time to review all of the applications they must be getting for their openings…any advice?

Comments