Home arrow Forum
How avoid direct access to SMF?
  Welcome, Guest. Please login or register.
October 12, 2008, 10:52:33 AM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  MamboHacks.com  |  Mambo-SMF Integration 1.2.0 Support  |  Topic: How avoid direct access to SMF? « previous next »
Pages: [1] Go Down Print
Author Topic: How avoid direct access to SMF?  (Read 2036 times)
Gianni
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10


View Profile
How avoid direct access to SMF?
« on: April 12, 2005, 02:08:48 AM »

How can I avoid direct access to my wrapped SMF?
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: How avoid direct access to SMF?
« Reply #1 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
Logged
Pages: [1] Go Up Print 
Forum  |  MamboHacks.com  |  Mambo-SMF Integration 1.2.0 Support  |  Topic: How avoid direct access to SMF? « previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved.
TERMS OF USE