title: Block access to files and sub directory with .htaccess?
body: <p>I have nearly 30 php files, 4 sub directories in my directory. I want to block some php files and sub directories from user in direct viewing like  <code>http://bhavani.com/hai.php</code></p>
  
  <p>My currect <code>htaccess</code> file</p>
  
  <pre><code>## Enable Mod Rewrite, this is only required once in each .htaccess file
  RewriteEngine On 
  RewriteBase / 
  ## Test for access to includes directory
  RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /includes/ .*$ [NC] 
  ## Test that file requested has php extension 
  RewriteCond %{REQUEST_FILENAME} ^.+\.php$ 
  ## Forbid Access 
  RewriteRule .* - [F,NS,L]
  </code></pre>
  
  <p>How to do it?</p>