Automatic submission form of anti-malware

Source: Internet
Author: User
Describe the problem scenario: for example, submitting forms such as forum posts and registration. some malware may simulate the post form data process. how can this prevent automatic submission? It is recommended that you do not describe the verification code in the following scenarios:

For example, submitting forms such as posting and registration in a forum. some malware may simulate the post form data process. how can this prevent automatic submission?

Supplement: it is best not to mention the verification code.

Reply content:

Describe the problem scenario:

For example, submitting forms such as posting and registration in a forum. some malware may simulate the post form data process. how can this prevent automatic submission?

Supplement: it is best not to mention the verification code.

  1. Define a random number session variable in the background;

  2. Output this value in input in form.

  3. After submission, it is determined that the session is not the same as the input value. if the input value is equal, the session value is changed.

This will effectively prevent repeated submissions. if you want to experience better interaction between the front end and JavaScript optimization, you can check how CSRF is implemented.

1. use CSRF,
2. use the verification code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.