-4
I have a system that makes POST requests for. php files on the server by AJAX and they return me database data to work on JS. All. php files are in the same folder on the server.
I would like to know the best level of permission I should set to the folder/files aiming to allow the request only by AJAX, if possible, or as close to that.