Is there any way of blocking direct access to .php files in my ctrl foler, but allowing http requests from an Angular app? I have a .htaccess with 'Deny from all' in the ctrl folder at the moment which blocks access but it also blocks the Angular calls.
I imagine there isn't a way, but I'm not a whizz at PHP so I wanted to ask.
AngularJS
$http({
method: 'POST',
url: '/ctrl/login/login.php',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
data: credentials
})