Describe the problem scenario:
such as forum postings, registration, such as the submission of the form. There may be some malware that simulates the process of post form data, how can it prevent automatic submission?
Add: It's better not to say that the CAPTCHA
Reply content:
Describe the problem scenario:
such as forum postings, registration, such as the submission of the form. There may be some malware that simulates the process of post form data, how can it prevent automatic submission?
Add: It's better not to say that the CAPTCHA
A session variable that defines a random number in the background;
Output this value in input in the form form.
After submission, the session is judged to be unequal to this input value, and the session value is changed by the equivalent.
This will effectively prevent duplicate submissions, want to experience a better front end and then use JavaScript to optimize the interaction, you can check how CSRF is implemented.
1. Using CSRF,
2. Using the Verification code