I already saw some question from here (stackoverflow) and IT , but I still have some questions ...
Using a hidden value in the form of a message and check it when the message reaches the server.
- The hidden value can be easily copied and sent in the same way as the real one, “hard to guess” (for example, md5) will not help. (Right?)
Setting a cookie on reaching the form and sending the cookie value as a hidden value.
- You can easily change the cookie value or send a custom cookie in the same way as a real one, using the same real hidden value. (Right?)
Using a timeout, POST values cannot appear too late.
- So, if you are slow, you will fail when you try to set everything with a hidden value. If you are fast, it will work. (Right?)
I want to be protected from CSRF ... but how exactly do I do it?
source share