title: How to prevent direct access to CSS and JS files
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6335644/how-can-i-block-direct-access-to-my-javascript-files">How can I block direct access to my JavaScript files?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a folder and inside it there are around five more which looks like following:</p>
  
  <pre><code> 1.asset(folder)
         1.1 css (subfolder)
                1.1.1 style.css (file)
         1.2 javascript (subfolder)
                       1.2.1 validation.js (file)
   // goes on like this
  </code></pre>
  
  <p>Now my question is how to prevent my css to appear when any user hits - my_base_url/asset/css/style.css on the browse?</p>
  
  <p>I tried blank index.html but it doesn't work. I also tried using "deny from all" .htaccess file but in this case when I load my website it doesn't find the CSS.. </p>