Block direct access to .php but allow AngularJS $http requests -


is there way of blocking direct access .php files in ctrl foler, allowing http requests angular app? have .htaccess 'deny all' in ctrl folder @ moment blocks access blocks angular calls.

i imagine there isn't way, i'm not whizz @ php wanted ask.

angularjs

$http({     method: 'post',     url: '/ctrl/login/login.php',     headers: {'content-type': 'application/x-www-form-urlencoded'},     data: credentials }) 

i don't believe there is. in fact, http request these .php files angular app nothing more 'a direct access .php files'. if angular app (which lives client-side) request, client request well.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -