昨晚我阅读了有关通过 AJAX 传递签名以改进安全措施的信息。虽然我不记得它究竟阻止了什么,但我认为实施这样的措施没有任何问题。如果我在 AJAX 代码中实现签名,这样的结果会怎样?
//variable below passes through AJAX
$signature = time();
//AJAX file receives variable, checks it against this variable below
$signature2 = time();
//if signature1 and signature 2 are more than one minute apart the ajax file is
dead