Forum

MamboHacks.com => Mambo-SMF Integration 1.2.0 Support => Topic started by: Gianni on April 12, 2005, 02:08:48 AM



Title: How avoid direct access to SMF?
Post by: Gianni on April 12, 2005, 02:08:48 AM
How can I avoid direct access to my wrapped SMF?


Title: Re: How avoid direct access to SMF?
Post by: cowboy on April 12, 2005, 08:17:02 AM
Code:
<?php
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false) {
    defined('_VALID_MOS') or header("Location: http://www.yoursite.com");
}
?>

put the above in the first line of your SMF index.php


Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.