Suppose X.com will send a post request to Y.com How Y know that the sender is X? Without the url query string course.
$_SERVER['HTTP_REFERER'] of http://php.net/manual/en/reserved.variables.server.php seems not the answer. The documentation it self says "it cannot really be trusted".
Should it use key & secret key parameter?