title: How can I block direct access to my JavaScript files?
body: <p>I use Minify to minify and cache all my script requests. <strong>I only want my users to be able to access the minified versions of the JavaScript files.</strong></p>
  
  <p>Minify lies at <code>www.example.com/min</code> and my scripts are at <code>www.example.com/scripts</code>. How can I block direct access to <code>doc_root/scripts</code> which is where my unminified JavaScript files lie. I'd rather not put them out of the document root but it's an option.</p>
  
  <p>Please note that I'm using Zend Framework, so the actual root of my application is shifted to <code>www.example.com/public</code>. An htaccess file handles the rewrite.</p>