I have a PHP script and this shall only run if the server itself calls it. Like this: form().submit runs an AJAX request to POST the form data. I don't want to develop a hash decode and encode system to proof if the request is allowed or not.
Is there an easy possibility to check if the "server runs the script" or if the client wants to run the script? If not, I may use .htpasswd