http - Validate Origin of FORM POST to ensure it came from same server/app -


I know that to get the origin of a source source, to obtain a platform / language agnostic solution is from the source, i.e. . Page1.aspx is posting to the page 2.php within the same web site

Specifically, what I am trying to do is to prevent duplication of the request.

Use a hidden field in your form, in which your app is generated User Sessions Store tokens in when the form is submitted, then your app will check that the value of the hidden field is the same as the value stored in the user session.

If it is equal, then you know where the submit form comes from is expected to come.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -