Verification Code Installation Deployment detailed Introduction _ Related skills

Source: Internet
Author: User
Tags php language account security

As the internet has become more and more important in people's lives, Internet security issues are beginning to come into prominence.

Internet black industry chain is the most powerful enemy in the field of Internet security.

Presumably everyone has a good understanding of black production, then black production is how the specific operation of profit? You can view the next picture Oh ~

Therefore, the protection of account security is the first step to combat black production! and verification code is the important way to ensure the security of the account!

The traditional verification code not only brings the user a very bad experience, and in the security also began to resist the hacker's malicious attack! Therefore, the security is high, the user experience good new type of verification code is our demand!

At present, the market, widely acclaimed "Verification Code", I think it is very good ~

You can experience their demo:

Http://www.geetest.com/exp_normal

Extreme inspection provides the SDK, can be integrated free of charge to our official website, the following I to detail the installation method ~

1, download the SDK

Https://github.com/GeeTeam/gt-php-sdk

2, background registration application ID and key

Https://user.geetest.com/email/register

3, import the class.geetestlib.php file into your project

You can choose to deploy the authentication code on either the PC or mobile side.

If you select a PC-side deployment, replace the strings after captcha_id and Private_key with the IDs and keys that you registered in the background.

If deployed on the mobile side, replace the strings after mobile_captcha_id and Mobile_private_key with the IDs and keys that you registered in the background.

4. In verifying the verification section, the following code is used to perform the validation logic (for example, in the PHP language)

1 <?php
2 require_once (' geetestlib.php ');/* Note path must be correct/
3 $validate _result=geetest_validate (@$_post[' Geetest_challenge '], @$_post[' geetest_validate '],@$_post[' Geetest_seccode '); if ($validate _result) { 
4//Verify successful operation 
5}else { 
6   //validation failed operation 
7} 

Thank you for reading this article, I hope to help you, thank you for your support for this site!

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.