title: deny direct access to a folder and file by htaccess
body: <p>Here is the scenario:</p>
  
  <ul>
  <li>There is a <code>index.php</code> file in root folder</li>
  <li>some files are included in <code>index.php</code> which are in the <code>includes</code> folder.</li>
  <li>1 other file (<code>submit.php</code>) is in the root folder for form submit action.</li>
  </ul>
  
  <p>I want to restrict direct user access to the files in <code>includes</code> folder by htaccess. also for <code>submit.php</code>. But include will work for <code>index.php</code> file. 
  Like, if user types <code>www.domain.com/includes/somepage.php</code>, it will restrict it (may be redirect to a error page).</p>