I am trying to stop direct access to a subdirectories and the php files within subdirectories. I\'ve added the following code below to the .htaccess file within the subdirec
If your ajax function access some file that is inside that folder, you can't. As the AJAX is a requisition sent from the client browser.