title: How to make file only accessible by JQuery .load
body: <p>I have written a php file, but I only want to have it accessible by JQuerys <code>.load</code> function. </p>
  
  <p>So on the one page I use <code>.load</code> to include the content of the php file in another file, but when I directly move to the url of the php-file I load, it works as well, but I don't want that..</p>
  
  <p>My Code for the <code>load</code> is:</p>
  
  <pre><code>$('#loader').load('secretFolder/secretFile.php');
  </code></pre>
  
  <p>whereas <code>loader</code> is a div for the content loaded. So when I no go to <em>example.com/secretFolder/secretFile.php</em> there should be an error, but it should the <code>.load</code> should still work.</p>
  
  <p>I tried to set like a global variable on index.php and then check for it in <code>secretFile.php</code>, but that didn't work.</p>
  
  <p>Please help...</p>