Page 1 of 1

Securing MBoard

Posted: Fri Mar 26, 2010 2:34 am
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

Posted: Sat Mar 27, 2010 10:08 am
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

Securing MBoard

Posted: Sat Mar 27, 2010 12:51 pm
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...