title: forbid direct access to php files (MVC)
body: <p>My files are organized with the <code>MVC</code> pattern (Model, View, Controller).</p>
  
  <p>How am I supposed to protect files in these folders from direct access?</p>
  
  <p>For example, I would like to forbid user to write manually "<a href="http://VIEW/blabla" rel="nofollow noreferrer">http://VIEW/blabla</a>". Indeed, the only files which would be supposed to be accessible are outside the folders. They just call, with 'include' php function, the other files contained in VIEW, CONTROLLER and MODEL.</p>
  
  <p>If I protect these folders, when I have something like :</p>
  
  <pre><code>&lt;form action="MODEL/userCreate.php" method="post" id="form"&gt;
  </code></pre>
  
  <p>Will the code be blocked by my protection?</p>