How can I validate/secure/authenticate a JavaScript-based POST request?

前端 未结 10 2038
孤独总比滥情好
孤独总比滥情好 2020-12-14 20:27

A product I\'m helping to develop will basically work like this:

  • A Web publisher creates a new page on their site that includes a
10条回答
  •  抹茶落季
    2020-12-14 21:12

    You could have hashed keys specific to each clients IP address and compare that value on the server for each post using the IP in the post header. The up side to this is if someone spoofs their IP the response will still be sent to the spoofed IP and not the attacker's. You might already know this but i'd also suggest adding salt to your hashes.

    With a spoofed IP a proper TCP handshake can't take place so the attackers spoofed post isn't completed.

    There could be other security concerns i'm not aware of but i think it might be an option

提交回复
热议问题