How to make sure a human doesn't view the results from a PHP script URL?
<p>How to make sure a human doesn't view the results from a PHP script URL?</p>

<p>Recently when viewing the source of a site that was making an AJAX call, I tried to follow the link in the browser</p>

<pre><code>www.site.com/script.php?query=value
</code></pre>

<p>Instead of getting the result I expected to see, I saw a message stating only scripts should view that page.</p>

<p>How do you restrict a script to only allowing a script to access it? </p>

<p>UPDATE:</p>

<p>here is the page <a href="http://qpoit.com/marcofolio%5Fdemo/apple%5Fsearch/rpc.php?queryString=apple" rel="nofollow">DEMO page</a></p>
