How to block a php script from being executed directly from address bar?
<p>I  have something like this:</p>

<pre><code>$.getJSON('/scripts/commons/theScriptDoTravelBackInTime.php',{
}, function(){
  // etc.. etc...
}
});
</code></pre>

<p>Is there a way to stop the php script from being executed simply by a direct call in the
address bar like <a href="http://www.myserver/scripts/commons/theScriptDoTravelBackInTime.php" rel="nofollow">http://www.myserver/scripts/commons/theScriptDoTravelBackInTime.php</a> ?</p>

<p>Maybe outputting an echo "Hey no cheating !"</p>
