title: .htaccess deny all except allow javascript access as well
body: <p>I currently am blocking all access to one directory in on my server using .htacces</p>
  
  <pre><code>deny from all
  </code></pre>
  
  <p>I use php for all my coding, except at one point I use javascript to play mp3s from my secured directory. But this is blocked by the .htaccess</p>
  
  <p>Is there anyway to allow the javascript access to the directory but still block people from typing in the url and gaining access to the files.</p>
  
  <p>Sorry, I'm new to .htaccess and can't figure it out.</p>
  
  <p>Thanks.</p>