Securing MBoard

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
wsipple
Posts: 2
Joined: Fri Mar 26, 2010 2:28 am

Securing MBoard

Post by wsipple »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Godaddy.com hosts the board..
Everything is working on my MBoard 13 but I would like to secure my board using a php script... <?php
require_once('auth.php');
?>

Where should I place this script to make it lock down the board?

Thank you for your help in this matter
Klemen
Site Admin
Posts: 10114
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I have no idea what your auth.php does so I can't really help here nor can I support third party code integration.

By securing you mean password-protecting it? It may be easier to just password-protect the mboard directory using htaccess for example:
http://www.google.com/search?q=htaccess ... rd+protect
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
wsipple
Posts: 2
Joined: Fri Mar 26, 2010 2:28 am

Securing MBoard

Post by wsipple »

Thank you for your help.. I am not trying to do anything more than lock down the board from public access... I want to have only members be able to look at the board and post..

my auth.php is very simple

<?php
//Start session
session_start();

//Check whether the session variable SESS_MEMBER_ID is present or not
if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) == '')) {
header("location: access-denied.php");
exit();
}
?>

I realize it is integrating a small bit of code, but it is only password and user id checking..

Thanks again for your help.

I am not sure how to use HTACCESS, but I will look it up...
Locked