title: Allow server to run cron jobs but block access to normal user with .htacess
body: <p>have a cron job that is located in a folder in the normal directory.</p>
  
  <p>I am trying to not allow access to this file by anyone else EXCEPT my server for running the cron job.</p>
  
  <p>I tried:</p>
  
  <pre><code>order deny,allow
  deny from all
  allow from 127.0.0.1
  </code></pre>
  
  <p>But no luck. I have gone down the root of putting the cron job outside the web root but i could not get it to run no matter what me and my host tried.</p>
  
  <p>Thanks.</p>