There are several php files on my php website, some of them are for the user interface, and some of them are auxiliary files (files that exchange data through the database and with each other to return the result). Now I need the user to not be able to execute auxiliary files from his direct URL.
eg mydomain.com/login.php ---------- (Interface file, must be accessible to user) mydomain.com/login_handle.php ----(Healper file, must not be accessible to user)
So, I need the user to be able to execute and view mydomain.com/login.php, but not to execute mydomain.com/login_handle.php, and login.php and handle_login.php are in communication and can talk to each other. Thanks,
Edit: Sorry, but I'm using shared hosting, and there is no folder other than public_html .
source share