title: Disable url access of files
body: <p>I am using WAMP and hosting the PHP files locally.</p>
  
  <p>Assume i have these two files.</p>
  
  <p><strong>customer.php</strong>- A form to add customer details</p>
  
  <p><strong>recordCustomer.php</strong>- Connects to the database and store the information in the database(where all the processing is done)</p>
  
  <p>How do I stop a user from accessing the file <strong>recordCustomer.php</strong> by typing the file name in the address bar.</p>
  
  <pre><code>http://localhost/testing/recordCustomer.php has to be redirected and given an error message
  </code></pre>
  
  <p>However</p>
  
  <pre><code>http://localhost/testing/customer.php is allowed
  </code></pre>
  
  <p>Thank you</p>