Please could I request for your advise on the following problem:
I'd like to restrict access to a web folder through the Web URL (I understand that this could be done using .htaccess). However, my concern is that I'd also like the code files in this folder to be accessible to AJAX calls.
Reference question: deny direct access to a folder and file by htaccess
Is it therefore correct to assume that any access allow/deny rule in .htaccess is automatically applicable to AJAX calls as well (since they're based on URLs)? And if so, what could be the best way to let the server access mechanism know that it's some "code" that is trying to communicate with it?
Please do let me know if I could provide any clarifications or additional details. Thanks a lot!