How Do i secure vote buttons in server-side like here on Stackoverflow? I’ve seen how the button can be submitted in this answer, But how about in the server side, how do I protect the voting system from csrf attacks and such?
How Do i secure vote buttons in server-side like here on Stackoverflow? I’ve seen
Share
bots generally doesn’t run javascript, so just check on server side if it was an AJAX call.
If you want to be more protected maybe append a param generated automatically by javascript with some calc based on current time, then check on your server if it’s match with the same calc