I want to protect a directory and the php files in it, from direct web access through an .htaccess file like this:
IndexIgnore *
<Files ~ "\.(php)$">
order allow,deny
deny from all
</Files>
but I want to be able to send ajax requests from a javascript file to those php files an get a result. Is this possible?