Home arrow Forum How avoid direct access to SMF?
  Welcome, Guest. Please login or register.
Did you miss your activation email?
January 09, 2009, 04:53:36 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Mambo-SMF 1.2.x
| | | |-+  How avoid direct access to SMF?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: How avoid direct access to SMF?  (Read 1941 times)
Gianni
Joomla 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
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



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 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login