Programmer-PHP Website registration when sending SMS interface is simulated POST request brush SMS, how to solve?

Source: Internet
Author: User
Tags php website
PHP website registration When sending SMS interface is simulated POST request brush SMS, how to solve?

Reply content:

PHP website registration When sending SMS interface is simulated POST request brush SMS, how to solve?

There are two kinds of I know:
1, on the page plus csrf_token,php CI framework are for this.
2, Access frequency limit, (with IP restrictions, same number restrictions) and so on.

Change to have tokens to send text messages. For example, add a picture verification code.

Add a limit, can only be sent once a minute, a maximum of 50 times a day, which is the practice of most sites.
csrf_tokenIt is not impossible to break, I can use the software to first visit the generated token page to get it.

One request token, valid for once, set the expiration time. That's what I'm doing right now. Token verification failed, missing, is illegal commit. If you're more insured, refer to what your buddies said. are very common means of listening to other buddies ' opinions.

1, front-end plus token (graphics validation)
2, set the 60-100-second request interval with the number.
3, set the number of requests within one day (6-8)
With IP not recommended limits, the above 3 steps can block most of the robot,
The last step, you can consider HTTPS transmission
Also recommend a developer-specific SMS api:www.shsixun.com

Currently on the market, there are several new types of graphic verification scheme, or good, you can look at this: Https://luosimao.com/service/captcha

  • 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.