title: Restrict file write access to directory
body: <p>Currently working on some project but having some security-issues with file writing access. </p>
  
  <p>For my website I need to restrict write access for certain directories to be set to sub-files and folders of that directory only, I was told this could be done with htaccess only, so this is what I tried:</p>
  
  <pre><code>order deny, allow
  deny from websitename.com/
  allow from websitename.com/this_directory/
  </code></pre>
  
  <p>In other words: restrict write access for this_directory to files within it and within sub-directories of it. However, this htaccess ain't working... Could anyone help me out?</p>
  
  <p>Thanks in advance, would be much appreciated!</p>
  
  <p>Best regards,
  Skyfe.</p>