title: How to restrict/forbid access to specific file types such as .js .css inside a .htaccess file?
body: <p>If the remote user knows the exact location of the file, he will still be able to access the file from a browser. How can someone find out about the location of the private file? well this doesn’t really matter too much, but he might see paths, or files, shown in a warning messages, or the files might be browsable (there is no hiding of the files in the directory indexes). So if there are ‘special files’ that you want to not be served in any case to remote users then you will have to deny access to them. But the question is HOW?</p>
  
  <p>Inside my .htaccess file in my webroot folder:</p>
  
  <pre><code>&lt;FilesMatch "\.(js|css)$"&gt;
  Order deny,allow
  Allow from all
  &lt;/FilesMatch&gt;
  </code></pre>
  
  <p>But that doesn't seems to work.. :-(<br>
  I'm using Apache 2.2</p>