If $_SERVER['HTTP_REFERER'] cannot be trusted according to PHP documentation, how do you be sure that the POST is coming from our own server? Is sessions the only way?
If $_SERVER[‘HTTP_REFERER’] cannot be trusted according to PHP documentation, how do you be sure
Share
You should look into the standard “cross site request forgery” prevention techniques. These will provide you with some security that the post is coming through your server/code.