title: Deny direct access to all .php files except index.php
body: <p>I want to deny direct access to all <code>.php</code> files except one: <code>index.php</code></p>
  
  <p>The only access to the other <code>.php</code> files should be through php <code>include</code>.</p>
  
  <p>If possible I want all files in the same folder.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>A general rule would be nice, so I don't need to go through all files. The risk is that I forget a file or line. </p>
  
  <p><strong>UPDATE 2:</strong></p>
  
  <p>The <code>index.php</code> is in a folder <code>www.myadress.com/myfolder/index.php</code></p>
  
  <p>I want to deny access to all <code>.php</code> files in <code>myfolder</code> and subfolders to that folder.</p>