Securing Joomla extensions

From Joomla! Documentation

Hi. I have a wrapper page linked to a menu item in my Joomla! site (1.5.9 version). The link in menu item is

// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );


// no direct access
defined('_JEXEC') or die('Restricted access');

and calling the page from the menu item in Joomla! I have 'Restricted Access' message.

I had read this tutorial but... actually I'm not able to protect correctly the php code inside the wrapper page. Asking for your help. Let me start from somewhere.. thanks in advance.
(Dangerfield 01:11, 28 February 2009 (UTC))