I'm writing a script, and it's becoming evident that we need to protect it against attacks based on the hidden form fields it's using. One method we've thought of is to make sure that all requests for the script are only coming from the server that it's hosted on, but I'm not sure exactly how I'd do this. Does anyone know how, or could point me to some documentation that might explain how?