I've got two questions about php security with iOS App
Question 1 :
I build a iOS application and this app call php files but I want to restrict the access of this php file.
I want to reject the access to php files from the web.
Example : if a user fill a url with www.mydomain.com/phpLocation/file.php I want to reject the user with HTTP 403 code.
How I can do it ?
Question 2 :
I create a connexion.php file who contains database informations username, password... and I protect the access of this file with a .htaccess
It's enough to protect the database informations?
Thanks,