Disable url access of files

pedehaglos

New Member
I am using WAMP and hosting the PHP files locally.Assume i have these two files.customer.php- A form to add customer detailsrecordCustomer.php- Connects to the database and store the information in the database(where all the processing is done)How do I stop a user from accessing the file recordCustomer.php by typing the file name in the address bar.\[code\]http://localhost/testing/recordCustomer.php has to be redirected and given an error message\[/code\]However\[code\]http://localhost/testing/customer.php is allowed\[/code\]Thank you
 
Top