Is there any way to prevent a .php file from being requested?
<p>I have certain files like <code>header.php</code> and <code>footer.php</code>. I would like to disable these files from being directly requested from the browser address bar. </p>

<p>If I have <code>include 'file.php'</code> in the code, then it should be included, but if it's directly requested, I don't want it to be shown since it serves no purpose. Is it possible? </p>

<p>Thanks in advance :)</p>
